[android-developers] Re: is this a bug in android OS

2010-06-26 Thread Bob Kerns
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()

[android-developers] Re: is this a bug in android OS

2010-06-25 Thread MobDev
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,

[android-developers] Re: is this a bug in android OS

2010-06-25 Thread vineet
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