Android :: Service Stops Working When Phone Locked

Nov 9, 2010

I have an application which starts a service. The service has a timer and pops a notification every 30 seconds. I notice the following behavior: if the screen is on the notifications are shown ok (even if the app is in background). if the screen is off (by power button or by itself) the notifications won't show. if the screen is off but I have the debugging running the notifications appear. How can I make the service run with the screen off. (The actual app only checks if a notification should be checked every 30 seconds, but for testing purposes, the above scenario is ok)

Android :: service stops working when phone locked


ADVERTISEMENT

HTC Droid Eris :: Pandora Stops Playing Music After Phone Locked

Dec 30, 2009

Whenever I turn on Pandora then lock my phone, it will finish the current song then stop. So I have to keep the phone awake, or keep unlocking it to keep Pandora playing. Has anyone else run into this issue, and does anyone know of a remedy?

View 9 Replies View Related

Motorola Droid X :: Bluetooth Not Working When Phone Is Locked

Aug 2, 2010

When my phone goes into auto lock while I'm driving the voice commands won't come up when I press my bluetooth. Is this normal?

View 5 Replies View Related

Sprint HTC Hero :: When Phone Is Inactive For While / Touch Screen Stops Working

Feb 23, 2010

Almost every day when I wake up I check my phone and 9 times out of 10 the touch screen does not work. I cannot make a call or check anything. I have to push a lot of buttons and take out the battery and generally wait a while before my expensive phone to start to work. Is there a fix for this? I've already had to go to sprit to do a hard reset because the phone got, "kicked off the network" for some reason the sprint people could not explain. Any solution for the screen issue?

View 4 Replies View Related

Android :: Service Stops When Activity Is Closed

Nov 23, 2010

If I understand it correctly, bindService() with BIND_AUTO_CREATE will start a service and will not die until all bindings are all unbinded.

But if I bindService(BIND_AUTO_CREATE) at onCreate() and hit back button to close the activity, the service calls onDestroy() and dies also.

I don't call unbind() at anytime. So is that mean when the Activity got destroyed, the binding got destroyed also and the service gets destroyed also?

What if I want the service to be always running, at the same time when the activity starts I want to bind it so that I can access the service?

If I call StartService() and then bindService() at onCreate(), it will restart the service at every launch of Activity. (Which I don't want).

So I could I start service once and then bind next time I launch the activity?

View 1 Replies View Related

Android :: Service Stops Running In Standby Mode

May 23, 2009

I'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); ... }

View 3 Replies View Related

Android :: Keeping Notification At The Status Bar After Service That Spawned Stops

Mar 9, 2010

I have a main application, that at some point spawns a service that checks for updates, if it finds any, it posts a notification with the ink to the update, and then the update service stops. Through the debugger I've noticed that the notification pops up but then disappears once my service is stopped, which I guess makes sense since the Notification object was instantiated within that service. What would be the best practice of keeping that notice available until the user clicks it?

1) somehow attaching the notification to my top service - which might get really ugly --> since that update service is spawned by another sub-service that is spawned by a broadcast receiver... so even if i wanted to somehow pass the object of my top level service it would mess the entire abstraction of my app structure and would force me to keep pointers to it through every event and service that I use... Perhaps there is some other way to get that service through the app's context? or any other alternative?

2) Finding a way to keep my update-service alive until the user presses the notification, but I'm not sure if there is any intent broadcasted that I could listen to...

View 2 Replies View Related

Android :: Droid Screen Locked - Service Stop / Can I Solve It

Sep 18, 2009

I had the program I wrote a service, and in service has written a timer, change the timer for one minute cycle time, but why the program in the phone standby (screen lock) were time, I have the timer will be stop running, when I click the menu, get back to normal mode when the timer will automatically have to run? What is the reason, how to solve?

View 2 Replies View Related

Android :: Droid Background Service Stops Processing Broadcas Events / Solve It?

Nov 6, 2010

I've a problem with my android application.
I'm using a background service (with notification on the status bar) which performs an audio sample every hour. To perform this sample I generate a broadcast event every hour and when I capture the event the audio recording starts. During the day, when I'm using the phone, I've no problems. The strange behavior happens during night, when it seems like if the phone goes to an "idle" state: the broadcast events are no more processed. From the log file I understood that the events are generated and putted in a queue... and when I start using again the phone, all those events are raised in the same moment.
Do u have any idea about how to solve this problem? How can I force the phone to continue processing my events? do I have to set any variable of flag to avoid the phone going in this kind of "idle" state?

View 1 Replies View Related

Android :: Pop Up Dialog Or Activity From Service Running In Background When Keyguard Locked?

Nov 19, 2010

I have an application in which there will be a service continuously running in background and on certain conditions service should call an activity or pop-up a dialog. I think this is possible. The question is, in case device keyguard gets on say after 2 minutes of idle time then will the service continue running in background. And what will happen when the condition of opening pop-up or Activity is reached.

View 1 Replies View Related

Android :: Emulator Stops Working - Not Start At All

Jul 19, 2010

I'm using Eclipse and the Android SDK for Linux. When I start my emulator at the beginning of the day it works fine. Later in the day it's sluggish and still later it won't start at all. This computer runs Debian linux, the testing branch, with 1Gig memory and a two 1.6 Ghz processors. On another machine I have, the emulator works the same at the beginning and end of the day.

It has 500M ram and a single 1.6 Ghz processor. As it turns out I cannot use the second machine for all my daily tasks. How can I get the first machine to work? Is it the number of processors? I cannot figure out how to disable a processor in the emulator. I was looking at the '-qemu' options, but none seems to do the trick. I don't understand the qemu options that well.

View 3 Replies View Related

Android :: Linkify Stops GetSelectedItemPosition() From Working?

Aug 13, 2010

I have a ListView which has a TextView in the row. The TextView has been Linkified and has had setMovementMethod(LinkMovementMethod.getInstance()) set on it.

The ListView is no longer selectable and the ListView's getSelectedItemPosition() always return -1 .

Is there a way to know where the ListView has scrolled to in this case?

View 1 Replies View Related

Motorola Droid X :: Battery Stops Charging When USB Service Dies

Jul 27, 2010

I'm the author of SystemPanel, which includes task management (killing) features. I've recently noticed a problem with my Droid X where it suddenly will stop accepting a charge. For example, the screenshot below shows that the phone plugged in overnight, yet battery continues to drain: With a bit of testing, it appears that killing the app "usb" results in this behavior occurring. Once it has been killed, the phone will never accept a charge until it the phone is rebooted.

I would greatly appreciate if a fellow Droid X owner could verify this for me. To do this, use SystemPanel (Lite version will work fine, as will ANY task killer, or the OS' own task killer) to terminate the "usb" program. The full name of the process is "com.motorola.usb". Any task manager should also reproduce the behavior if you perform a "end all" or "kill all" operation. Then unplug the device from USB/AC power (if it was plugged in) and then reconnect it. You should see no indication of a USB connection and/or charging if your device suffers the same problem. The issue can then be corrected by rebooting the phone. Here is the process as shown by SystemPanel: It appears that Motorola has incorrectly allowed this process to be user-killable and/or has failed to automatically restart it in the event that it terminates or otherwise fails. Would greatly appreciate feedback on this problem, if this is not unique to my device, I'll be modifying SytemPanel immediately to avoid ever killing this process.

View 10 Replies View Related

Android :: Update To 1.6 Stops Some ADC2 Apps From Working

Oct 5, 2009

I just got the 1.6 download and found out my ADC2 app is not working anymore. Works fine on 1.5 but people with 1.6 can't log in. Guess that explains the sudden drop in new accounts being created (We got around 70 testers before numbers plummeted to 5 to 6 over the weekend). :( If Google planned to release 1.6 in the middle of a contest, they should have informed developers and given them the tools to test their app on this platform. We spent months on creating a high quality app for this contest and now people can't even judge it! There are probably hundreds of other developers that spent sleepless nights working their butt off to finish before the deadline just to have their chances decimated by google. All I can say is that I'm extremely disappointed in the way Google has handled this entire contest and I think it is extremely unfair and inconsiderate the way they are treating developers that they are supposed to be attracting to the Android platform.

View 6 Replies View Related

Android :: No Lock App Stops Working After Froyo Update

Oct 18, 2010

Updated my Wife's Droid-x last night to Froyo. The camera app took a while to work again but eventually stopped crashing. But we cant get NO LOCK to work again. It works on my Droid-x however I uninstalled it and reinstalled but no dice.

View 1 Replies View Related

Android : JavaScript On Droid Randomly Stops Working / How To Fix?

May 3, 2010

I have an application that uses a WebView and a html-page with javascript functions. Randomly the JavaScript functions doesn't seem to be called. It works up to a random point (I have looked at this bug all day) can only be produced on hardware (HTC Legend) not on emulator.

View 2 Replies View Related

HTC EVO 4G :: Internet Stops Working / Way To Fix?

Nov 8, 2010

I have a evo that i had since launch day at 6am in the morning. Done all the updates and am unrooted. Today all of a sudden i can not go into market then i notice i can not do anything with Internet. But my 3g has 3 bars. Did a battery pull still nothing turned mobile network on and off still does not work. Any suggestions?

View 11 Replies View Related

HTC Hero :: Email Stops Working

Dec 9, 2009

I've setup email on my hero in the mail app. It works fine for a couple of days and then suddenly it just stops working. I've tried it with a yahoo account and a gmail account in the mail app and both do the same thing. Using the gmail account I have set it up so its using exchange server. It works fine for a couple of days, it pushes email to my hero fine but then after a couple of days it will stop working. Even if i click the refresh icon it wont retrieve my email. I have to delete the account and set it up again to get it working again.Why is this happening? Obviously the settings are correct otherwise it wouldn't work for the first couple of days and then stop. Help really appreciated as this is the only issue i am having with the phone now.

View 2 Replies View Related

HTC Droid :: When I Wake My Eris Up / 3G Stops Working

Feb 11, 2010

Ever since the latest OTA update, the 3G on my Eris just stops working when I wake it up. The 3G icon at the top tool bar disappears even though the Mobile Widget I have on one of my screens says that it's on. So what I have to do is toggle the Mobile Widget to turn 3G off then on again. But oh wait, sometimes the Mobile Widget doesn't even respond so I have to go to settings and turn off then on the 3G. This is really annoying and this happens with my aunt's Droid Eris too. Any ideas on what my aunt and I should do?

View 2 Replies View Related

HTC Desire :: On Screen Keyboard Sometimes Stops Working

Sep 13, 2010

Whenever possible I always use the landscape keyboard but have noticed that sometimes in messages (and web browser) that if I spot a mistake and use the trackpad or touch the screen to go back and correct whatever I type on the keyboard will not appear in the text. The keyboard still responds as you can see the popups for the keys when you press them but the text doe not go into the box. The only way I found to cure this is to close and reopen the keyboard and everything then starts working. I am running the recent OTA firmware update on a completely unrooted unbranded Desire.

View 3 Replies View Related

Samsung Galaxy S :: WIFI Stops Working After While?

Jul 13, 2010

Has anyone else noticed that on the Galaxy S, the Wifi will stop to respond after a few disconnects? I usually have wifi off to save battery, but now and then some application will turn it on and after I stop it (either using the message bar or settings) the wifi stops working. Under settings it will be greyed out and say something like "Shutting down..." but you cannot click it again, turn it on or anything else. A reboot works but thats kind of annoying.

View 2 Replies View Related

Motorola Droid X :: 3G Stops Working / Get It To Work?

Oct 16, 2010

On the X my connecton stops working and I have to do a battery pull to get it to work again. Airplane mode and back didn't help. Any ideas?

View 5 Replies View Related

HTC Incredible :: Swype Stops Working Every 2-3 Days

Jun 28, 2010

With the new version, every 2-3 days my Swype keyboard stops working. I can type normally (pushing individual letters), but swyping doesn't work.

If I re-install, it will work again, but only for a few days. I always install after killing tasks/widgets like it says, but hasn't helped the longer-term problem.

View 6 Replies View Related

General :: Swiftkey Stops Working - LG Nexus 5

Apr 23, 2014

LG Nexus 5. For the 2nd time in a month my Swiftkey (paid version) has stopped working. Grrr. The only way I could get it working again was uninstall and reinstall. Nothing else worked. I sent a support request to Swiftkey on this (no response yet). Any way to prevent it?

View 2 Replies View Related

General :: SD Card Stops Working Unexpectedly?

May 27, 2013

I have Huawei u8600 sonic rooted and with Cyanogen 9 ROM for this phone. Everything is working fine, but I noticed that sometimes my phone just doesn't find SD card. After reboot it works fine again for a while, but after an hour or two it happens again. There is no message about SD card being removed or something, it just disappears. I have most of my apps moved to SD card, so this really annoys me, because without SD card I can't use most of my phone's programs.

View 1 Replies View Related

General :: WiFi Stops Working After 3 Minutes?

Nov 27, 2012

Since a few month my WiFi does not work properly. When I activate it, it automatically connects to the access point. But after 3 minutes, the connection stops working. The WiFi symbol in the status bar disappears and 3g starts working. When i disable and reenable wifi everything works fine again for 3 minutes. I already tried a static IP. Other devices (laptop) have no problems with the same network.

View 2 Replies View Related

HTC Droid Eris :: Pop3 Email Stops Working

Dec 4, 2009

My pop3 e-mail (not exchange) stops working about once every 1-2 days. It looks for mail, but doesn't return any results, even though there is mail in the account.I have to delete the account and start over to get it to work

View 3 Replies View Related

HTC EVO 4G :: Camera Stops Working - Would Open Then Immediately Close Down

Jun 24, 2010

This morning my camera and video camera would open and then immediately close down. I shut the phone down and rebooted. Camera still did not open. Next, I shutdown the phone and removed the battery. After a few moments, I reinstalled the battery and rebooted. The camera still would not open. I had to do other work, so I just set the phone aside for a few hours. When I came back, I tried the camera again and after a short pause it opened, but not as smoothly as in the past. It is still not opening as it should. First it displays a very quick view of the desktop with an error message. It goes too fast for me to read and then it opens the camera app.

View 1 Replies View Related

HTC EVO 4G :: Wireless Tether For Root Users Stops Working?

Nov 18, 2010

Let me preface I love this app and am not really complaining, just have something that has come up. Anyone else experience it dropping the internet connection or wifi after about an hour? It works great up to that point and doesn't show an error or anything but it just stops communicating. I have to stop tethering and start tethering and its back up again. Its not a huge issue, just something that I would resolve if I could. It was happening on pre9 but I upgraded to pre13 and it still happens. Im on Myns RLS3 with Netarchy 4191bfs kernel but it was doing it on the stock HTC #10 kernel that came with Myns.

View 19 Replies View Related

HTC EVO 4G :: Sound Stops Working After A Short Amount Of Time?

Jul 20, 2010

I downloaded an application named Todderlock so my children could just meddle around with my phone while they sat in my lap. However, the sound stops working after a non-specific amount of "dings" when either tapping the shapes around the screen, or when dragging your finger along the screen to make the same type of noise, but much more rapidly.

Thinking this was an application problem, I had my wife download Todderlock on her HTC Hero, and the sound works without issue.

So, I shrugged that off and went looking for other neat applications to download...I downloaded Bug Squash I, II and III and they all suffer from the same problem: after squishing X amount of bugs, the SFX stop (the music continues however), and I have to restart the application to enjoy the sound for as long as it lasts.

I was getting suspicious, so I loaded up Robo Defense FREE and the same thing happens when the turrets are firing...after X amount of shots fired, all sound ceases to work.

I have not been able to find a similar problem with the HTC Evo on Google or here on the Android forums, considering my wife's Hero works without issue on all the sound issues I am having.

As far as I know, phone notifications and ringers continue to work after the application has "disabled" the sound. I have not reset the phone to factory settings or anything, but I have restarted the phone itself numerous times, and the problem still persists.

View 1 Replies View Related







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