Screen Control Using Wakelocks
Dec 2, 2012
I was toying around with different ways of turning the screen on and off and of course Wakelocks show up quite alot in this discussion. From what I gather, I can acquire a wakelock (partial or full) to turn the screen on and keep it on for the whole duration my app (or service) is running, and then release it to turn the screen off. My question is on the huge issue of battery consumption surrounding wakelocks. As long as I make sure to to acquire it just to keep the screen on and release it to turn the screen off (or when the screen turns off), battery consumption should be minimal right? The wakelock's only there when the screen is on so it will definitely let the phone go into deep sleep when the screen's off but does the wakelock actually consume battery itself while it's acquired? Or is all the fuss just bad programming (leaving the wakelock on when the screen turns off, etc.)?
View 1 Replies
Dec 10, 2009
I think I may have found an issue within the My understanding is that to properly hold a device awake after an alarm is triggered you have to aquire a WakeLock in the onReceive() event, call a Service, then perform the work in the Service, releasing the lock within the Service when complete. http://groups.google.com/group/android-developers/ browse_ thread /threa . http://www.mail-archive.com/android-developers@ googlegroups.com/msg66. This pattern can also be found in the CommonWare Advanced Android Development book. I tried this, but I found that the AlarmManager, when calling the BroadcastReceiver, runs on a separate PID than the IntentService when started from the BroadcastReceiver's onReceive() event. This makes the static variable on the lock manager. I tried this, and my logs indicate that the PID is definately not the same, and my understanding is that the DalikVM instances act like a standard JVM, whereby objects and variables are no shared between JVMs. Furthermore, since the WakeLock is not serializable, there is really no way to pass the reference to the lock via an "extra" in the Intent.Has anyone else seen this pattern work or fail? I have an example project (with compiled APK) if you'd like to test it yourself, where shall I post this? I have tested this on the emulator on versions 1.6 and 2.0.
View 8 Replies
View Related
Apr 25, 2013
So I've noticed that my phone pretty much never sleeps, and the battery drain is substantial. I installed Wakelock Detector and have narrowed the culprit down to the AlarmManager service in the Android System. I understand that this service itself is not the problem as it's simply used by other apps to keep the phone awake, but I have no way of narrowing down which apps are triggering the alarms. I understand it's possible by running sysdump alarm > file.txt from the terminal, but I've tried that and realized this requires root privilege, which I don't have.
View 24 Replies
View Related
Nov 16, 2013
I have been having problems (After i updated to 4.3) with my battery (I have an s4 gt I9500), so i did a little research about wakelocks and i found that there are 2 that were making that my phone didnt go to deep sleep, the wakelocks were "exynos5-fb.1" and "l2_hsic" in the description of battery, it appears that "Android OS" is almost always working . I have restore my cell phone to factory settings and the problem hasn't gone yet.
View 1 Replies
View Related
May 5, 2010
How do you control the screen being on or off during a call? My screen blanks, I guess to keep you from hitting buttons with your ear, but when using a bluetooth headset it also blanks. Sometimes tilting the phone wakes the display, sometime the top button does. But sometimes neither hs an effect, and the screen remains off until the call is over. Anyone else have this, and figure it out? Are there settings somewhere to control this behavior?
View 6 Replies
View Related
Aug 16, 2010
I'd like rotate the screen to put it upside down. Can I do that with android API? I was told by some friends that there are APIs to rotate the screen by 90 degree but I can't find a way to rotate the screen by 180 degree (upside down).
View 3 Replies
View Related
May 23, 2010
How to make the music controls appear when the HTC Desire is locked? like on iphone double press home bttm, how do i do that on desire? Tried every thing but only will show the bar when i press the sleep/awake bttm but no music controls.
View 25 Replies
View Related
Mar 2, 2010
Please tell me how i can stop the change in orientation of application when device rotate. How i can control the accelerometer.
View 5 Replies
View Related
Jan 31, 2013
Is there any way to control from outside an Android which screen has become nuts ?
I have a chinesse phone ( and MTK 6573) which touch screen has become nuts (most of it has become unresponsive and often a continuos touch imput is detected in the center-left side of the screen). So, it has become useless...
The thing is, I would like to access to it, in any way, to recover some of the data I have on it. Also, becouse I try to disasemble, volumen key seem not working. How could I connect to it ?
I tought of the mimobiler, but I need to enable it trought touch and hadn't been able I tought backing up and restoring in another mobile (an MTK6577), but volumen key not working for ColckWorkRecovery would be to control it from mouse or similar, in a way that does not affect the missfuncionality of the touch screen (should be disable I presume). But anything that allows me to recover the saved phones (several got stored in mobile instead of google account), and a couple of apps data (a fianace data and a notes app) would be great something like remote-titanium-backup ?
View 1 Replies
View Related
Jan 3, 2010
I making an Alarm App.
In my Alarm App, if user set the alarm, the alarm Dialog will be shown at the set alarm time.
but if device(phone) was in lock and screen off, I can't see the alarm dialog.
I need to write code to the alarm dialog will be shown automatically although the device(phone) is screen off(and locked).
I see the source code about AlarmClock in Donut SDK.
It is use the code like below: getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
but the FLAG_TURN_SCREEN_ON is only available in SDK 2.0 or later.
I just only use Donut(SDK 1.6).
How can i Screen on & unlock in Donut(SDK 1.6)?
View 4 Replies
View Related
Aug 31, 2011
I have looked around different forums hoping to find an app or setting info which allows to modify the screen color, contrast and Gamma . I haven't been able to find any .
I have a Vega Tegra2 replica which has high screen brightness ( faded black colors ) and I am running Vegacomb 8.1 on it.
if such an app or modification exists?
View 5 Replies
View Related
Jan 16, 2013
I am looking for an app that can remote control my phone from my pc without streaming the screen.
I have an Xperia that connects to my TV via HDMI & I don't have any wireless mouse/keyboard. So I need a way to control it from my PC with a decent speed. I just need basic nagivation buttons, home/menu/back or mouse support if possible...
View 1 Replies
View Related
Jul 29, 2010
I rooted my phone (HTC Hero 200 running 2.1) a few days ago, went with Fresh 2.1, but after having some trouble with WiFi Tethering I opted for Damage Control. I did a lot of searching online and found Damage Control 0.999999% and installed it on my phone. It is working okay for the most part, but I found out that there are a number of 2.0 versions out there so I decided I wanted to update to a new version.
1) Version 2.09.1 would not load (and I read that it was unstable so I removed it and rolled back.
2) I went with version 2.08.1 and when I rebooted the phone it would get stuck on the boot-up screen and would not go any further (I went in, wiped the phone, went back to the initial Kernel I installed (2.6.29-8f4e5478 htc-kernel@and18-2 #1), but it still wouldn't work.
3) I research other Damage Control ROMS and went with 2.06.1 Lite to download the DCUpdater, thinking that if I went with this edition I would use it to get to 2.08.1, but same result as before.
Do I need to download a new Kernel? Do I need to start from scratch and root my phone all over again?
View 3 Replies
View Related
Jul 23, 2013
I cannot seem to find a way to put music controls for Google Play Music on my home screen. I can put a link to a specific playlist and I can put the Google SoundSearch widget on my home screen but not an actual widget that allows me to quicklly pause play skip etc. It shows up on my lockscreen but I see no option for the home screen. Am I missing something?
I know the playback controls are now available in the notification pane but having to swipe down is an extra step. I seem to remember a widget before....
View 3 Replies
View Related
Feb 8, 2010
I want to control the brightness of screen using a background service in android.
Existing Solutions:- There are similar question posted in the form in below link:-
http://stackoverflow.com/questions/1791340/adding-screen-brightness-controls-to-android-application
Why existing solution will not work? All the solution provided in the link works well with an Activity, but I want to write a Background Service which controls the brightness of the screen.
View 1 Replies
View Related
Jun 21, 2012
However, Android screen cast is a cross-phone program.Android screen cast is a java program that allows you to connect to your Android phone through an USB connection. I think you need ADB and root access for this.
I am searching for something like this that also supports German charakters like umlaute.
View 1 Replies
View Related
May 1, 2010
I want users to be able to control the birghtness with a slider. Please answer in the simplest way because im a noob when it comes to android.
View 1 Replies
View Related
Jul 17, 2010
I purchased the Xtralogic Remote Desktop app from the market today for $20, and it's a bit disappointing. It's quite laggy and buggy, and for that price...I'd expect just a teeny bit better. It's a fun app, but it's just not very functional, for me at least. Anywho, my question is: Is there a better remote desktop app out there? A free one for rooted phones? A similarly priced, but better running app? I don't mind the price so long as it is justified.
View 6 Replies
View Related
Nov 10, 2010
I have another question. Is there a way to control my EVO through my PC without rooting the phone? I did a search and can't find anything not involving rooting.
View 5 Replies
View Related
Apr 6, 2010
pretty much as the title says, my friend showed me some cool apps on his iphone that lets him control his p.c via a media server. i was just wondering what are the android equivalents
View 5 Replies
View Related
Feb 14, 2010
On Android settings, under Wireless controls->Mobile networks there is a setting "Use only 2G networks".
In the Android SDK reference, under android.telephony.TelephonyManager, there doesn't seem to be anything to control the network type.
What APIs does this setting actually call?
View 1 Replies
View Related
Apr 21, 2014
I am looking to make modifications to this application:
https:[url]....
The app is used to control LED lighting, but looks really basic.
I am also wondering if it is possible to set sleep timers and wake up alarms on the app (or would this be hardware related)?
View 3 Replies
View Related
Aug 21, 2012
I need a cpu control app which has per app settings eg at the time when I'll launch a game that app will increase cpu frequency and after closing back to normal!, i have tried cpu master pro but it lacks this feature.
View 9 Replies
View Related
Sep 9, 2010
I use "Palm VNC" to control my computers via my Palm TX; this is most useful for one particular pc as I can use the Palm's touch screen to activate commands rather than the mouse on the pc. A quick point with a finger and the command fires rather than picking up the mouse, moving to the required spot on the screen then clicking. Even more useful when I am at the other end of the room and need to fire the command. I see that there are many VNC apps for Android/Desire. What is the forum's experience of the various VNC apps?
View 1 Replies
View Related
Oct 16, 2010
I'm on my htc evo and dont listen to music much with headphones. I'm on a trip this weekend so I brought headphones. I can not change the volume up or down, it is stuck about the middle. Also recently when I answer a phone call it uses speakerphone by default wether power is connected or not.
View 10 Replies
View Related
May 31, 2010
I have a Linux N wireless router, and a desktop with a wifi card running Windows 7 (Home Premium x64). I have a HTC Magic running the 4.2 version of CyanogenMod (Android version 1.6). What I basically, want to do is in the title. I want to have an app that allows me to view my PC screen on my phone. Gmote and similar apps come close, but they are useless as I cannot view my screen. I have looked at a number of "VNC" apps, but for one reason or another it just doesn't work. I have gotten VLC Remote and TunesRemote to work, which means that I am able to connect my phone to the computer, but beside that nothing works. I managed to get TunesRemote to work by opening certain ports in Windows 7. However, I tried to do a similar thing with a number of VNC applications and none of them worked. I have been trying to port forward for the last three years and no matter what I do, it just doesn't work. I am unsure if it is my Windows 7 firewall or the router, but either way nothing seems to be working.
View 34 Replies
View Related
Dec 7, 2009
Does android 2.0 API allow to developer an app that controls your PS3. If so, is anyone willing to develop something like this for a fee?
View 4 Replies
View Related
Apr 17, 2010
as the tittle says, im after a way of controlling/viewing my pc while i am away from my home network...
View 9 Replies
View Related
Sep 8, 2010
One of the nice things I had with my BB was an app that allowed you to modify the length, frequency, and color of your LED light notifications for when you had missed calls, emails, etc. That way you didn't have to bring the screen alive to know if you didn't hear the audible notification. The LED on the EVO seems to be pretty short and sometimes infrequent. I seem to keep bringing the screen alive to find I have missed emails etc. but the LED wasn't flashing at all. Has anyone found a good App that does this?
View 9 Replies
View Related
Jul 21, 2009
I tried use ADB shell to execute "echo 528000 > /sys/devices/system/ cpu/cpu0/cpufreq/scaling_max_freq" to set CPU frequency successfully. But i can't find any API for applet to control CPU frequency. Have any API for this function? or Have any API that has execute shell command capability?
View 2 Replies
View Related