service - IBinder parameter to onServiceConnection() is null -


at present have server(service) client(activity) working project operated in same process. trying move server new process adding android:process=":seperateservice" in manifest.

however, after successful bind service, in function

public void onserviceconnected(componentname arg0, ibinder arg1) 

the arg1 parameter received null. appears when service made have separates processes.

what missing?

solved using: aidl = binder.stub.asinterface(arg1);

instead of: aidl = (binder) arg1;

but not sure of why not problem when both client , server in same process.


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -