@Override public void onCreate() { super.onCreate(); }
@Override public void onCreate() { super.onCreate(); //TODO do some thing what you want.. }
@Override public void onCreate() { super.onCreate(); mStartIds = new HashSet<>(); }
@Override public void onCreate() { super.onCreate(); Log.i(TAG, "onCreate.."); libPublisher = new SmartPublisherJniV2(); }
@Override public void onCreate() { super.onCreate(); mgr=(PrintManager)getSystemService(PRINT_SERVICE); executor.scheduleAtFixedRate(this, POLL_PERIOD, POLL_PERIOD, TimeUnit.SECONDS); }
@Override public void onCreate() { super.onCreate(); if (DEBUG) Log.d(TAG, "CREATING: " + this); if (Build.VERSION.SDK_INT >= 26) { mJobImpl = new JobServiceEngineImpl(this); mCompatWorkEnqueuer = null; } else { mJobImpl = null; ComponentName cn = new ComponentName(this, this.getClass()); mCompatWorkEnqueuer = getWorkEnqueuer(this, cn, false, 0); } }
@Override public void onCreate() { super.onCreate(); mgr=(MediaProjectionManager)getSystemService(MEDIA_PROJECTION_SERVICE); wmgr=(WindowManager)getSystemService(WINDOW_SERVICE); handlerThread.start(); handler=new Handler(handlerThread.getLooper()); }
@Override public void onCreate() { super.onCreate(); mgr=(NotificationManager)getSystemService(NOTIFICATION_SERVICE); if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.O) { initChannels(); } Log.d("DemoService", "onCreate()"); }
@Override public void onCreate() { super.onCreate(); subscriptionService = SubscriptionService.getInstance(this); setupNotification(); }
@Override public void onCreate() { super.onCreate(); Log.i(TAG, "onCreate.."); libPublisher = new SmartPublisherJniV2(); libPublisher.InitRtspServer(this.getApplicationContext()); }
@SuppressWarnings("MissingPermission") @Override public void onCreate() { super.onCreate(); prefs=PreferenceManager.getDefaultSharedPreferences(this); mgr=(LocationManager)getSystemService(LOCATION_SERVICE); String delay=prefs.getString(PREF_DELAY, "60000"); mgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, Integer.parseInt(delay), 0, this); if (Build.VERSION.SDK_INT<=Build.VERSION_CODES.N_MR1 && prefs.getBoolean(PREF_FOREGROUND, false)) { startForeground(NOTIFY_ID, buildNotification(this)); } }
@Override public void onCreate() { super.onCreate(); if (!showNotification) { return; } startService(new Intent(this, InnerService.class)); startForeground(NOTIFY_ID, new Notification()); }
@Override public void onCreate() { super.onCreate(); L.D(d, TAG, TAG + " oncreate"); mContext = this; mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); executorService = Executors.newSingleThreadExecutor(); downFileStore = DownFileStore.getInstance(this); }
@Override public void onCreate() { super.onCreate(); transcribeWhilePaused("onCreate"); transcript.add("finishedOnCreate"); }
@Override public void onCreate() { super.onCreate(); InvocationStubManager.getInstance().checkEnv(ActivityManagerStub.class); mScheduler = (JobScheduler) getSystemService(JOB_SCHEDULER_SERVICE); }
@Override public void onCreate() { super.onCreate(); try { startForeground(notificationId, new Notification()); } catch (Throwable e) { TinkerLog.e(TAG, "InnerService set service for push exception:%s.", e); } stopSelf(); }
@Override public void onCreate() { super.onCreate(); if (useEventBus()) EventBusManager.getInstance().register(this); init(); }
@Override public void onCreate() { super.onCreate(); CHANNEL_ID = getPackageName()+".download"; mNotifyManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O){ mNotifyManager.createNotificationChannel(new NotificationChannel(CHANNEL_ID, getString(R.string.download_service), NotificationManager.IMPORTANCE_LOW)); } mDownloadManager = EhApplication.getDownloadManager(getApplicationContext()); mDownloadManager.setDownloadListener(this); }
@Override public void onCreate() { super.onCreate(); EventBus.getDefault().register(this); LoggingInterceptor logging = new LoggingInterceptor(new Logger()); logging.setLevel(LoggingInterceptor.Level.BODY); bookApi = ReaderApplication.getsInstance().getAppComponent().getReaderApi(); }
@Override public void onCreate() { super.onCreate(); ServiceComponent component = DaggerServiceComponent.builder() .applicationComponent(((MvpApp) getApplication()).getComponent()) .build(); component.inject(this); }