Android :: Screen Was Black Case - Service Sleep
Sep 21, 2009
I wrote a service and I registered BroadcastReceiver in it. In the onReceive () method of BroadcastReceiver catagory,I just wrote Intent.ACTION_TIME_TICK.equals(intent.getAction()) to receive the systenm time every minute and deal with everything that I should do in it every minute.But i found a problem that when the mobile phone screen was locked and was completely black,my service seems to be sleep and does not work,and when I light up the screen(it is still in locked condition),the system will automatically run my service.I do not know the reason,I guess if it is because my service is not the system-level service? When the mobile screen is black,Andraid system will hibernate the sevice which is not the system-level service,so if this,I should add my service to system service,but I know how to use android.permission.ADD_SYSTEM_SERVICE? If you can,please send me a example about how to add own service to system-level service.This problem has been troubled me for two weeks.
View 2 Replies
Oct 22, 2010
Just got a new case for my Desire off eBay. When I have the Desire all the way inserted in the case and try to call a number, the screen goes BLACK. Yet the call can still be heard going through. I am NOT able to get it back no matter what button I press. Not even with POWER OFF for several seconds! Yet... if I push the phone up half an inch (see pic), the screen goes back every time and the buttons work. Did I mention that the screen is fine when the phone is fully inserted in the case, it only goes black when I make a call using the dialer?
I checked and none of the buttons seem to be depressed when the phone is in the case. Even if they were, it should not cause the screen to lock up like that in black, and the buttons as well.
View 2 Replies
View Related
Apr 30, 2010
How do you order the Black and red snap on case for the incredible? Its on the official incredible web page but when go to the verizon online store it is not there.
View 14 Replies
View Related
Feb 3, 2010
If not, please consider this a formal request. I understand it will take away the sliding keyboard functionality, but I still want one. Honestly, I just like the idea of a slip over silicone case, as opposed to a snap on case. Any help where I can at least find a basic black slip over silicone case for the droid?
View 12 Replies
View Related
Sep 24, 2010
I need to let service sleep for 0.5 sec just as using Thread.sleep(); is there any method??
View 1 Replies
View Related
Sep 8, 2009
How to start/bind a service from a test case. I tried using the ServiceTestCase and somehow I am getting the context as null and the test is not launching/starting the service.
View 2 Replies
View Related
Feb 7, 2009
I've written a test service to understand how android implements a service. I believe I understand the difference between Context.startService and Context.bindService. If I am not mistaken, Context.startService will tell android to keep this service running, even after the Activity that started it has ended.
While testing the service, I have come across something interesting.
My problem is that the service appears to sleep or pause for a few hours, run a short time, and then sleep for a few more hours, then run a short time, etc when the phone has become inactive. In other words, when I am doing things on the phone the service is doing what is is supposed to. But after I have finished doing things on the phone and the screen goes blank the service appears to sleep or pause. I don't know if I have implemented the service wrong or if this is how Android services work.
The test service I have written simply sets a postDelayed handler to increment++ a variable in the Runnable every minute, and then write the value of that variable and a timestamp to a file (log.txt) on the sd card. This how I know that the service appears to sleep. Because there are gaps in the timestamp that correspond to when the phone was inactive. If the service were truly active the whole time, there should be a line item in the log.txt file every minute.
From the log.txt file below you can see that over an eleven hour period there are only 36 line items with time stamps ranging from 10:27 PM through 9:23 AM. If the service was running and active the whole time there should be over 600 lines in the text file. The phone was on AC power the whole time so Android should not have tried to stop services due to power issues. The phone was not used or touched from about midnight to 9 the next morning, so there should not have been a low resource clean up.
I have spent several days looking for an answer and everything I can find seems to validate that when a service is started and not bound, it will stay running (http://code.google.com/android/reference/android/ app/Service.html). However, it appears it does not. Unless I have completely missed the ball on this.
I have included the service.java and activity.java as well as the log file.
Here is a sample log.txt
CODE:...............
Here is the service java file:
Java:
CODE:....................
View 5 Replies
View Related
Jan 26, 2010
I am using a service in my app. But it doesn't seem to work in sleep mode. I have implemented startforeground to prevent it from shutting down but it still does. Following is my code.............................
View 4 Replies
View Related
Apr 12, 2010
I was thiking of buying either a screen protector from verizon or best buy. I was wondering which is the best to buy out of the two or if there is a better protector? Also what is the best case for the motorola droid? Lastly, when I make phone calls my screen goes black so it is hard for me to end calls. How can i fix this? I don't see any settings for this on the droid.
View 11 Replies
View Related
Dec 23, 2009
About custom Power Management... Is it allow for my app to dim the screen programmatically??, the goal would be to send the phone sleeping when a Intent.ACTION_BATTERY_CHANGED event is handled by a BroadcastReceiver, just like its done automatically by the OS (if so configured) after x time of inactivity.
View 2 Replies
View Related
Jun 29, 2010
Im still looking for a widget to put my Incredible to sleep without pushing the power button. I am using No lock for the ability to use the touchpad to turn on but I hate using the power button to turn it off and leaving the screen on, even for 30 seconds, has to be draining the battery. (I am constantly on/off/on/off the phone throughout the day.)
I would like something I can put on the home screen that when touched, puts the phone to sleep. This will help save my power button in the long run as well. Ive searched and cant find anything.
View 15 Replies
View Related
Oct 1, 2009
I'm looking around and trying to find out where sleep behavior is documented - and I mean in the general sense.
When the phone is left alone: * Sometimes the phone screen dims and doesn't shut off. * Sometimes the phone screen goes dark in five seconds * Sometimes the menu lock happens. * Sometimes the menu lock doesn't happen. * Sometimes the only way to darken the screen is to push the power button.
What's not clear is what triggers these different states. I'm looking for a complete list I can use in testing and application validation.
View 6 Replies
View Related
Nov 24, 2010
how to prevent the Android Activity from sleep mode programatically. Or can we declare something related to this in Android Manifest file.
View 2 Replies
View Related
Aug 9, 2010
When i fire up my youtube app, i get a quick black screen flash and it goes back to home screen. The app doesnt launch at all. It was working just fine for several months, all of a sudden it started doing this.
View 8 Replies
View Related
Dec 2, 2010
This was reported in the other thread about X8 Issues, but thought to start a new one to gather feedback from users. It's about the ''black screen'' freezing issue encountered by some users. I have had this several times since owning the phone for a few weeks, so it is a recurring issue. Problem: The phone hangs or appears to be shut down or become unresponsive suddenly. Pressing the hardware buttons doesn't help as the phone doesn't react at all. Solution: Take out cover and battery and restart.Observations: From my own observations, it's not actually a shutdown but a major freezing/hanging. Sometimes when it happens, I can still see vague shades of the display at an angle. After leaving the phone for a while in the pocket, the phone comes back to normal again. Not sure if this is true for all users with this problem. Anyway, gathering more feedback to see how prevalent the problem is, to evaluate whether I should take it to the SE service centre, or whether doing so will help at all.
View 3 Replies
View Related
Sep 18, 2010
I am an android developer I have a problem..
I want to be get notified when the phone screen goes to sleep Help with a sample code.
View 1 Replies
View Related
Jun 23, 2010
1) After I make a call, the screen goes black in a matter of seconds. I'm typically using a headset when I notice this. To end the call (or enter numbers in a call menu) I need to press the sleep button to get the screen to light up again. This is a pain in the a$$.I have the screen timeout set for 2 mins.
2) About once or twice a day the home screen will lock where I can't press anything. I need to reboot to fix.
View 7 Replies
View Related
Sep 9, 2010
Sometimes when I hit the screen/power button the screen will stay black and i can see the menu bar up top fine but all else is black. If I hit the home key then all lights up fine. Then sometimes Ill hit the button and it works fine.
View 3 Replies
View Related
May 14, 2010
Is anyone using their Inc unprotected? No case and/or no screen protector? Especially no screen protector?
View 44 Replies
View Related
Jun 3, 2010
I am looking for a widget that will put the screen to sleep like the power button does, but a widget on the screen. I know it sounds stupid, but when the phone is in the cradle in my car, it would be much easier to tap a widget on the screen to turn screen off than push down on the power button. I have a lock program that allows me to use the trackpad to wake the screen up, but have not found one to put the inc to sleep.
View 5 Replies
View Related
Aug 17, 2010
is locking the screen the same as sleep or is there a difference?
View 2 Replies
View Related
Oct 18, 2010
Just got an incredible (ebay - had to get rid of Eris) and New, out of the box the phone powers up fine. But the minute it comes out of sleep mode, the screen has scrolled to a different location - however, I need to actually push the screen in the location where the button I want to press should be located.
Have been searching here for an hour, but can't find anything like this so had to make a new thread. Sorry if it's a duplication.
View 3 Replies
View Related
Aug 24, 2010
This has happened to me a few times now. If I miss a call, or get a voicemail, the screen will turn on as usual but then it won't sleep until I either press the power button or unlock the phone. The screen will stay on indefinitely (on the lock pattern screen). This only started happening after I updated to 2.2. So now if I'm away from my phone and get a call, the battery will be almost completely drained by the time I get back to it (sometimes up to 4 hours later). This might also be happening if I get a calender notification too...anyone know what's going on?
View 2 Replies
View Related
Dec 2, 2009
I installed panda home just now and i get a black screen. I tried a battery pull, phone reset, etc. I cant get past the black screen. Is there any way I can boot in safe more or something? I literally cant use my phone, all I see is the task bar at the top and no buttons.
View 1 Replies
View Related
Mar 23, 2010
i opened my application after i am not doing any kind of operation i leave the mobile 5 min after 5 min when i touch the my application it is showing black screen.is there any way to avoid this idle state.
View 1 Replies
View Related
Jul 2, 2010
My PreferenceActivity contains a nested PreferenceScreen in another PreferenceScreen and I'm applying a theme to my PrefenceActivity that changes the background color. However when I open the nested PreferenceScreen I get a black background and I cannot see the options.This happens with android 2.1 , but it does not happen with android 1.6.Any ideas on how this can be corrected?
View 1 Replies
View Related
Sep 5, 2010
Any found any good cases online for their Samsung Galaxy S. So far I am finding people selling crappy plastic things with cheesy logos for $25+ here in Canada. What a rip off... would love to find a place that will ship and buy some cases at around $5 each. Looking for a hard case with a screen protector + a running armband.
View 4 Replies
View Related
Dec 9, 2009
Is there any screen protector for the HTC tattoo that like from invisible shield or a hard case that will protect the screen if dropped?
View 2 Replies
View Related
Jul 18, 2010
I have a HTC Desire and it fits nicely inside a flip case, held closed with a magnet. I am no scientist but a good friend of mine, who is a scientist, seems to think that a magnet could damage the phone!
I have heard that they can mess with the internal compas (i didnt even know i had one until yesterday) but what about the motor in the lens, will this be damaged being an electro magnetic motor?
I am most worried about the screen being effected by a magnetic field always being near (even on) it.
Has anyone had any experience of a HTC Desire being messed up with a magnet or can anyone reassure me that the 3 ebay phone case is phone friendly?
View 14 Replies
View Related
May 6, 2010
I feel like this must be so obvious and I'm missing it. Just want a button I can hit to turn screen off without waiting for it to timeout on its own. Otherwise it seems to often do random stuff in my pocket if I am unwilling to wait to put it back.
View 1 Replies
View Related