If you are in onCreate(), then you HAVE NOT BOUND THE SERVICE.
The call to bindService() just *starts* the process of creating and
binding the service. It does not complete until after you return from
onCreate(), at which point the service will be actually created, it's
onCreate() and onStart()
Well,
are you calling it after you have binded ?
You are mentioning onCreate(), I just hope the code-sequence is the
right one, thus something like :
myServiceIntent = new Intent(this,service.class);
this.bindService(myServiceIntent, mConnection,
Context.BIND_AUTO_CREATE);
On 25 jun, 11:40,
are you calling it after you have binded ?
YES, i have binded
You are mentioning onCreate(), I just hope the code-sequence is the
Please find my code a below..
---
Activity Code
public class Launcher extends Activity {
private
3 matches
Mail list logo