Android : Run An App When Phone Is In Sleep Mode?
Jun 1, 2010
I'm developping a LiveWallpaper on Android 2.1. This application must download an image every fifteen minutes and draw it on the screen. Everything works except when the phone is in sleep mode. Do you think it is possible to run an application like this when the phone is in sleep mode? And if yes how?
View 3 Replies
Jan 5, 2010
I apologize if these topics were already covered in previous threads.I wasn't able to find anything related in my searches. Auto-rotation for keyboard when answering a text message received in sleep mode does not work. If I actively send a text when phone is already awake, keyboard rotates with no problem but when I go to reply to a text that I received while phone is in sleep mode, the keyboard does not rotate. Is this the norm?I am also experiencing a delay when the I wake the phone. After unlocking the phone, I used to go straight to my home page, now I get a "loading" message which takes several seconds. Is this due to the number of apps I have loaded? Is it possibly due to number of photo frames I have on my home screen or the complexity of the wallpaper?
View 5 Replies
View Related
Mar 1, 2010
Is there any way to detect whether an android phone is in sleep mode (screen is black) in the code?I wrote a home screen widget. I don't want the widget gets updated when the screen is black to save the battery consumption.
View 1 Replies
View Related
Oct 6, 2010
I have a service which polls a server at certain intervals. I use an AlarmManager and a BroadcastReceiver to start the service. My problem is that after a certain duration, even though the WiFi is still enabled, but for some reason, my application can't contact the server. I get an "Unreachable network" error. Note that I've already acquired a partial wake lock as well as a wifilock. Here's my code for the BroadcastReceiver.
public class ServiceAlarmBroadcastReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
WakeLock wakeLock = null; WifiLock wifiLock = null;
try { PowerManager pm = (PowerManager) context .getSystemService(Context.POWER_SERVICE);
// acquire a WakeLock to keep the CPU running
wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MyWakeLock");
if(!wakeLock.isHeld()){ wakeLock.acquire();
} Log.i("ServiceAlarmBroadcastReceiver", "WakeLock acquired!");
WifiManager wm = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
wifiLock = wm.createWifiLock(WifiManager.WIFI_MODE_FULL , "MyWifiLock");
if(!wifiLock.isHeld()){ wifiLock.acquire();
} Log.i("ServiceAlarmBroadcastReceiver", "WifiLock acquired!");
context.startService(new Intent(context, ThePollerService.class));
} finally { // release the WakeLock to allow CPU to sleep
if (wakeLock != null) { if (wakeLock.isHeld()) {
wakeLock.release(); Log.i("ServiceAlarmBroadcastReceiver", "WakeLock released!");
} } // release the WifiLock if (wifiLock != null) { if (wifiLock.isHeld()) { wifiLock.release();
Log.i("ServiceAlarmBroadcastReceiver", "WiFi Lock released!"); } } } } }
View 2 Replies
View Related
Mar 2, 2010
I was investigating the issue of setting up a delayed activity/event, that will occur and trigger even if the phone is in sleep mode (wake up, do what you need to do, go back to sleep). I was thinking of the following methods: 1. sendMessageDelayed 2. Timer 3. AlarmManager.The basic requirement is to be able to set a triger in the future, and be sure that this trigger wakes up the system if it is sleeping,perform the task, and go back to sleep.A partial wakup is required (no screen flickering). Currently i'm using the sendMessageDelayed, and i keep a wake lock held for the timeout period (bad practice).
View 8 Replies
View Related
Oct 27, 2009
Over the last week or so I've been obsessed with trying to get my hero into sleep mode, in order to save battery. For those who don't know about this, there are many threads around the net telling of a fix for the messages bug, which prevents the phone entering sleep. It's supposed to reduce CPU usage, thus saving battery.
Now, I've followed the methods of many people who claim to have done this successfully, down to a tee, but for the life of me, I can't get it to work. For some reason my awake time is always at 100%. It's now at the pont of driving me mad, and I'm just wondering if anyone else has tried and failed to do the fix. If anyone needs background info on this problem, I'll post a link up later, as I'm sending this via my phone at the minute.
View 13 Replies
View Related
Sep 10, 2010
Let's say I want to use my gps all the time. how do I prevent my screen from going dim/shutting off ?
View 4 Replies
View Related
Jul 1, 2010
i have the moment and pressing the red hang up button will turn the screen on when its in sleep mode, but when i press it again to turn the screen off it wont, it has to time out. now the button still works to end calls and if i press and hold it will bring up the shut down window but like i said it wont just turn the screen off i have to wait for it to time out each time. is this a hardware problem or what is wrong.
View 7 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
Nov 13, 2010
Last two days my battery has been draining like crazy and my phone won't go into sleep mode. I charge before I go to sleep and take it off when it's done and it will die before I wake up in about 8 hours .
Use to be at like 97 or 95 when I get up
I've gotten pretty good at managing my battery life , I use superpower and juiceplotter to monitor it .normally I waist less than 1% an hour when not in use and the phone is asleep
I've deleted every app I've installed since 1 day before this started. Only thing unusual I see in my logs is this message (Adding Alarm{464294e8 type 2 com.android.phone })
And this
Alarm triggering: Alarm{46354990 type 2 com.google.android.location} Adding Alarm{465bbb80 type 2 com.google.android.location }non stop repeatedly every second when phone is not in use.
View 12 Replies
View Related
Sep 30, 2010
Until yesterday if I had an app like Pandora or ESPN Radio playing/running when the screen kicked off the app would keep playing. However, now when the phone goes to sleep everything else gets shut off. I have not altered anything myself per se. Even uninstalled a few apps like AutoKiller [which I had installed for weeks and everything worked fine with it on and installed] but the problem persists and remains. This really perplexes me as I want/need these apps to play with the screen off like they did before. For the life of me I don't know why this is; nor can I find anything in settings to change.
View 1 Replies
View Related
Nov 29, 2010
I can't be 100% sure which one it is. But I installed Nonsensikal 13.2 about a week ago, love it, and was about to basically settle on this as my default rom until Saturday. Starting Saturday my phone has become non-responsive about 5-6 times. Meanin the lock screen won't come on, and the power button will not turn the phone on or off.I'm assuming this means that the phone is still on when this happens, because if it had just powered down randomly I'd think the power button would turn the phone back on I have to pull the battery out and power it back on to start working again. I don't have setcpu or autokiller running, but I am running juicedefender (in case any of that is helpful for anybody.)
View 3 Replies
View Related
Jun 4, 2010
Is there any way to get an email or text notification once my phone is in sleep mode? If my phone is "awake" it rings but once asleep I don't get any notification. Also, if my phone ringer is set to vibrate is there any way to set my email/text notification to ring or does it have to be both vibrating or both ringing.
View 1 Replies
View Related
Feb 23, 2010
I know this is going to sound dumb but how do I put the eris into sleep without not touching it? like the droid has a dedicated key at the top which is also the power key so how do I do it for the eris?
View 1 Replies
View Related
May 4, 2010
My Incredible rings when there's a visible screen. When the screen darkens and phone enters sleep after, in my case 1 minute of non-use, any calls coming in do not ring through. Voicemail picks them up but there is no indication that I have an incoming call unless I wake the phone up and check the upper left hand menu for the voicemail icon. This can't be set up right. When the phone is asleep (dark screen) but not powered off, there has got to be a setting that lets calls ring through and awaken the phone so it can be answered.
View 4 Replies
View Related
Sep 19, 2010
I took my phone out of sleep mode to respond to a text message, only to find I couldn't get the keyboard into landscape mode. I then found that the trackball wasn't working, and the phone seemed as if it was moving through puddy. When I tried putting it to sleep, the screen would dim but not go black. I eventually had to remove the battery to resolve the issue. The next day, the same thing happened.
Both times, the issue happened at around 8 o'clock. I thought thru what apps I had downloaded recently, and looked through Astrid To-Do. I found it had scheduled back-ups at 8 o'clock. I turned that off, hoping that it would fix my problems. The next day, at 8 o'clock, my phone randomly restarted. That was all. No overheating, no hanging, and it booted up just fine. The next day, it rebooted again, but I don't know if it was around 8 o'clock. Today, just about an hour ago at 2:30, it rebooted again, with no overheating or any other problems.
I'm at a loss about what could be causing this. I uninstalled Astrid To-Do app completely now, but I'll have to wait to make sure that fixed anything. I have about 7 days left before my 30 day return policy kicks in, but I moved to Boston from Iowa to go to college, and I would have to mail it back, which I would prefer not to do (cost and time without a phone being the major issues).
I'm running:
Firmware 2.1-update1
Baseband version 2.05.10.06.29
Kernel version 2.6.29-e9066436
View 4 Replies
View Related
Sep 18, 2013
I have samsung galaxy S2 with 4.1.2; when my phone goes in sleep/lock mode the wifi disconnects. when i unlock my phone then wifi connects again. I installed many wifi keep alive applications but none of them work wifi keep alive application which keeps my wifi session on -- even if my phone is in sleep mode
View 7 Replies
View Related
Feb 3, 2014
Sometimes when i power on my phone (from sleep mode), i get this notification. How to block or remove this thing?
View 5 Replies
View Related
Aug 1, 2010
Is there any kind of app that can block incoming texts and calls, but still allow me to keep my phone on? I'm going to Mexico for vacation, and I dont want a 45378594365 dollar phone bill.
View 4 Replies
View Related
Apr 6, 2009
Is the actual version of the emulator able to reproduce the sleep mode? (Android 1.1 SDK r_1)
View 3 Replies
View Related
Aug 30, 2010
Looking for an app or widget that will automatically disable 3G and change my phone to 3G (Edge) when the screen is asleep or I press the lock button.and the re enables when I unlock.
View 8 Replies
View Related
Jul 25, 2010
I like being able to listen to music as I'm falling asleep never having to shut it off later.Is there like some way to enable like a way for my Android phone to shut itself off at like a specific time?
View 1 Replies
View Related
Jan 20, 2010
I have a app that needs to run a command even if the phone goes to sleep. I have it running as a service but it runs randomly when. Is there a way to have the service run even when the phone is sleeping.
View 3 Replies
View Related
May 26, 2009
I am sure it is buried in the SDK somewhere but I couldn't find it. This is relevant to a service running in the background: How can I find out if the device is in sleep mode?
View 3 Replies
View Related
Jun 23, 2010
I'm trying to find some official android documentation that discusses sleep mode, with a focus on issues that might be of relevance to app developers. For example, things like:
1. What causes a device to enter / exit sleep mode?
2. How are running processes impacted when the device enters sleep mode? (I believe they continue to exist, but don't execute because cpu activity is suspended. When the device wakes up execution picks up where it left off?)
There is some good info in the API docs for PowerManager and WakeLock, but nothing there that explicitly states what I have assumed in point 2 above. Are the above issues (and any other relevant issues) documented anywhere?
View 3 Replies
View Related
May 17, 2014
I'm really not "using" my Android S3 phone all day long, it gets frustrating when the bettery runs at 30% at 2pm, without any real use.
So the concept would be:
1) either a "ROM" of Android, which would be seriously minimal - like the device is not a smartphone - so only wake up on incoming call or text message
2) or an app, which does the same thing - suspends the phone completely, and wakes it up only on the incoming call or text message
I was just curious - does something like this exist? I don't care about apps, notifications, wifi or sync, I was thinking more along the lines of would it be possible to use your smartphone like a typical "cell phone", and when you need other apps or full features (GPS navigation with maps, or Shazam, or whatever it is you need) - you just "reboot" or do a quick switch to "full Android" mode, and use those features.
I feel that the battery life should be at least 5 days in that mode, with light usage?
View 3 Replies
View Related
Jan 26, 2010
I am using a service in my app. But it doesn't seem to work in sleep mode. I have implemented startforeground to prevent it from shutting down but it still does. Following is my code.............................
View 4 Replies
View Related
Jul 8, 2010
I just got an evo a couple weeks ago. I love the phone, but after I downloaded the OTA, it won't go into sleep mode. I've turn off all the syncing, tried task killers, tried stopping google talk, the calender, everything I have read in forums.I am thinking my only choice may be to root, but I wanted to see if anyone else had this problem and if anyone actually got it fixed.I really don't want to risk bricking my phone if I don't have to..
View 4 Replies
View Related
Jun 17, 2010
So, I have left my almost fully charged Evo on my nightstand the past couple of nights without plugging it in, and when I wake up in the morning, my battery is almost fully drained. One night I did have the 4G on, but the other night I did not. Is there some sort of setting or sleep mode so it doesnt drain the battery when I am asleep?
View 3 Replies
View Related
Sep 10, 2010
Have an iPhone and part rely on it for diction and recordings. However a new software upgrade has meant when it's recording it tells you on the home screen if you press the button to wake it up, even if locked. Does the android have voice recording in sleep mode and if so does it do so without it stating it on the screen?
View 2 Replies
View Related