Re: [android-developers] Re: Service launch issues

2012-07-13 Thread Justin Anderson
Wait, I just realized something... you are wanting your activity to run in
the background?  AFAIK this isn't possible... why are you wanting to do
this?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Jul 13, 2012 at 2:58 PM, Nobu Games dev.nobu.ga...@gmail.comwrote:

 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

RE: [android-developers] Re: Service launch issues

2012-07-13 Thread Tommy Hartz
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

Re: [android-developers] Re: Service launch issues

2012-07-13 Thread Cythes
I seem to be getting This isn't possible quite a bit. I know I'm not 
a genius at this stuff in fact I'm far from it but every time someone says 
that I have been finding usable workaround's. Please note this is not me 
being cocky. Just something I am noticing.

On Friday, July 13, 2012 5:04:25 PM UTC-4, MagouyaWare wrote:

 Wait, I just realized something... you are wanting your activity to run in 
 the background?  AFAIK this isn't possible... why are you wanting to do 
 this?

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Fri, Jul 13, 2012 at 2:58 PM, Nobu Games dev.nobu.ga...@gmail.comwrote:

 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

RE: [android-developers] Re: Service launch issues

2012-07-13 Thread Tommy Hartz
Activities have to run in the foreground. Services run in the background.
Maybe we are just misunderstanding. What exactly do you want to run in the
background?

 

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

 

I seem to be getting This isn't possible quite a bit. I know I'm not a
genius at this stuff in fact I'm far from it but every time someone says
that I have been finding usable workaround's. Please note this is not me
being cocky. Just something I am noticing.

On Friday, July 13, 2012 5:04:25 PM UTC-4, MagouyaWare wrote:

Wait, I just realized something... you are wanting your activity to run in
the background?  AFAIK this isn't possible... why are you wanting to do
this?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware



On Fri, Jul 13, 2012 at 2:58 PM, Nobu Games dev.nobu.ga...@gmail.com
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
mailto:android-developers%2bunsubscr...@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

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

Re: [android-developers] Re: Service launch issues

2012-07-13 Thread Cythes
The service, since that is the natural flow of things. Sorry for taking so 
long to get back. Dinner / coffee run, Back now till about 8:00est.

On Friday, July 13, 2012 5:39:22 PM UTC-4, Tommy wrote:

 Activities have to run in the foreground. Services run in the background. 
 Maybe we are just misunderstanding. What exactly do you want to run in the 
 background?

  

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

  

 I seem to be getting This isn't possible quite a bit. I know I'm not 
 a genius at this stuff in fact I'm far from it but every time someone says 
 that I have been finding usable workaround's. Please note this is not me 
 being cocky. Just something I am noticing.

 On Friday, July 13, 2012 5:04:25 PM UTC-4, MagouyaWare wrote:

 Wait, I just realized something... you are wanting your activity to run in 
 the background?  AFAIK this isn't possible... why are you wanting to do 
 this?

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware

 On Fri, Jul 13, 2012 at 2:58 PM, Nobu Games dev.nobu.ga...@gmail.com 
 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


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

Re: [android-developers] Re: Service launch issues

2012-07-13 Thread Cythes
Actually to be specific I am looking to make my main activity run from the 
service via intent. however if need be I can just take my code from the 
main activity, I can just put the code into the service.

On Friday, July 13, 2012 5:39:22 PM UTC-4, Tommy wrote:

 Activities have to run in the foreground. Services run in the background. 
 Maybe we are just misunderstanding. What exactly do you want to run in the 
 background?

  

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

  

 I seem to be getting This isn't possible quite a bit. I know I'm not 
 a genius at this stuff in fact I'm far from it but every time someone says 
 that I have been finding usable workaround's. Please note this is not me 
 being cocky. Just something I am noticing.

 On Friday, July 13, 2012 5:04:25 PM UTC-4, MagouyaWare wrote:

 Wait, I just realized something... you are wanting your activity to run in 
 the background?  AFAIK this isn't possible... why are you wanting to do 
 this?

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware

 On Fri, Jul 13, 2012 at 2:58 PM, Nobu Games dev.nobu.ga...@gmail.com 
 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


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

Re: [android-developers] Re: Service launch issues

2012-07-13 Thread Dianne Hackborn
You really need to post your stack crawl.  If you can't get adb connected,
you can't reasonably do development.

On Fri, Jul 13, 2012 at 3:41 PM, Cythes cytheshic...@gmail.com wrote:

 Actually to be specific I am looking to make my main activity run from the
 service via intent. however if need be I can just take my code from the
 main activity, I can just put the code into the service.


 On Friday, July 13, 2012 5:39:22 PM UTC-4, Tommy wrote:

 Activities have to run in the foreground. Services run in the background.
 Maybe we are just misunderstanding. What exactly do you want to run in the
 background?



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



 I seem to be getting This isn't possible quite a bit. I know I'm not
 a genius at this stuff in fact I'm far from it but every time someone says
 that I have been finding usable workaround's. Please note this is not me
 being cocky. Just something I am noticing.

 On Friday, July 13, 2012 5:04:25 PM UTC-4, MagouyaWare wrote:

 Wait, I just realized something... you are wanting your activity to run
 in the background?  AFAIK this isn't possible... why are you wanting to do
 this?

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware

 On Fri, Jul 13, 2012 at 2:58 PM, Nobu Games dev.nobu.ga...@gmail.com
 wrote:

 http://stackoverflow.com/**questions/11476906/service-**
 launches-then-crasheshttp://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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

RE: [android-developers] Re: Service launch issues

2012-07-13 Thread Tommy Hartz
If I were you assuming everything is working now and your app isn't
crashing, I would put the code you want to run in the background into your
service. If you need to save any data save it to a SQLlite database or xml
file or whatever. I would then create a notification icon in the top menu of
the phone. When the user clicks the icon have it launch your activity there.
Inside your activity either in onResume or onStart have it pull the most
recent data from you DB or xml file. Now when the user closes your app it
will stil have the service running and the next time the enter the app your
activity will refresh itself from the database or other file.

 

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

 

Actually to be specific I am looking to make my main activity run from the
service via intent. however if need be I can just take my code from the main
activity, I can just put the code into the service.

On Friday, July 13, 2012 5:39:22 PM UTC-4, Tommy wrote:

Activities have to run in the foreground. Services run in the background.
Maybe we are just misunderstanding. What exactly do you want to run in the
background?

 

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

 

I seem to be getting This isn't possible quite a bit. I know I'm not a
genius at this stuff in fact I'm far from it but every time someone says
that I have been finding usable workaround's. Please note this is not me
being cocky. Just something I am noticing.

On Friday, July 13, 2012 5:04:25 PM UTC-4, MagouyaWare wrote:

Wait, I just realized something... you are wanting your activity to run in
the background?  AFAIK this isn't possible... why are you wanting to do
this?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware

On Fri, Jul 13, 2012 at 2:58 PM, Nobu Games dev.nobu.ga...@gmail.com
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
mailto:android-developers%2bunsubscr...@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

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