Android :: How To Keep Running App When Phone Goes Standby?
Aug 9, 2010i'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 Repliesi'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 RepliesI 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 RelatedHow to can to avoid my app goes in stand by while it's running?
View 3 Replies View RelatedI'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); ... }
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 RelatedAnyone 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 RelatedI'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 RelatedWhich one is sleeping? I feel like my phone is not sleeping when i press the lock key... it says phone standby uses 27% power and phone idle is 4%
View 1 Replies View RelatedI have an android application that I want to always be running in landscape mode.
I have the following code implemented to keep the app in landscape mode all the time:
inside my activity in the Application Manifest
android:screenOrientation="landscape"
This seems to launch and keep the application in landscape view for the whole duration of the application. Perfect!
However, if I have the app running on my HTC Aria (Android 2.1) and the phone locks, if I unlock the phone, I see the application for probably half a second and it's in portrait orientation and then quickly switches back to landscape mode. It is quite frustrating because all of my views are jumbled around and it looks unprofessional as you can imagine. This happens in both the emulator and on my real phone.
Does anyone know how to stop the application from temporarily rotating when the phone is unlocked?
I have tried overriding onConfigurationChanged() but with no success.
I have also tried putting setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); into the onResume() but the app still shows as the incorrect orientation for a split second when the phone is unlocked.
There has been almost no variation from that. Every now and then Display or Wi-Fi would show up as about 2% each, then disappear after a while. That's all.Last night my battery reached 10%, I turned off the power, charged it overnight for 12 hours, unplugged it, and turned the power back on. I noticed two things:
1. My Battery Use list changed drastically. I assume this is actually a better representation of what the list should look like than what I had been seeing for two weeks, but the other thing I noticed was
2. My battery was draining a lot faster than it ever had during the previous two weeks, even during idle periods.My battery had consistently been draining at around 1% per hour idle until today. Now I'm seeing it drop 5% in LESS than an hour while idle (idle meaning the screen shuts off and I don't use it).
So my question is, what do Cell Standby and Phone Idle mean? Previously they had both been 2% and my idle battery use was excellent. But today they both shot up to the 20-30% range and I'm thinking this may account for the excessive battery drain even while the phone is sleeping.Why would these two things be so high? Nothing changed between yesterday and today except that I turned off the phone and turned it back on. I almost feel like I messed something up by simply turning it off!
What is the difference between the two?
View 1 Replies View RelatedHaving come from an iPhone I find it somewhat annoying that I can't use the lovely trackball to wake my nexus one from standby.I realize it could be a problem if you pressed it in your pocket as it sticks out but I'd like to have the option to do it.Does anyone know if it is possible?
View 48 Replies View RelatedIs there a specific way to activate it?
Btw im sorry for putting out in the topic my hero auto changed it when i posted it this morning.
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 RelatedIs it normal to have phone idle around 31% and cell standby around 34%?
View 4 Replies View RelatedJust yesterday my phone was getting more than 14+ hours of battery. Now it's draining really quickly even when I'm not using it (I left it on while I was asleep). It's not facebook because I already downloading the fix and rebooted. My "time without signal" is 0% so I don't think that's the problem. I did download Quickpedia yesterday but a quick search tells me that's not the problem either.
The only other thing I did differently was switch from ADW to LauncherPro yesterday, but if that was draining the battery wouldn't it be under Android System and not standby or idle? Regardless, I switched back to ADW just to see if that works
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 RelatedThe screen is off, with the phone left in standby mode. Is it normal for it to die that fast.
View 17 Replies View RelatedCan you find out wot is stopping the phone from sleeping, also in the battery history the "time spent with screen on" is on 32m.44s yet the phone has been in standby for the last hr and half, can anyone tell me why this is.
View 1 Replies View RelatedJust got myself a new HTC Incredible.It's my first Android phone, and hell my first smartphone at all, and I'm loving it.One aspect that's kind of bugging me, on previous phones I had, it was very easy to glance at the phone to see what time it is.With the Incredible, the screen shuts off completely when it goes into standby, and I have to press the top button to see the clock.It's not the worst thing in the world, but does anyone know of an app out there that can make standby mode display a clock instead?
View 2 Replies View RelatedI am listening events from accelerometer sensor and everything is going right. The problem occurs when phone gets in standby mode and I am not being notified by sensors anymore. Does Anyone know if it's possible to get sensor notifications, by implementing a listener, even if phone is in standby?
View 2 Replies View RelatedI 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 RelatedOccasionally when I have a lot going on in my app, and I am playing a number of sounds using SoundPool, my app just completely freezes. Looking at the logs, I see this:
I/AudioHardwareMSM72XX( 56): AudioHardware pcm playback is going to standby.
My app must then be force closed and restarted. Does anyone know what may be causing this, or a possible workaround? I cannot reproduce this in the emulator - only on my HTC Hero, so I am wondering if this may be a device specific bug.
On the nexus one, my app goes into Audio Record Stanby randomly after 0-40 seconds. I'm using the AudioRecord class, and while the standby is reported in the terminal, the AudioRecord instance reports the same states of RECORDSTATE_RECORDING and STATE_INITIALIZED throughout the entire sequence.
The bottom line is that when this anomaly occurs, audio is not captured. and this is what im working to prevent was only able to reproduce on nexus one android2.1 not g1 android1.6
I have looked extensively through the Android C/C++ libraries such as at this file: http://android.git.kernel.org/?p=platform/hardware/msm7k.git;a=blob_p... and [url]
Most interesting to me, is this line in AudioFlinger: [url]
Specifically the bool AudioFlinger::RecordThread::threadLoop()
As you can see, minput->standby() occurs in 4 different places in the code.
For example, I want to write an activity that launches when you return from sleep (black screen). How can I set this activity to run instead of the default one? In other words, I want to make a custom lock screen.
View 1 Replies View RelatedI have an application that can run all by itself, but certain activities can be called using intents from outside the application.Lately, I've been using a little test app I built to try this out, and any time I change the code in my main application, I have to run it, close it, then run the test app.Not too big a deal, really.Still, I'm curious to find out if there's a way to just install new code without having the app launch on the phone.
View 2 Replies View RelatedIs it possible to have Android running on x86 computers?
View 3 Replies View RelatedI have a project that builds against Android v2.1 . I can run it fine on a phone running 1.5 but when I try to launch it with an emulator running 1.5, the emulator doesn't show up on the list of available AVDs. I have the <uses-sdk android:minSdkVersion="3"/> tag in my manifest but it doesn't make a difference.
View 2 Replies View RelatedI am trying to get the list of process running in the background.
View 4 Replies View RelatedI am trying to make an application which will triggered by SMS, and show in front of the standby screen. My application will only use a small portion of the full screen, and the background is the android standby screen. I have searched some android examples but those application will always fill full of the screen, can anyone give me some guideline on how to make an such application?
View 3 Replies View Related