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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -