Android :: Disabling Standby Mode While Running
Apr 13, 2010How to can to avoid my app goes in stand by while it's running?
View 3 RepliesHow to can to avoid my app goes in stand by while it's running?
View 3 RepliesI'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); ... }
i'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 Replies View RelatedI 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 RelatedWhen 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 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 RelatedI am currently searching to set out an issue I encounter. > I am developing an Application on Android which have to download a lot > of data and then be unused for a while.
> During the download, the device is locked and switch to a kind of idle > mode that close the wifi connection.
I'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 Relatedive seen alot of posts in some threads with people thinking official standby numbers are done in airplane mode. i have some proof that says otherwise. sry about the blur took them with my evo in bad light
8 days from 100% to 85%. this is just a post about official standby numbers are not done in airplane mode, otherwise they would show way higher numbers
Is there any settings that can make the droid screen light up when you receive a notification like an email. On most phones (including my old LG Dare), whenever you are sitting around and the screen is off/locked/in standby, you get a text message and it lights up the screen and says "you have a text message".
I have messed around with the different notifications settings so it will vibrate/sound off when you get one, but if you are in the car and have the phone just chillin there listening to loud music.. sometimes you don't hear it but I would like to be able to see the screen light up when notifications come in... instead of just that little green status light blinking.
It's not that big of an issue, but the whole screen lighting up usually grabs your attention when you are in a crowded bar or loud vehicle so it would be nice for it to show up at least for text messages.
have written code in my application to programmatically enable/ disable the airplane mode. This part of the application is working as intended. However, I also wish to disable only specific radios when the airplane mode is switched on. I found that there is the following string constant in android.provider.Settings.system: public static final String AIRPLANE_MODE_RADIOS A comma separated list of radios that need to be disabled when airplane mode is on. This overrides WIFI_ON and BLUETOOTH_ON, if Wi-Fi and bluetooth are included in the comma separated list. Constant Value: "airplane_mode_radios" So, I tried to change this system setting in my code to be able to disable only the WiFi radio in the airplane mode The problem is that doing this does not change the airplane mode as intended. It still seems to switch off all the wireless interfaces. I am using eclipse with the ADT plugin and using an Android 1.5 AVD Emulator. Can someone guide me on whether I am doing something wrong or if this is not supported on the emulator?
View 2 Replies View Relatedi 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 RelatedJust bought a Vibrant off of CL. I got it unlocked and it seems to be running well off of AT&T. I had a few questions though.
1) Whenever it is in the sleep/standby mode it will randomly flash on. I won't get any new emails or txt messages but it does stay on for a while until the screen timeout period ends
2) It does display a "Refreshing SIM data" message at the bottomish area every few minutes. Is this normal or is this an AT&T thing...
3) I was able to reset everything from going to the Settings>privacy>factory data reset but the instructions for a hard reset of "turning on the phone while holding down the volume down button" did not work. Has anyone been able to pull this off?
All in all I'm pretty jazzed about the phone. I like the Swype typing a lot as well as the overall speed and app installs. I'm coming from a work iPhone and an old school bar phone that could only call and txt. My wife has a iPhone4 and even though the facetime feature is nice I still don't like the restrictiveness of Apple products.
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 Relatediberry Auxus CoreX8 3G Mobile data connection issue in stand by mode. when tablet is on stand by mode mobile data gets disconnected automatically , and when i wake up the tablet it wont connect to mobile data . i have to manually turn off and turn on to get mobile data connection to get mobile data connected .
View 5 Replies View RelatedRecently Ive been noticing that when my phone is in standby mode, that it powers off. Usually a quick press of the power button brings the screen up, instead recently the phone reboots or powers up.
View 1 Replies View RelatedI 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 Relatedmy android application runs in debug mode only even if i click the run button of the eclipse or run it by touching on its icon on the device. what will be reason for this?? anybody has any idea about it?
View 1 Replies View RelatedHave 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 RelatedI double check to make sure my phone is not on silent mode before going to sleep because I use my alarm clock on my phone (stock alarm clock). I run ATK before sleeping then turn on my alarm clock because running ATK last will kill your alarm. When I wake up I notice my phone is set to Silent mode on (holding down power button). What is the best way to fix this so I can actually get up on time with my alarm clock working properly?
View 1 Replies View RelatedMy nexus has ICS.. I have recently successfully booted ICS on the Samsung Conquer with my custom rom, everything is going good the only problem I have is I cannot go into landscape mode at all, apps that need landscape are screwed.
View 7 Replies View RelatedI'm attempting to support my daughter with her GS3. The device is currently in SAFE MODE and and the storage is nearly full. She also has said the device has been rebooting on its own. She is currently deleting apps she is not using. She does not have an SD card installed. I know how to get around my BlackBerry, but am unfamiliar with the ins and outs of Android. Her device is the Sprint version running 4.3. How to get her device back in top running condition.
View 2 Replies View RelatedSo i really like the clock function and the ability to use it as an alarm clock next to my bed. I set it in the mode with the quarter moon and star. What m worried about is the effect on my LCD screen. It seems to be running all night but in a dimmer mode. Is it ok to use the feature every night? Will i end up ruining my LCD a lot faster?
View 24 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 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 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.
User opens app, they press a button and some activity launches. After the button is pressed and the activity is executed, I want to disable the button until the week starts over. Even if they close the app and come back, it should still be disabled unless it has reset.
For example, if they press the button on Monday, they should not be able to do it again until Sunday at 12:00 AM.
No matter what day they initially press the button, they should not be able to press again until the week starts over.
What would be the simplest way to do this in android? Should I have the program store the date and time they initially press, and then calculate the time until reset every time they open the app?