Android :: Service Stops Running In Standby Mode
May 23, 2009
I'm trying to log the phone's cell movement. So I created a PhoneStateListener that is being called when the CellLocation has been changed. Then it informs a logging service to write that new cell information to a log file.
This works as long as the screen is on. But when the screen goes off, the logging stops.
I have two classes:
The PhoneStateListener gets loaded on boot time public class CellStateListener extends PhoneStateListener { public void onCellLocationChanged(CellLocation location) {...this is the logging service which is informed when the cell location changes listener.onCellChanged(mcc, mnc, lac, cid); ... }
View 3 Replies
Apr 13, 2010
How to can to avoid my app goes in stand by while it's running?
View 3 Replies
View Related
Sep 28, 2010
I have a service that spawns a thread which runs a task every 3 seconds.My service runs fine when my phone is on, but when my phone is on standby, the service is often not responding.Any clues as to how I can ensure my service is running while on standby?
View 1 Replies
View Related
Aug 9, 2010
i'm programming an app that reads sensors values, and I need that it continue saving data while the phone goes standby (the screen go black after 1 minute).
View 2 Replies
View Related
Jun 1, 2010
When I deactivate my Android phone, I push the power button, and the screen then shows nothing more, i.e. it looks deactivated. But when I push back the power button, say, 2 hours after, it directly notices me that I have a new message, if so. How can it know this, if it was shut down? Is the whole device in some standby mode when you turn it off like that? So, does the antenna still works in this case? Is it the right way to use an Android phone? I.e. if somebody calls me, will I be noticed of this call if I deactivate my phone as mentioned above? Or should I let it always turned on for real (i.e. with screen acting, etc.)?
View 8 Replies
View Related
Aug 26, 2010
I have an app that needs to send a periodic heart beat to a server, but when the phone goes into standby mode the background heartbeat thread dies. Is there anyway to wake the phone from standby, send the heartbeat and then go back to sleep programmatically? I want to avoid using PARTIAL_WAKE_LOCK if possible.
View 1 Replies
View Related
Feb 11, 2010
Anyone know how my service can check if the phone is currently in standby mode? And if I can trigger an event within my service when the phone comes out of standby mode...
View 3 Replies
View Related
Jan 8, 2010
I've used blackberry's for a long time now and love one feature of it. The Standby mode that you can put the phone into and the only notification that will pull it out is the alarm clock. I've found a few alarms that will disable notifications, except calls. Well I don't want any notifications through the night. Only the alarm waking me up in the morning. Is anyone familiar with an existing app that puts the phone in a low energy sleep that only wakes it up for the alarm clock?
View 3 Replies
View Related
Jul 13, 2010
ive seen alot of posts in some threads with people thinking official standby numbers are done in airplane mode. i have some proof that says otherwise. sry about the blur took them with my evo in bad light
8 days from 100% to 85%. this is just a post about official standby numbers are not done in airplane mode, otherwise they would show way higher numbers
View 4 Replies
View Related
Oct 4, 2010
I have a class that is essentially a message manager (a singleton) that has a timer that polls for status. (statusPollerTask is just a derived class of TimerTask that has the run() defined)
timer.scheduleAtFixedRate(this.statusPollerTask, 0, 1000);
Several Activities register themselves with the msg-man for updates (observer pattern style) as they become visible. Works fine, except if the user presses the Home button and minimizes the app. Sometimes the timer keeps polling other times it doesn't. I need to maintain the polling even when the app is not visible. I feel like I'm just missing something simple here.
View 1 Replies
View Related
Nov 13, 2009
Is there any settings that can make the droid screen light up when you receive a notification like an email. On most phones (including my old LG Dare), whenever you are sitting around and the screen is off/locked/in standby, you get a text message and it lights up the screen and says "you have a text message".
I have messed around with the different notifications settings so it will vibrate/sound off when you get one, but if you are in the car and have the phone just chillin there listening to loud music.. sometimes you don't hear it but I would like to be able to see the screen light up when notifications come in... instead of just that little green status light blinking.
It's not that big of an issue, but the whole screen lighting up usually grabs your attention when you are in a crowded bar or loud vehicle so it would be nice for it to show up at least for text messages.
View 1 Replies
View Related
Jun 22, 2010
i just got a htc desire 5days ago i moved over from a iPhone 3G. I have a big problem with it. Battery lasts for about 4-5h i have read forums and googeld for 2 days now.So far i changed my Background to a black one i made wifi turn off after 15min no Bluetooth etc.I think the problem is that my phone never goes in to sleep mode.when i go setting > about phone > battery the up time and awake time is the same.I downloaded advance task killer but the only program i can see running is Smart Keyboard Pro and Amazon. I kill amazon and it stays dead for sometime i cant kill smart keyboard pro it restarts it self straight away.I have had the phone on charge for about 6h now and the battery seams stuck half way and don't relay increase or its increasing very slowly.
View 13 Replies
View Related
Jul 8, 2010
I setup Hello Android sample app on my Eclipse ( Windows XP). ADT got installed correctly. All post installation config also looks good. I setup HelloAndroid project.
I run first time . It was successfully run and connected to emulator , produced desied message on emulator.
What happened , when i tried to run same program again it stopped working at console trace ( see below console trace). I tried to reset Adb from debug view. Also tried to kill Adb from command line. I completely exited from Eclipse and restarted. At last completely rebooted PC but no luck. I never changed my code a bit after running successfully first time.
Hello Android stops at following message.
[2010-07-08 16:08:59 - HelloAndroid] Starting activity com.example.helloandroid.HelloAndroid on device
[2010-07-08 16:09:02 - HelloAndroid] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.helloandroid/.HelloAndroid }
View 14 Replies
View Related
Nov 23, 2010
If I understand it correctly, bindService() with BIND_AUTO_CREATE will start a service and will not die until all bindings are all unbinded.
But if I bindService(BIND_AUTO_CREATE) at onCreate() and hit back button to close the activity, the service calls onDestroy() and dies also.
I don't call unbind() at anytime. So is that mean when the Activity got destroyed, the binding got destroyed also and the service gets destroyed also?
What if I want the service to be always running, at the same time when the activity starts I want to bind it so that I can access the service?
If I call StartService() and then bindService() at onCreate(), it will restart the service at every launch of Activity. (Which I don't want).
So I could I start service once and then bind next time I launch the activity?
View 1 Replies
View Related
Sep 25, 2010
Just bought a Vibrant off of CL. I got it unlocked and it seems to be running well off of AT&T. I had a few questions though.
1) Whenever it is in the sleep/standby mode it will randomly flash on. I won't get any new emails or txt messages but it does stay on for a while until the screen timeout period ends
2) It does display a "Refreshing SIM data" message at the bottomish area every few minutes. Is this normal or is this an AT&T thing...
3) I was able to reset everything from going to the Settings>privacy>factory data reset but the instructions for a hard reset of "turning on the phone while holding down the volume down button" did not work. Has anyone been able to pull this off?
All in all I'm pretty jazzed about the phone. I like the Swype typing a lot as well as the overall speed and app installs. I'm coming from a work iPhone and an old school bar phone that could only call and txt. My wife has a iPhone4 and even though the facetime feature is nice I still don't like the restrictiveness of Apple products.
View 6 Replies
View Related
Nov 9, 2010
I have an application which starts a service. The service has a timer and pops a notification every 30 seconds. I notice the following behavior: if the screen is on the notifications are shown ok (even if the app is in background). if the screen is off (by power button or by itself) the notifications won't show. if the screen is off but I have the debugging running the notifications appear. How can I make the service run with the screen off. (The actual app only checks if a notification should be checked every 30 seconds, but for testing purposes, the above scenario is ok)
View 2 Replies
View Related
Nov 10, 2009
From what I can tell, if you turn on WiFi the phone never sleeps even in standby mode. Is this a known issue or has anyone else noticed this. I noticed this using Spare Parts and turning off and on things until I saw it was wifi that keeps it awake.
View 4 Replies
View Related
Jul 22, 2010
I have a listview. Whenever I strike an item of listview the debugger gets opened instead of starting a new activity (i.e. what I want). Code...
P.S. all the xml files are correct.
View 3 Replies
View Related
Mar 9, 2010
I have a main application, that at some point spawns a service that checks for updates, if it finds any, it posts a notification with the ink to the update, and then the update service stops. Through the debugger I've noticed that the notification pops up but then disappears once my service is stopped, which I guess makes sense since the Notification object was instantiated within that service. What would be the best practice of keeping that notice available until the user clicks it?
1) somehow attaching the notification to my top service - which might get really ugly --> since that update service is spawned by another sub-service that is spawned by a broadcast receiver... so even if i wanted to somehow pass the object of my top level service it would mess the entire abstraction of my app structure and would force me to keep pointers to it through every event and service that I use... Perhaps there is some other way to get that service through the app's context? or any other alternative?
2) Finding a way to keep my update-service alive until the user presses the notification, but I'm not sure if there is any intent broadcasted that I could listen to...
View 2 Replies
View Related
Oct 2, 2010
The screen is off, with the phone left in standby mode. Is it normal for it to die that fast.
View 17 Replies
View Related
May 11, 2014
iberry Auxus CoreX8 3G Mobile data connection issue in stand by mode. when tablet is on stand by mode mobile data gets disconnected automatically , and when i wake up the tablet it wont connect to mobile data . i have to manually turn off and turn on to get mobile data connection to get mobile data connected .
View 5 Replies
View Related
Nov 6, 2010
I've a problem with my android application.
I'm using a background service (with notification on the status bar) which performs an audio sample every hour. To perform this sample I generate a broadcast event every hour and when I capture the event the audio recording starts. During the day, when I'm using the phone, I've no problems. The strange behavior happens during night, when it seems like if the phone goes to an "idle" state: the broadcast events are no more processed. From the log file I understood that the events are generated and putted in a queue... and when I start using again the phone, all those events are raised in the same moment.
Do u have any idea about how to solve this problem? How can I force the phone to continue processing my events? do I have to set any variable of flag to avoid the phone going in this kind of "idle" state?
View 1 Replies
View Related
Dec 15, 2012
My data connection goes into idle mode if I don't use it and stops downloads... How can I prevent it?? K-Touch E619
View 5 Replies
View Related
Jul 27, 2010
I'm the author of SystemPanel, which includes task management (killing) features. I've recently noticed a problem with my Droid X where it suddenly will stop accepting a charge. For example, the screenshot below shows that the phone plugged in overnight, yet battery continues to drain: With a bit of testing, it appears that killing the app "usb" results in this behavior occurring. Once it has been killed, the phone will never accept a charge until it the phone is rebooted.
I would greatly appreciate if a fellow Droid X owner could verify this for me. To do this, use SystemPanel (Lite version will work fine, as will ANY task killer, or the OS' own task killer) to terminate the "usb" program. The full name of the process is "com.motorola.usb". Any task manager should also reproduce the behavior if you perform a "end all" or "kill all" operation. Then unplug the device from USB/AC power (if it was plugged in) and then reconnect it. You should see no indication of a USB connection and/or charging if your device suffers the same problem. The issue can then be corrected by rebooting the phone. Here is the process as shown by SystemPanel: It appears that Motorola has incorrectly allowed this process to be user-killable and/or has failed to automatically restart it in the event that it terminates or otherwise fails. Would greatly appreciate feedback on this problem, if this is not unique to my device, I'll be modifying SytemPanel immediately to avoid ever killing this process.
View 10 Replies
View Related
Jul 20, 2010
Recently Ive been noticing that when my phone is in standby mode, that it powers off. Usually a quick press of the power button brings the screen up, instead recently the phone reboots or powers up.
View 1 Replies
View Related
Sep 26, 2010
How do some android app make their service restart even if killed from task manager? A good example is Lookout security app. What I guess is that it has registered for all common events that are announced like app installed unistalled, interenet available ,etc.Is this a way to keep your service running ?Another solution I found was to make 2 services monitoring each other, so if one gets killed restart another.Which one would be a proper approach? Is there any way in android to start booting automatically(if device is switched off) once connected to power source? I have never heard this on mobile platform.This is possible for PC through bios feature. Can it be done on android?
View 1 Replies
View Related
Aug 21, 2010
I have just started using services in Android and I have a made a simple service that is polling a server every 20 seconds. Now how can I get this data from my main activity (when it is active)? Alternatively the service could send it back do my main activity (but only if its active). I don't want to wake up my activity. I have read SDK examples of "Binding" but I can't find an example how to actually get something from the service. Just how to start and stop the Binding. From the example. If I have the "mBoundService" object in my activity how do I get my data from the service method called eg. "polling Data()"?
View 1 Replies
View Related
Sep 9, 2009
I want the application to run in background. This application should run continuously and should never get killed. Will running application as Service solve this issue? The application should get started automatically on start up. I don't need any GUI for this application. The main issue is Service getting Killed. Does service get killed ? and in what conditions will that happen?
View 4 Replies
View Related
Jul 27, 2010
I have an app that has a service with it. This service is started the first time you open the app is is suppose to run continuously in the background every two minutes. It seems that at some point though the service stops running or alarmManager stops scheduling/doing what is requested of it. Here is a breakdown of my code flow.
User opens the app,. Service is started, Inside the service I cancel any alarms that might be for this app then create a new one set for two minutes out, Once the alarm is set I call a GPS location check to get lat/lon, I then call up a .net web service to do some stuff with the lat/lon, Once text is returned I check that text for certain Items, If a certain item is found I send a broadcast out to a receiver that then creates a wakelock, starts a new intent to open an activity of my app then sounds an alarm, Right after I broadcast I call stopSelf() as well as calling stopSelf() if the text did not contain certain Items, I call finish() on the new activity I started if we go that far once the Active screen of my app is closed.
The reason I think something is dieing out here is because after some point in time usually once I wake up in the morning and check the phone I no longer see my GPS icon on my droid checking every two minutes.
View 2 Replies
View Related
Nov 13, 2009
how to check that the service with some name is running once? also if i go out from my activity then my service is running & when i come to my activity the onCreate method is called so my service is created again in this case or running service will be attached again?
public class ServiceExampleActivity extends Activity { Intent intent; Button start,stop; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); intent = new Intent(this, ServiceExample.class); // service example is service class Log.i("-----service------", "Service Created"); }
View 2 Replies
View Related