Android :: Service Restarts Randomly
Oct 8, 2010
I'm trying to write a Service which sits and waits for SMS messages (using a BroadcastReceiver which the server registers) and will take some action depending on the details of the SMS message. I use an Activity to startService() and stopService() for the Service. After I close the Activity, the Service continues to sit there with its state kept and its BroadcastReceiver waiting, as it should... However, I find that over time, randomly, the Service will restart itself. That is, onCreate() and onStartCommand() will be called even when the Service has already been started. This happens sometimes when my phone sits idle overnight...
View 2 Replies
Jul 22, 2010
I am trying to run the sample soft keyboard included in the SDK. I am using the debugger, and the literature says that to use a breakpoint while debugging a SERVICE, I need to include:
android.os.Debug.waitForDebugger();
So here is the portion of the code I modified:
CODE:...........
I have put a couple of breakpoints, at the statements indicated by the comments.
This is what happens: the debugger first stops at the breakpoint1, for a few seconds. But then the service restarts. For the life of me I can't figure out what makes the service to restart.
View 3 Replies
View Related
Jun 13, 2010
however I am not new to Android or cell phones. I am a former Sprint rep and technician and was my store's advocate for the Hero so I have quite a bit of knowledge as it stands. However the past 2 or 3 days my Evo has randomly restarted without any notice or any reason. I was sitting in my room watching TV last night when my phone restarted 3 separate times within a 35 minute span. Nothing was running, it wasn't charging, I haven't rooted yet, 4g bluetooth and wifi were all off.
View 6 Replies
View Related
Jun 6, 2010
Anyone else having random reboots with the phone? i have had mine for 2 days and has done it twice today, never before though.
View 39 Replies
View Related
Jun 14, 2010
Since Saturday night, my EVO has randomly shut off and immediately restarted on several occasions. It happened once while charging overnight, once while on an audio call and the others while the phone was not charging and not being used. Do I require a software or firmware update?
View 1 Replies
View Related
Feb 16, 2010
Has anyone else had their milestone randomly reboot? This seems to have happened since 2.0.1 was installed. It has happened 3 times today and twice yesterday, prior to 2.0.1 there was no unexpected restarts.
View 7 Replies
View Related
Aug 7, 2010
A few minutes ago my signal just showed no service for the second time. It was totally random, just like the last time and I don't think it's an AT&T problem because I was stationary in my house, where I've never seen this happen on my past devices. (Happened a few times on the iphone, but it only showed searching for about a second, then it came right back). On the Captivate it will show no service and won't come back until I reboot the phone. I'm not in a fringe service area (usually have 3 bars of 3g). Has anyone seen this happen on theirs? I'm trying really hard not to return it, but some of the bugs are getting pretty annoying.
I'm going to install CT Scheduler and run a reboot every morning. If it happens again, it may be going back...
View 16 Replies
View Related
Feb 13, 2010
I've noticed that whenever I introduce some new awful bug to my app and it crashes, Android just keeps starting it up over and over again. I eventually have to hit the dial button on the phone just to make my app lose focus. I searched this group's posts and the developer documents.I can't find anything about this. Is this usual behavior? If so, is there some way to disable it? Maybe it's just my coming from a desktop background, but I kind of think that when something is closed, it should stay closed, especially if the reason it was closed was that it crashed. And of course, I hope my final app never force closes, but with all the different hardware you never know.
View 6 Replies
View Related
Nov 2, 2010
When I change orientation application restarts and I lost my current data.. I am using activity group which contain lots of activities when i change orientation application restarts from main activity. is it possible to avoid this application restart on orientation change?
View 4 Replies
View Related
Dec 30, 2009
Does anybody have any insight as to why a game appliction would restart when exiting with the back button. It does not automatically restart when using the Home button to exit and this only occurs one time (after the second attempt to exit with the back button, it exits cleanly). Also, I can reproduce this consistently on the Motorola Droid, but have not been able to reproduce on the G1 or the emulator running 2.0. I've tried changing the launchMode of my activities, but have not found something that works. These are my activities:
1. Splash Screen, Single Instance, Main/Launcher 2. Help, Single Instance 3. High Score, Single Top 4. Preferences, Single Top 5. Options, Single Top 6. Game, Single Top, with SurfaceView
The steps to reproduce the problem are: 1. User starts application, launching Splash Screen Activity 2. User starts game, launching Game Activity 3. Game Activity launches Options Activity (for result) 4. Game Activity restarts with result and game begins. 5. Pressing Back Button returns to Splash Screen Activity 6. Pressing Back Button again, briefly shows home screen, then relaunches Game Activity which starts Options Acitivity 7. Pressing Back Button again finally shows the home screen
View 2 Replies
View Related
Jul 16, 2010
I have this game, which is almost done. It has 1 critical bug. When the app exits and restarts, the phone goes in to super slow mode and eventually restarts. I am at a loss as to how to debug it.
It seems like something is happening to make the program run super slowly. The ND time the program exits it takes a very long time to exit and when the phone returns to the main screen the program is almost totally unresponsive. The phone will eventually restart itself.
View 8 Replies
View Related
Oct 13, 2010
I have a pretty standard iPhone app that creates a series of around 7 unique Activities initialised by Intents.
However if the app crashes on the 7th Activity, the app restarts on the users phone around the 5th activity. The problem then is the info gathered from activities 1-4 is null, meaning the app is useless and the only way to get the app working again is to either continually press back or else kill the process.
Why does this behaviour occur, and is there a way to force the app to start back at the first activity when it crashes.
View 1 Replies
View Related
Jan 9, 2010
We're designing an Android app that has several activities which are working in a wizard like way - user should pass from the activity #1 to activity #5 to get to the final activity (#6).
Since we know an activity can be suddenly terminated by OS on low memory we used Application class as a static storage for keeping the data the user inputs on "wizard" activities and other data our app needs for the whole session.
Unfortunately we've discovered this approach fails - looks like the Application class instance is also can be killed by OS (this was specifically discovered on Android 1.6 versus 1.5). Are our expectations wrong on this approach (we think Application class instance always lives for the whole app session)?
So the question is - what is the best practices on Android to keep data between activities deathes/restarts for the whole application session?
View 2 Replies
View Related
Jun 18, 2010
Lately for the past few days my Evo has been starting on it own. In my pocket, while I'm driving on the car charger, on a table, anywhere. I would just be sitting there then I hear the restart sound from their sprint and 4g title theme.
View 11 Replies
View Related
Jun 8, 2010
I've never had a smart phone like this, so hopefully this isn't too dumb of a question. But is it necessary to shut down the phone and restart it once in a while. Once a week, once every couple days, never? I feel like this thing is a mini netbook so just getting an opinion on how to properly take care of if.
View 5 Replies
View Related
Sep 8, 2010
I received the 2.2 OTA update. The phone is not rooted. Ever since 2.2, the Sense UI restarts dozens of times a day. By "restart" I mean the while HTC screen, followed by (loading...) with a spinner for about 10 sec. It happens sometimes when unlocking the screen, sometimes when returning from some app (totally random, no pattern that I can see). I know, "Factory Reset" or "Wipe and do RUU" or whatever other old wives' tale you want to dredge up from the posts here. Those drastic measures seem to have created new problems for as many (or more) people than they've helped.
Meanwhile I've seen references to this issue woven within threads on the many battery life and browser lag threads, but no thread on this issue itself. At the risk of creating more old wives' tales ("Uncle Festus told me I should"), I'd like to see if folks can detect a pattern or an app that might be making it happen. I suspect it's a bug in Sense on 2.2 and not some app. It started immediately after my 2.2 OTA, and before I installed any new apps. It seems to happen more often after some type of notification like an alarm or something that puts a notification into the pull down list. Did it start right after 2.2? When do you see it? Has someone found a cure apart from "reformatting the hard drive" (the ultimate sledgehammer)?
View 29 Replies
View Related
Sep 12, 2010
So I'm running fresh evo .5.3 (Or whatever that build was, old, I know), and near the middle of the day I realized my phone was playing my notification sound (and led would blink once) and then my phone would suddenly reboot. The only changes I had made were installing a couple random apps, which I've uninstalled since then. Also, installed handcent and I get the same result. Other notifications work fun, but any text ones freeze and instantly reboot my phone. I'll probably end up doing a full (everything I need is in the cloud, don't mind reinstalling apps) wipe and flash of fresh 3.2.
View 1 Replies
View Related
Aug 15, 2010
My home screen restarts by itself all the time. Very annoying, when I unlock the phone and have to wait about 20-30 seconds for the icons and widgets to load. I get the white screen with the text "HTC." Then the background loads, then the icons/widgets. Until it's all loaded, I can't move or control anything.
It's happened since the beginning. I just installed "WidgetLocker" yesterday, and now it happens about every hour. I'm wondering if Sense is somehow going to sleep, and then restarting when I wake it up. Some notable applications that may be causing problem:
Locale
Quickdesk
WidgetLocker
View 20 Replies
View Related
Aug 7, 2010
My phone restarts continuously ! I have to reboot it without sim to turn off data and reboot again ! anyone knows what is this problem I love my phone and I really don know what to do.
View 2 Replies
View Related
Nov 24, 2010
My Desire has restarted itself a number of times automatically. Twice it restarted when I powered it up. It powered up and then restarted. Three times, it restarted while I was using the Navigation app. I wasn't actually using the turn by turn navigation. I started it and just started up the map. It worked for about a minute and then the phone restarted. The restart while the Navigation app was running happened twice today.
Has anyone had similar experiences? Do you recall what you were doing when it restarted?
View 5 Replies
View Related
Oct 13, 2013
Device: Micromax Canvas 2 Plus A110Q.
I recently used a pendrive through otg to transfer a few movies to my device.
After that i noticed a few issues, whenever i connect the pendrive my ringtones and notifications turn to default inspite the tones placed in phone memory.
The dialer changed to this crappy one automatically (as attached in the screenshot).
The phone restarted 3-4 times in the last couple of days when trying to open the dialer.
Do i need a factory reset?
View 1 Replies
View Related
Mar 30, 2013
I currently have a phone based on mt6577 where I started to modify the kernel to improve performance but I have a big concern about the swap. I want to enable zram.I turn on when I swap it ends up freezing the system reboots instantly or with a random delay. Kernel 3.0, 4.0.4 ICS
I tried to create a swap file system, the result is the same.I have been looking for a while or could be the problem but without result.
View 1 Replies
View Related
May 5, 2014
I have a rooted i9300 running slimbean 4.3.1.When i try to uninstall an app, my phone reboots itself.This also happened when i had stock rom.I have tried reflashing multiple times and it hasnt worked.
View 1 Replies
View Related
Jun 24, 2009
I have a service running in the background.I have a background thread that gets a reference to the service from the application's main activity. But when the background thread calls a method in the service to display a toast, I get the "Looper not initialized exception".Why,if I have a valid, bound reference to a Service, does this still happen?
View 4 Replies
View Related
Aug 20, 2009
I am getting following message when i try to launch service.Also is there any specific path on file system where we need to place the .apk file which contains my serivce component only.
View 2 Replies
View Related
Jun 9, 2010
I've noticed that lately my Legend restarts by it self in some specific situations, more often when I enter a place with no phone network. I'm going to give an example: I enter the elevator, which has no phone network. The legend shows the network icon with the cross. I exit the elevator 5 minutes have passed and Legend still wasn't able to recapture the network signal. I have to select manually a network to connect to. After this any operation I try to do like send an SMS or try to make a call, the phone just restarts.
This is the most common, but there are other situations where the phone restarts and all of them involve me using it. I'm absolutely sure that the phone does not restarts in standby mode. Maybe a hard reset would fix this, but I would like to now if anybody has this issue, and if there's other option than factory reset. I have all updates installed, some apps installed about 49.
View 4 Replies
View Related
Jul 7, 2010
So, I upgraded to 2.1 a few months ago. Everything seemed fine. Data works, can connect to my comp (Win 7) to transfer files no prob, bluetooth/WiFi/GPS all worked well. But about 3 or 4 weeks ago my data turns on and off at random, texts don't go through, and whenever I plug my phone into my computer, when I unplug it, it restarts.
If I put it into debug mode and connect it to usb, when I unplug it it restarts. It restarts to the Samsung lading screen over and over and over and over again until I unplug the USB. I am not computer/android guru or anything, but I do know my way around them decently. And nothing I can figure out works. i went into the Sprint store and the guy told me to do a factory reset. I did. Didn't do anything, same problems.
View 2 Replies
View Related
Jun 26, 2010
I recently bought an unlocked T-Mobile CLIQ and I'm using it in Canada (FIDO). I have 2 SIM cards that I've been testing with the CLIQ. On one phone SIM, the phone works perfectly fine no complaints (in fact, its quite a good phone). However, on my 2nd SIM card, the phone has problems picking up a signal, so it spends most of its time on Emergency Call Only and then to add insult to injury, the phone will automatically restart after several minutes. I have a hard time believing that a SIM card can cause this phone to mess up but I can't explain how it works for one SIM, but not for another?
View 1 Replies
View Related
Oct 29, 2010
After months without a random reboot, my phone did it twice consecutively today while I was trying to navigate while streaming music (Pandora) on the way from the airport this morning. It worked perfectly on the 1 hour drive there (also on the round trip going there the previous week), but while I was waiting for the guys I was picking up at the arrival gate, I was browsing the web and still streaming music and my phone just did a "soft" restart (where it doesn't show the Moto logo, just the boot animation). Slightly annoying. At least it gets to the launcher pretty quick still. Then, maybe 30 minutes later on the trip back, it does it again while I'm driving back. This time when it got back to the home screen, it refused to pick up any sort of cell signal like it was in airplane mode, but all the other radios were on (BT and satellite). Toggling airplane mode had no affect on it. So I had to totally reboot my phone to get it to work again. I think it may be heat related, when it came back up the first time, SetCPU read the CPU at 51�C/124�F and that was immediately after reboot, so it may have cooled down some during that. After the second reboot I brought the clock down to 800 MHz from 1.1 GHz and it was good for the rest of the trip. But I was running the exact same load/apps on it the last trip and the ambient temp in the car was the same. So I wanted to see if there some system log/app that can tell me what process forced the phone to reboot or maybe what the CPU temp was when it crashed, to rule out software. Is there anything like this? If not, does anyone know what the max temp the CPU can handle before it forces a reboot? I'm sure there's a threshold for this, just like there is for PCs (but usually they just throttle instead of shutting down), but I don't know what it is. I would think ~60�C would be way too damn hot for a CPU in a hand held device.
View 2 Replies
View Related
Dec 31, 2009
I've got a problem that I absolutely cannot figure out how to fix. My droid keeps restarting whenever I try to load any application, even ones from the factory. Anyone know what's going on or a way to fix it?
View 11 Replies
View Related