Android java.lang.IllegalArgumentException: Service not registered

Use mIsBound inside doBindService() and doUnbindService() instead of in the ServiceConnection instance. ServiceConnection mConnection = new ServiceConnection() { @Override public void onServiceConnected(ComponentName name, IBinder service) { mBinder = (MyIBinder) service; } @Override public void onServiceDisconnected(ComponentName name) { mBinder = null; } }; … public void doBindService() { mIsBound =bindService(new Intent(this, MyService.class), mConnection, Context.BIND_AUTO_CREATE); } public … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)