Android : Wake Lock Does Not Seem To Work

Jun 14, 2010

I'm developing an app in which i need the TCP connection to stay alive. I've implemented a kind of ping/pong system to do this. It works perfectly when the screen is on, but when it goes of the phone stops responding to the pings after a while. I've created a Wi-Fi wake lock but i'm still experiencing still the same problem. Code...

Android : Wake lock does not seem to work


Android :: Sensors Don't Work On Partial Wake Lock

Jan 20, 2009

The accelerometer turns off when the screen is off. I'm guessing this is a bug but I haven't seen it logged. Am I missing something?

Perhaps the power management features need some improvement - the ability to specify what components are needed during a partial_wake_lock so that power can be conserved as efficiently as possible.

BTW, there is a bug logged noting that onSensorChanged() continues to be called for the orientation sensor (during sleep) but the values are not being updated.

View 6 Replies View Related

Android :: How To Release Screen Wake Lock?

Sep 15, 2009

When I use wake lock to screen at the specific time on the device as follows code. But every time I release this wake lock, the screen will force to close. I think it must to release the wake lock, or screen will always on. It's wasting power. Does anyone knows how to release the screen wake lock and don't need to close the screen?

View 2 Replies View Related

Android :: Alarm Wake Lock And Services

Dec 18, 2009

I have a question about alarms used with services with regards to wake locks. The documentation explains the behavior using BroadcastReceivers, a wakelock is held during onReceive(), but doesn't describe the behavior for alarms starting services with the RTC_WAKEUP flag. What is the behavior in this case?

I have an app implementing this, an alarm is created with the RTC_WAKEUP flag that starts a service. The service onCreate() then starts a thread to do some network activity. It seems to work just fine but I just want to make sure that I don't need to explicity hold a wakelock myself.

View 4 Replies View Related

Android :: Unlocking Screen After Wake Lock

Jun 9, 2009

My app requires alerts at certain events, which are very likely to happen while the screen is off. It captures those event perfectly, however, I'm struggling to hide the T-Mobile screen lock after I've acquired wake lock from the PowerManager. I've tried broadcasting Intent.ACTION_CLOSE_SYSTEM_DIALOGS, however, that seems not to work.

View 2 Replies View Related

Android :: Wake Lock - Finalized Exception

Aug 29, 2009

I'm acquiring a wake lock and apparently, it gets garbage collected in my app at some point with the following error;

code:...........

What is the recommended approach to overwrite the finalize to force releasing the lock or -better- force the GC not to release the lock ?

View 2 Replies View Related

Android :: Wake Lock / Phone Restarting Randomly

Jan 28, 2010

I have a service which holds on to a wakelock and the code is similar to this,
public class WakeLockService extends Service {
PowerManager.WakeLock wl;
@Override
public IBinder onBind(Intent arg0) {
// TODO Auto-generated method stub return null;
} public void onCreate() {
PowerManager pm = (PowerManager) getSystemService (Context.POWER_SERVICE);
wl = pm.newWakeLock (PowerManager.PARTIAL_WAKE_LOCK, "My Tag");
wl.acquire();
} public void onDestroy() {
wl.release();
}

For past two days, my phone has been restarting randomly. Today it was worse, it kept restarting until I uninstalled the app. I tried to search about this behaviour online and found that too many wakelocks may coz the phone to restart. Can there be any other reason? Is the above code right? Should make wl as a final variable? Does the service call onDestroy method when phone shuts down? I am using a broadcastreceiver to start my service at boot up as well.

View 8 Replies View Related

Android :: Acquiring Wake Lock From Broadcast Receiver?

Aug 13, 2010

I have a problem. I am trying to make a broadcast receiver acquire a wake lock so my alarm will wake the phone from sleep mode.

In the broadcast receiver below, the program crashes with "source not found" on line "sCpuWakeLock.acquire(); when the class "AlarmAlertWakeLock" is called by AlarmReceiver.

Any idea what's going on? Is there a better way to do what I'm trying to do?

In one file:

CODE:..............

In a separate file:

CODE:......................

View 1 Replies View Related

HTC Droid Eris :: Android System - Partial Wake Lock

Apr 5, 2010

Since 1.5 I've been having partial wake problems. My eris normally will last a few hours in airplane mode or with just wifi on before the battery drops one or two percent. Sometimes, it will drop like 5 percent in an hour with low battery usage occuring, for example, when airplane mode is on. I check spare parts under partial wake usage, and it is usually very high, sometimes 100% after hours. I have to reboot my phone to fix these problems.

View 2 Replies View Related

HTC EVO 4G :: Lock Screen / Wake Behavior?

Jun 24, 2010

Need some help with phone locking behavior, good peoples. here's what i'd like to end up with:

1. always wake based on volume OR power button
2. when on phone - no locking at all, (additionally wake based on orientation like is done currently)
3. some sort of "lock phone" widget on home screen for manual lock
4. auto-lock timer set to say...5 minutes (longer than sleep timer)
5. sleep/screen-off timer set to 30 seconds
6. disable the slide lock (sense UI?) and only use the pattern lock. why do i have to power button wake, slide unlock, then pattern unlock my phone after it goes to sleep after 30 seconds, it's ridiculous! i want to pick it up press a volume key and put my pattern in - after 5 minutes. before 5 minutes i want to just pick it up and wake it unless it was manually locked.

I'll root it if that's what it takes. this is pissing me off daily.

View 4 Replies View Related

HTC Hero :: Wake Up The Phone To The Lock Screen

Sep 20, 2009

1) I can press a button to 'wake' up the phone to the lock screen, but I may have to press a button 2 or 3 times to wake the phone up. it seems like it's not waking up correctly and on the first button press.

2) Twitter and other notifications 'sometimes' dont happen until I unlock the screen...this COULD be coincidence, but I thought I would throw it out for people.

3) I didnt get a voicemail given on Friday until today, which appeared as a result of me switching off my phone and switching it back on. has anyone else heard of this???

4) I cant figure out a way to stop apps from starting on bootup, such as peep? I use twidroid, so dont need two apps running of the same ilk?? Any help here?


Thanks in advance guys.

View 3 Replies View Related

Sprint HTC Hero :: Partial Wake Lock With Fresh 2.0d

Apr 6, 2010

I'm getting wake times near 100% with this ROM and I don't have the first clue why. I wiped and installed properly, and I have autokill set to optimal. Not runinng setCPU or anything, and I've never had this problem before so I don't think its an app.

If anyone could help, I would REALLY appreciate it. I tried dc2.05, but now I have the no audio issue on phone calls from this ROM, so I had to switch back for the fix -.- Really frustrated and really need a working ROM + phone =

AlwaysFlash seems to be the problem, uninstalled and wake time seems to be staying low under all circumstances.

View 17 Replies View Related

HTC Hero :: Partial Wake Lock - Awake Time 100%

Nov 13, 2009

I have a vanilla Hero. Since I bought it (around 2 months ago), the awake time has NEVER been under 100%. I installed the Modaco 2.9 ROM yesterday (which I highly recommend; my Hero is now much faster) and it's STILL 100%.

Spare parts tell me that the culprit appears to be 'Android system'.

I'd like to reduce my wake time if it's at all possible.

I'm aware of the messaging app/dialer issue; that's not what this is, since I'm using CHOMP sms and it's still an issue.

View 9 Replies View Related

General :: App That Wake Up And Turns On Lock Screen Upon Notification?

May 9, 2012

Closest thing I can find is Popup Notifier, but not only does it wake up the device, it leaves a ton of popups when unlocked. I would rather have popups on the lock screen.

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

Android :: Android Agenda Widget - Partial Wake Lock

Sep 7, 2010

Any Android Agenda Widget users here? Downloaded the newest update today (there were a few updates in succession, I think) and it's causing my Droid X to not sleep and it's showing up as Partial Wake Lock the entire time my phone is on. I emailed the developer, but if others are seeing this, please do so as well. It's probably killing many batteries right now.

View 2 Replies View Related

Android :: Android Wake Lock Force Close

Jun 14, 2009

I am trying to implement a wake lock for an application.

PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "My Tag");

It seems to force close when defining the PowerManager shown in the code above. Whats going wrong?

View 1 Replies View Related

Samsung I7500 : Get Screen To "wake" / Stop Using Lock Button?

Sep 11, 2009

Is there anyway that you can get the screen to "wake" from just touching one of the softkeys and then enter the screen unlock pattern, rather than having to use the dedicated lock button on the side?

It's pretty annoying, especially if the phone is lying on the table and u just wanna look at the screen you cant just mash one of the softkeys.

View 9 Replies View Related

Android : Lock Screen Feature Does Not Work

Jul 14, 2009

I have ever saw the similar discussion in this group, but nobody answer. And I am very confusing about this feature. Because most of developers do not seem to meet this problem.

The problem is when I press ENDCALL button, it does not going into Screen Lock view. And I have download the source code of "cupcake" & "android-1.5" & "android-1.5r2" & "android-sdk-1.5_r1" version from Android's GitWeb. The feature of lock screen does not work on the emulator. But it works on the offical SDK version. I don't know what is happened.

View 4 Replies View Related

Samsung Captivate : How Does GPS Lock Work

Sep 10, 2010

Well, my GPS was working alright, but I just need to know what I need for a lock. Recently, I checked, and it wasn't locking on, so I turned on the GPS Test application. I was connected to 9-10 satellites, each with the number 30 next to it, yet I wasn't locking in for some reason. I just don't get what I need in order to get the actual "lock" so that it works properly.

View 4 Replies View Related

HTC Desire : Screen Lock Doesn't Work Properly

Nov 5, 2010

Can anyone help, I have been looking up this problem for hours now and have come up with no answers... My lock on phone randomly works. Sometimes I turn on phone and its there and sometimes its not. I have phone set for a pattern lock and to set up after 5 minutes.I just turn my desire on sometimes by pressie the top bottom and the finger slide thingy..isn't even there.This can be after 10 minutes or 3 hours no difference.

View 6 Replies View Related

Samsung Moment :: Screen Lock Button Doesnt Work

Aug 29, 2010

Okay so all of a sudden yesterday the lock button on my Samsung Moment kind of stopped working. When you press the hang up button on the phone, its supposed to lock. If you hold the hang up button it brings up a menu for power off, sounds off and airplane mode.

For some reason when I press the hang up button to lock the phone, it doesnt work but when I press and hold the hang up button, the menu thats supposed to pop up does.

If the button semi works I cant see it being a problem with the button. My friend says its a software glitch but it worked fine for months and then all of a sudden yesterday morning it stopped working. I HAVE NOT updated the phone or anything recently.

View 26 Replies View Related

General :: Automatically Disable Screen Lock At Home Or Work

Oct 21, 2013

Is there a simple setting that will automatically disable my screen lock when I'm at home or at work? If not a setting, is there an app you recommend?

Long version: I'm fairly new to "devices". I got my first, a wifi-only Samsung tablet about 6 months ago and use it sporadically, mostly when traveling, but also it's become my semi-permanent music player at home. I got my first smart phone, a MotoX about 2 weeks ago. Love the MotoX and feel it's exceptionally well designed, easy to configure, and useful, but I have nothing to compare it to other than my wife's IPhone 5.

I have done a web search for this information. I have also searched and scanned around these forums, but didn't find anything I felt comfortable with in terms of how fussy or current the set up steps are or how current the app recommendations are. The two apps I've come across are, IIRC, called "Delayed Lock (trial or paid)" and "Unlock with WiFi".

My question is - today, mid-October 2013 - how do you recommend disabling screen lock while at certain locations. I imagine I'll be using it strictly at work or at home, both of which have wifi I connect to automatically. I might want to disable screen lock while driving, but so far have found my MotoX's Assist driving mode to work very well. I might get a Bluetooth device and at that point would probably want to disable the screen lock while that bluetooth device was connected.

View 8 Replies View Related

General :: Programming Own Lock Screen That Work Without Custom ROM On Any Phone

Aug 27, 2012

I would like to know which method you need to use to access the unlock screen and replace it (something like SlideUnlock or Widget Locker). I want to design an app which could work on any phone even those without a custom ROM. This app would then be overriding the default Lock Screen.

You probably need to create a service but I can't seem to find a source code or a good tutorial on it.

View 2 Replies View Related

Motorola Droid X :: Good Lock Screen Replacement Work Correctly On Phone?

Aug 2, 2010

Anyone found a good lock screen replacement? Ive tried LockBot and Lock 2.0 neither seemed to work correctly on the X.

View 18 Replies View Related

Android :: Looking For Wake Up Speaker

Sep 4, 2010

Im looking for a wake-up app that speaks messages, preferably notes or arrangments from google calendar. It should say something like "good morning <name> You have an appointment eight o'clock in the lab according to google calendar".

View 1 Replies View Related

Android :: How To Wake Up Screen?

Feb 18, 2009

I need to cause the display to light up programmatically. Is there an established way of doing this?

View 4 Replies View Related

Android : Application Wake Up

Mar 18, 2010

I have a requirement to wake up my application upon receiving a particular formatted SMS or App directed notification from server.My application is in dead state. Whenever the device receives a event may be a SMS in a particular format OR some notification(eg app directed notification from server), android OS will start my application.Its possible in Windows Mobile and BREW.Please let me know if its possible in Android and how.

View 11 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 :: Wake Up The Device By Code

Aug 6, 2009

I have an application with notification. I want my notification can wake the device up when it goes off but the device is asleep. Could anybody tell me how to do by some code?

View 4 Replies View Related







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