Android :: Best Way To Schedule An Event That Will Wake Up Phone / Goes Into Sleep Mode?

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

Android :: best way to schedule an event that will wake up phone / goes into sleep mode?


HTC Droid Eris :: Auto-rotation From Sleep Mode / Delay In Waking From Sleep Mode

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

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

Android : Event Wake Up

Jun 8, 2009

I would like to know the way to know when the user are using his phone.There is intent Boot_completed, but it's just at beginning. I have to know when user take it's phone, press a key to use it.Any idea?

View 2 Replies View Related

Android :: How To Detect Whether Phone Is In Sleep Mode In Code?

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

Android :: WiFi Disconnected When Phone In Sleep Mode?

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

Android :: Putting Device To Sleep And Wake Up Programmatically?

May 23, 2009

My app seldom needs to put the device (or screen) to sleep. That is - programmatically imitate user pressing on red stop-call button. According to docs PowerManager.goToSleep() does just that, but requires android.permission.DEVICE_POWER, which is never granted to apps!

(A) What on earth should I do to get this working?
(B) How can I programmatically wake up the device.

just to clarify - I'm not interested in a wake lock solution.

View 2 Replies View Related

HTC Hero :: Cannot Get Phone Into Sleep Mode

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

HTC Incredible :: How Do Prevent My Phone From Going Into Sleep Mode.

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

Samsung Moment :: Sleep Mode On Phone

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

HTC Desire :: Way To Use Trackpad Sleep Wake?

Sep 28, 2010

is there any way to use the trackpad to wake the phone instead of the button on the top?

View 12 Replies View Related

HTC Desire :: My Phone Never Enters Sleep Or Standby Mode

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

HTC EVO 4G : Unusual Battery Drain - Phone Won't Go Into Sleep Mode

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

HTC Incredible :: Screen Wont Wake After Sleep

Apr 30, 2010

Anyone else having this issue with there Incredible? If i hit the sleep button to shut off the screen it will wake up when i hit it again. If i just let the screen time out it wont wake back up, but the touch buttons buzz but screen wont wake

View 9 Replies View Related

HTC Wildfire :: Handset Crashing / Won't Wake From Sleep

Jul 19, 2010

my wildfire has been fine up until a couple of days ago.Intermittently whilst its sleeping it gets stuck in sleep mode! and will not wake, i have to remove the battery and boot it up from scratch, is there an error log i can check to see what's killing it?and before anyone asks, the battery was full

View 6 Replies View Related

Samsung Fascinate :: Apps Closing When Phone Goes Into Sleep Mode

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

HTC Eris :: Phone Randomly Either Not Waking Up From Sleep Mode / Just Powering Down?

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

HTC Incredible :: No Email / Text Notification - Phone In Sleep Mode?

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

HTC Droid Eris :: Putting Phone Into Sleep Mode With Dedicated Key?

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

HTC Incredible :: No Ring Alert When Phone Sleep Mode (Not Powered Off)

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

HTC Desire :: Rebooting - Phone Out Of Sleep Mode To Respond To Text Message

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

Jelly Bean :: Galaxy S2 With 4.1.2 - WiFi Goes Off When Phone Is In Sleep / Lock Mode

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

General :: Power On Phone From Sleep Mode - Randomly Receiving Notification

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

Android :: Way To Catch Event When Sleep Button Pressed?

Aug 8, 2010

I would like to write an application which shutdown (finish()) itself when the sleep button is pressed. Any hint?

View 3 Replies View Related

Samsung Captivate :: WiFi - Sleep Policy Causing Wake Lock For Android System Process And Draining Battery

Dec 1, 2010

After noticing my battery was draining quickly, and then after reading this thread, I installed Android System Info to see what was draining my battery so fast. I notice that whenever I would turn on WiFi, the phone will never go to sleep , regardless of what I set the WiFi sleep policy to. After turning off WiFi, the battery still drains heavily.

The WiFi will shut off after 15mins (if you set it to "When screen turns off" or "never when plugged in"). However it seems to keep the CPU on causing it to drain down the battery.

It would seem that whenever WiFi is enabled, the Android system process creates a partial wakelock that does not go away even if you turn off WiFi. The only way to resolve this is by powering off or rebooting the phone.

You can verify this in Android System Info by going into Battery-History-Other Usage-Partial Wake usage to see how much time the "Android System" process holding a partial wake.

I even did a factory reset on the device; and it is still happening so it doesn't appear to be any app that caused the issue. As I said, it works fine as long as I don't enable WiFi.

I already know of two users having this issue, but I'm wondering if folks having battery problems are going through this as well. Is anyone else having similar issues after using WiFi? I'm hoping someone will be able to identify what exactly is putting the wakelock on and we'll be able to find a fix for it. Other than not using WiFi at all or rebooting the phone after using Wifi.

View 17 Replies View Related

General :: Schedule Airplane Mode At Night?

Apr 7, 2012

I need some app that will turn on Airplane mode at night or atleast turn off Data connection. For specific time period. I found out that data are consuming too much of my battery at night.

View 3 Replies View Related

Android :: Periodically Wake Up From Standby Mode?

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

Android :: Widget Locker / Disable Easy Wake Mode

Oct 6, 2010

I'm running a d1 with LFY on it and wanted to see how widget locker runs for everyone else. Its cool but its also somewhat irritating.The most irritating this is I have "easy wake mode" disabled but I notice that still like 10% of the time touching the volume or camera button will wake the phone.I wind up with my phone buzzing around in my pocket frequently because its woken up and thinks i'm trying to unlock it.The other issue I have is it seems to get killed a lot.I realize that isn't really a fault of WL as much as its a ram issue (launcher pro gets killed a little more often than I'd like too despite trying what seems like every possible memory setting) but is there anything I can do about that?Something that will perhaps be sure its relaunched more promptly?

View 2 Replies View Related

Android :: Sleep Mode App?

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

Android :: Sleep Mode In Emulator

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







Copyrights 2005-15 www.BigResource.com, All rights reserved