Android :: Service (Run Forever) Crashed - No Longer Want
Jul 21, 2010
We have a Service that continuously collects sensor data on the phone. This service should run "forever", e.g. as long as the user wants, and not be killed by the system. For clarification, this service is not intended for an app to be released in the market to the general public, it is written for a scientific study. So the people running the app are fully aware that their battery will sucked empty faster than usual, this is no problem. Anyways, my problem is that the service gets killed after a while of running. Sometimes after an hour, sometimes only after like 7 oder 10 hours. The Log-Entries when the service gets killed look like this. It just says "no longer want", sometimes without even calling onDestroy(), as far as I can tell.
07-20 17:07:11.593 I/ActivityManager(85): No longer want my.project.datalogging (pid 23918): hidden #16
07-20 17:07:11.593 I/WindowManager(85): WIN DEATH: Window{44c61570 my.project.datalogging/my.project.datalogging.DataLoggingApp paused=false}
07-20 17:07:11.603 I/BackgroundService(23925): onDestroy()
Or later (after I manually restarted it):
07-20 19:00:49.677 I/ActivityManager(85): No longer want my.project.datalogging:BackgroundService (pid 24421): hidden #17
07-20 19:00:49.677 I/ActivityManager(85): No longer want my.project.datalogging (pid 24415): hidden #18
07-20 19:00:49.807 85 10707 I WindowManager: WIN DEATH: Window{44f1ea58 my.project.datalogging/my.project.datalogging.DataLoggingApp paused=false}
I often see other services being killed with "no longer want" and then immediately restarted with "Scheduling restart of crashed service". For example here with runkeeper:
07-20 17:30:45.503 I/ActivityManager(85): No longer want com.fitnesskeeper.runkeeper (pid 24090): hidden #16
07-20 17:30:45.603 W/ActivityManager(85): Scheduling restart of crashed service com.fitnesskeeper.runkeeper/.services.RunKeeperService in 5000ms
07-20 17:33:52.989 I/ActivityManager(85): Start proc com.fitnesskeeper.runkeeper for service com.fitnesskeeper.runkeeper/.services.RunKeeperService: pid=24292 uid=10099 gids={3003, 1015}
The logs show no record of low memory. Testing is done on (several) Nexus One with 2.2 (Froyo FRF91). Is there any way I can achieve this behaviour with my app? Automatic restarting after being killed? Or this this something totally different that just looks similar in logcat?
View 2 Replies
Nov 12, 2009
Is there a way to prevent your service from restarting if it crashed?
View 7 Replies
View Related
Mar 7, 2010
In the 1.6 API, is there a way to ensure that the onStart() method of a Service is called after the service is killed due to memory pressure?
View 4 Replies
View Related
Mar 7, 2010
In the 1.6 API, is there a way to ensure that the onStart() method of a Service is called after the service is killed due to memory pressure? From the logs, it seems that the "process" that the service belongs to is restarted, but the service itself is not. I have placed a Log.d() call in the onStart() method, and this is not reached.
View 1 Replies
View Related
Mar 31, 2009
I have noticed that if my background service crashes the system will automatically restart the service after 5 seconds. This is great, but I have noticed that only the onCreate method gets called and not the onStart method. Does this mean the service is properly restarted or do I need to do something special in the onCreate method to make sure it is? I did have my initialisation logic in the onCreate method and my starting service logic in the onStart method but it looks like it will all have to be in the onCreate method.
View 2 Replies
View Related
Nov 11, 2010
I had a call/sms blocker installed. Easy filter I believe. I've unblocked the person and now when ever I try to call i get a message saying the number is no longer in service.
Or when I try to text my phone gives me an error of class 255 cause 3. Now this person can send me texts just fine but for some reason my phone will not send anything to them.
I've uninstalled the app. reinstalled and unblocked again. done a naand restore, wipe, and everything I can think of. I just don't get why my phone is doing this.
View 3 Replies
View Related
Oct 12, 2010
I tried DLing a Flickr app for android, "Flickr Free for Android". It downloaded just fine, but has been in the "installing" phase for going on 3 days. I cant "uninstall" because it technically isnt installed yet. I cant try to redownload because the market is showing that it is installing..
View 4 Replies
View Related
Aug 9, 2010
I set up Google Voice on my Sprint Hero and I'm not all that happy with it. The main problem is it takes roughly 3 hours from the time the person left the voicemail until I receive it on my phone. That's just way too long. And I'm not talking just the transcription, I mean even getting the voicemail. Does anyone else have this problem? Is it a Sprint problem, a Hero problem, or a Google Voice problem?
View 6 Replies
View Related
Dec 9, 2009
Astrid is great! Easy to use. Small widget that displays tasks. Simple. Many options. but... When i reboot the Hero, it seems that the Astrid widget takes almost FOREVER! and i really do mean hours to load.
View 3 Replies
View Related
Jul 3, 2010
When I go to edit a calendar it'll give me a list of all the other times I used a calwidget calendar. Since it's so hard to find which one I used, how do I delete the list of available options to choose from? Also, I added an entry but it takes forever to show on the widget.
View 1 Replies
View Related
Nov 6, 2009
sync'd to exchange in 3 minutes despite never haven seen a droid before contacts, calendar and email (inbox and sent items) work flawlessly but I cannot open any type of attachment, because it cannot fetch them just sits there forever "fetching"
View 8 Replies
View Related
May 15, 2010
I was trying out an app, I think it's called Continuous Photo and it completely crashed my phone. I can't turn it on. I plugged it into the wall to see if that would help and it made the sound that one would expect when it's charging and the home, menu, and return buttons all lit up, but not the screen. It's a brand new phone that I've only had for 4 days. Is the problem, that I tried to complete a function using the app, that I didn't have enough memory for? No matter what the reason is, how can I fix it? I'm freaking out here.
View 3 Replies
View Related
May 11, 2009
I have developed an application which has tabActivity using SDK 1.0 r2.
1st Tab contains List view. -> the list contains some images
2nd and 3rd contains some webviews.
The app works fine on G1 mobile.
Today I downloaded SDK 1.5 and ran the same app on SDK 1.5.
The app got crashed when I scroll down/up the list items very fast (fling)
code:............
I am not understanding the above error log.
Then I experimented some thing like this: I removed the TabActivity, just shown only list activity. Then I scroll down/up the list items. Then there is no crash.
View 8 Replies
View Related
Oct 12, 2010
Don't download Red Droid! aka Red Tube! I downloaded this application and it crashed my phone. Have to get another one.
View 5 Replies
View Related
Sep 17, 2010
I have a situation here where i have an intent A that calls intent B. In Android 2.x, the application B consistently crashes the dawvik virtual machine when it runs the second time. Then, if A calls B again, it works.
Is there a way to let A find out that the vm has crashed? This way, i could just redo intent B.
View 3 Replies
View Related
Jun 30, 2010
It takes a good 1 minute to log in. Then it takes another minute to route an address. Maybe i'm just impatient, usually used to quicker searches with Google, which also has its share of lag when searching while driving.
View 4 Replies
View Related
Sep 21, 2010
Ever since Froyo, I cannot text, email, and my phone crashes constantly.
View 1 Replies
View Related
Aug 31, 2010
How to find out line of code where application failed in Android? (without debugging just to see crash dump)
View 3 Replies
View Related
Sep 14, 2010
I have an application and I would like to be able to restart it on the event of an error or a crash/app shutdown. I am familiar with how to register BroadcastReceivers, use alarms, etc.
Is there any signal I could intercept that the app sends out when it shuts down? Or that the OS sends out when any app shuts down?
View 2 Replies
View Related
Sep 23, 2010
Whenever someone sends me a pic or any other kind of file, my Evo's gmail just sits there swirling and swirling. Takes minutes to download anything. Is there some setting I'm missing or is this a broader issue?
View 6 Replies
View Related
Jun 6, 2010
I have a HTC EVO and I can't seem to clear my trash file from my phone. Once I delete a message from my phone it then goes to the trash. I try to delete that same message from the trash but it doesn't delete forever like it is suppose to. I have to either go on my PC to do it or use my internet browsers to delete forever.
View 2 Replies
View Related
Oct 30, 2010
After I either receive a phone call or make one, (and other undocumented interruptions) my application gets a NullPointerException when resuming my activity. Can any explain to me where it is and/or how to fix it?now, pls help me to fix this problem, how do i handle phone call or SMS received or such kind of interruptions?
View 2 Replies
View Related
Jul 29, 2010
When using position based apps on my new Desire (Android 2.1) I can't help but notice that finding the location always takes forever (>1 minute after switching GPS on).My old HTC HD (Windows Mobile 6.1) was much quicker in providing a location after switching on GPS. The trick was, that the HTC HD had a pre-installed application "QuickGPS" that regularly downloaded some data that apparently helped in locating the satellites and/or calculating the position. On my old device I thus had a valid position typically in less than 10 seconds after switching GPS on.I haven't found any similar utility for Android and I don't want to have GPS active all the time for battery reasons. Are there any similar tools or other "tricks" that can help the GPS subsystem to provide the location quicker?
View 2 Replies
View Related
Sep 25, 2010
So I want to update my baseband for various reasons. I'm rooted and just ran unprovoked forever, so I've got s-off. I am currently running 2.1 update1, with baseband 1.00.03.04.06. how do I go about updating to a 2.xx.xx.xx.xx baseband, and do I need to be running 2.2 to do this?
View 1 Replies
View Related
Aug 21, 2010
Trying to install Unrevoked Forever but keep getting an error saying E: file does not exist. Anyone had this issue or know a work around?
View 1 Replies
View Related
Aug 12, 2010
I installed the unrevoked forever tool and it went great, got the s-off.
I try to "adb remount" when the phone is on, and I get an error saying it can't be permitted. it also says "$" when I do adb shell
but I can still do it fine from clockwork recovery.
View 4 Replies
View Related
Sep 14, 2010
What is the difference between Unrevoked3 and Unprovoked Forever?
View 9 Replies
View Related
Dec 12, 2012
I have a rooted android 4.0.4,LG Nitro HD. I installed too many apps in my phone. My problem is the programs and tasks which run in my RAM.
For example i dont want yahoo gmail facebook apps run in my memory and check my notifications automatically when internet is available. It seems good but i don't want it happen.
I just want to have these apps and run them whenever i need them. I tried to force close applications , but when i reset the phone all apps will run again some application like google+ or youtube dont close at all.
How can i manage my memory and apps in my favor ?
View 2 Replies
View Related
Jan 18, 2010
I am developing one application which fetches the list of data/images from the server and shows on to the device. When I change the orientation, press Back button after doing it for 4-5 times app gets crashed. I am handling orientation change within activity itself and not setting the new view.
[Code]
View 8 Replies
View Related
Feb 8, 2010
I am trying to start an error-reporting activty if unhandled exception detected. The problem is with exceptions thrown from main thread. Is there any way to start an activity if main thread crashed?
View 3 Replies
View Related