You can't run an activity in the background. You can start the service, have
it run its code and save that data. When my app first starts after boot it
goes right into a service. When the service is done I create a notification
icon. When the user clicks the notification it then loads the Activity. The
activity then pulls in the info the service gathered from the SQLlite DB.

 

If you are using eclipse, turn debug on in the mainifest, then flip over to
debug view in eclipse and you should be able to see the logcat.

 

From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Cythes
Sent: Friday, July 13, 2012 5:11 PM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: Service launch issues

 

Alright first thing is first, I dont have logcat since I am running it all
out of my phone. I know there is a way to get logcat to run with phone
tethering.

 

Also sorry for the cross post it seemed at the time the topic was dead so I
wanted to post it over here to get a second look. 

On Friday, July 13, 2012 4:58:28 PM UTC-4, Nobu Games wrote:

http://stackoverflow.com/questions/11476906/service-launches-then-crashes

If you feel like cross-posting your own questions then please take the
advice of the guys over at Stackoverflow seriously and post the exception
message / log cat / stack trace, too. "It crashes after 30 seconds" can have
a billion different reasons.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to