[android-developers] Service - Need Info

2010-02-01 Thread android beginner
Hi, I created remote service and wanted to get the data from MyActivity's onCreate(). Below bindService returns true but ServiceConnection() is not called. Hence testService remains null and I couldn't get the data I want from onCreate. Any Suggestion? public class MyActivity extends Activity

Re: [android-developers] Service - Need Info

2010-02-01 Thread Mark Murphy
Hi, I created remote service and wanted to get the data from MyActivity's onCreate(). Below bindService returns true but ServiceConnection() is not called. Hence testService remains null and I couldn't get the data I want from onCreate. Any Suggestion? Most likely, there is an Intent

Re: [android-developers] Service - Need Info

2010-02-01 Thread android beginner
Hi Mark, I observed that after calling bindService in onCreate we should not call the interface methods as ServiceConnection() runs after onCreate(maybe bindService puts serviceConnection in queue). Hence after calling interface method inside onServiceConnected its working fine. Thanks On