egads!  that was it (well, kinda)

I had it in there, but I had it as remote --
 android:process=":remote"

thanks!

On Sep 9, 12:41 pm, Dianne Hackborn <[email protected]> wrote:
> Did you publish the service in your manifest?
>
>
>
> On Wed, Sep 9, 2009 at 11:37 AM, sdphil <[email protected]> wrote:
>
> > I have the following base activity.
>
> > public class BaseActivity extends Activity
> > ...
> > ...
> > ... onCreate(...) {
> >        this.bindService(new Intent(BaseActivity.this,
> > LocalService.class), serviceConn, Context.BIND_AUTO_CREATE);
> >    }
> > ...
> >    private ServiceConnection serviceConn = new ServiceConnection() {
> >               �...@override
> >                public void onServiceConnected(ComponentName name, IBinder
> > service)
> > {
> >                        LocalService.LocalBinder binder =
> > (LocalService.LocalBinder)
> > service;
> >                        service = binder.getService();
> >                }
> > ...
> >    };
>
> > A derived activity fails on the call to cast a binder --
>
> > LocalService.LocalBinder binder = (LocalService.LocalBinder) service;
>
> > fails with this on the call stack --
>
> > InvocationTargetException.<init>(Throwable) line: 56
> > ActivityThread.main(String[]) line: 3948
>
> > what am I doing wrong?
>
> > tia.
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to