@Override public void onCreate() { mNM = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); // Display a notification about us starting. showNotification(); // While this service is running, it will continually increment a // number. Send the first message that is used to perform the // increment. mHandler.sendEmptyMessage(REPORT_MSG); }
@Override public void onCreate() { mNM = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); // Display a notification about us starting. showNotification(); // While this service is running, it will continually increment a // number. Send the first message that is used to perform the // increment. Logger.d("RemoteService onCreate"); mHandler.sendEmptyMessage(REPORT_MSG); }