@Override public void onCreate() { mNM = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); // show the icon in the status bar showNotification(); // Start up the thread running the service. Note that we create a // separate thread because the service normally runs in the process's // main thread, which we don't want to block. Thread thr = new Thread(null, mTask, "AlarmService_Service"); thr.start(); }
@Override public void onCreate() { mNM = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); // show the icon in the status bar showNotification(); // Start up the thread running the service. Note that we create a // separate thread because the service normally runs in the process's // main thread, which we don't want to block. Thread thr = new Thread(null, mTask, "AlarmService_Service"); thr.start(); }