Then you have already unbound it.

Try putting a breakpoint in each of the places you bindService() and
unbindService(), and see what is going on as you run your app.

You can look at the LocalServiceBinding API demo for an example of using
bindService()/unbindService(); though this doesn't do it as part of the
lifecycle callbacks, it does allow you to control in the UI binding and
unbinding to see the result (and verify the basic mechanism is indeed
working).

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/LocalServiceActivities.html

On Sat, Dec 11, 2010 at 9:13 AM, Rutton <[email protected]> wrote:

> Well, I have just the
>    private ServiceConnection conn = new ServiceConnection() {
>    ....
>    }
> as a member. That should be only one service connection in my
> understanding.
> Some logging also delivered
>
> 12-11 18:06:10.580: DEBUG/test(32585): startMoveListener:
> serviceconnection=de.somebody.test.move.movebacken...@461ccf48
>
> as service connection during service start,
>
> 12-11 18:06:21.463: DEBUG/eventnotifier(32585): unbindNapService:
> conn=de.somebody.test.move.movebacken...@461ccf48
>
> during unbind and
>
> 12-11 18:06:21.635: ERROR/AndroidRuntime(32585):
> java.lang.RuntimeException: Unable to pause activity {de.somebody.test/
> de.somebody.test.move.MoveActivity}:
> java.lang.IllegalArgumentException: Service not registered:
> de.somebody.test.move.movebacken...@461ccf48
>
> as RuntimeException.
> Well. This cant be the problem.
> Any more suggestions?
>
> Cheers,
> Rutton.
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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