Local Service에 바인드를 성공하면  ServiceConnection의  onServiceConnected 콜백 메서드를 호출해주는걸로 아는데 호출이 되지 않아요.

 	public static ServiceConnection mConnection = new ServiceConnection() {
		
		@Override
		public void onServiceDisconnected(ComponentName name) {
			// TODO Auto-generated method stub
			mService = null;
		}
		
		@Override
		public void onServiceConnected(ComponentName name, IBinder service) {
			// TODO Auto-generated method stub
			mService = ((MyService.LocalBinder)service).getService();
			Log.d(DEBUG_TAG, "Connected");
		}
	};


아래는 바인드하는 소스입니다.
 		mIsBound = bindService(new Intent(this, MyService.class), 
				mConnection, Context.BIND_AUTO_CREATE);
		Log.d(DEBUG_TAG, mIsBound ? "Bind success" : "bind failed");


로그캣에 Bind success는 나오는데 Connected는 안 나와요..
무슨 문제인지 짐작이 되질 않아 도움을 구합니다.


profile