@Override public void onCreate() { super.onCreate(); setLog(true); connect = new ServiceConnection() { @Override public void onServiceConnected(ComponentName p1, IBinder binder) { service = ((UpdateWidgetsService.MyBinder) binder).getService(); setBind(true); setLog("connect"); } @Override public void onServiceDisconnected(ComponentName p1) { setBind(false); setLog("disconnect"); } }; intent = new Intent(this, UpdateWidgetsService.class); }
@Override public void onCreate() { super.onCreate(); context = this; TL.initialize(getContext(), ApplicationConst.APP_ID, ApplicationConst.APP_KEY, ApplicationConst.APP_SITE); }
@Override public void onCreate() { super.onCreate(); PrefHelper.setup(getApplicationContext()); }