make Activity into Service

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

make Activity into Service

Postby monarcharthas89 » Sun Feb 20, 2011 12:17 pm

have an Activity which records and prints all the sensors data such as acceleration, compass, light etc ... into a txt file. I am wondering how can this Activity becomes Service and keep all of it methods (recording and printing) running at background (I have several methods which are called automatically every interval, therefore I want those methods run continuously at background as well) or even it is possible to do such a thing. Please help. Thank you in advanced
monarcharthas89
Freshman
Freshman
 
Posts: 5
Joined: Thu Jun 17, 2010 10:44 pm

Top

Re: make Activity into Service

Postby strider2023 » Mon Feb 28, 2011 1:08 pm

Hi monarch,

Try reading the content provided in this blog. I think this will answer all your questions.
http://saigeethamn.blogspot.com/2009/09/android-developer-tutorial-for_04.html
strider2023
Senior Developer
Senior Developer
 
Posts: 126
Joined: Tue Mar 02, 2010 6:34 am
Location: Chennai, India

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 20 guests