Question about ServiceConnection

Put your problem here if it does not fit any of the other categories.

Question about ServiceConnection

Postby szimek » Sun Jan 06, 2008 8:32 pm

Hi!

Is there some ServiceConnection object method that can tell me whether it's registered or not, or should I i.e. use my own bool flag and set it when I call bindService, so that unbindService won't cause errors when called, if the service has not been binded before?

Thanks in advance
szimek
Freshman
Freshman
 
Posts: 6
Joined: Wed Dec 19, 2007 3:38 pm

Top

Postby plusminus » Fri Jan 11, 2008 11:34 pm

Hello szimek,

using a boolean seems to be a really simple solution. And simple Solutions are always good :)

Regard,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 19 guests