Ask about Service

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

Ask about Service

Postby Rokejits » Mon Oct 20, 2008 11:28 am

My app is start service that change wallpaper every 1 sec and close app by method finish().The service still running.If i start my app and want to get reference to this service again. Can i do that?



thank you very much!
Rokejits
Junior Developer
Junior Developer
 
Posts: 10
Joined: Fri Oct 10, 2008 9:49 am

Top

Postby MrSnowflake » Mon Oct 20, 2008 12:22 pm

Yeah no problem. Both bindService() and startService() can do thin. Normally Services will only run in 1 instance.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby Rokejits » Tue Oct 21, 2008 6:01 am

Thanks MrSnowflake
But when i use bindservice() and close my app it will close service too.I want service to still running and when app lunch again app can reference to service to get data or something else from service.How i do that?

thanks
Rokejits
Junior Developer
Junior Developer
 
Posts: 10
Joined: Fri Oct 10, 2008 9:49 am

Postby Rokejits » Tue Oct 21, 2008 12:01 pm

Sorry it's my fault
Now it's work.I start service by startService() and get reference to it by bindService().

thanks for ur help
Rokejits
Junior Developer
Junior Developer
 
Posts: 10
Joined: Fri Oct 10, 2008 9:49 am

Postby MrSnowflake » Tue Oct 21, 2008 1:16 pm

You're very much welcome.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot] and 21 guests