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 Mon, Feb 1, 2010 at 10:14 PM, Mark Murphy <mmur...@commonsware.com>wrote:

>
> > 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 resolution problem. Look at LogCat at the
> warning level and see if you get any messages from Android saying that it
> could not resolve some Intent. You can also confirm that your service has
> an <intent-filter> with an action that is equivalent to
> ITestInterface.class.getName().
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> Android App Developer Books: http://commonsware.com/books.html
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to