Android :: How To Make Device To Sleep?Jul 20, 2009
I know that there is a PowerManager class and a goToSleep method in SDK But the code follow does not work.Anybody can tell me why?
I know that there is a PowerManager class and a goToSleep method in SDK But the code follow does not work.Anybody can tell me why?
I tried the market and searched google (only to find apps that help you sleep lol). I'm looking for a way to set a button on the home screen to press and put the phone to sleep instead of having to push the top button all the time.View 2 Replies View Related
I am sure it is buried in the SDK somewhere but I couldn't find it. This is relevant to a service running in the background: How can I find out if the device is in sleep mode?View 3 Replies View Related
My app seldom needs to put the device (or screen) to sleep. That is - programmatically imitate user pressing on red stop-call button. According to docs PowerManager.goToSleep() does just that, but requires android.permission.DEVICE_POWER, which is never granted to apps!
(A) What on earth should I do to get this working?
(B) How can I programmatically wake up the device.
just to clarify - I'm not interested in a wake lock solution.
Usually the phone is awake, and when you lower it the phone lights up for numeric input (love that feature).
But after a minute or so it locks. You have to push power button before you can enter numbers- annoying. Is there a "keep alive" option I'm not seeing?
On a similar note, is there a way to make the phone lock automatically (like an app)? It's also annoying to have to manually lock it: I'd rather keep waking it up (if it was indeed idle and not running a program) than forget to lock it and dial/message everyone in my contact list from my pocket.
My fiends (Electronic engineers) want to assemble a new tablet, they asked me to research about making a ROM for that.Now, I need some resources to know about making a new ROM with custom kernel for our device.
is there any permissions from Google if we want to sell our device?
I apologize if these topics were already covered in previous threads.I wasn't able to find anything related in my searches. Auto-rotation for keyboard when answering a text message received in sleep mode does not work. If I actively send a text when phone is already awake, keyboard rotates with no problem but when I go to reply to a text that I received while phone is in sleep mode, the keyboard does not rotate. Is this the norm?I am also experiencing a delay when the I wake the phone. After unlocking the phone, I used to go straight to my home page, now I get a "loading" message which takes several seconds. Is this due to the number of apps I have loaded? Is it possibly due to number of photo frames I have on my home screen or the complexity of the wallpaper?View 5 Replies View Related
Can anyone tell me please how can i make screen shorts with an android device. I have to test an application,and to make screen shorts on it. and i need and screen short tool that will run in the background, while i am running my application. Is it possible. Please give me an advice, a link where i can find this kind of the applicationView 8 Replies View Related
my application objective is to save location updates every ,let say, 20 minuets .I used service and it worked fine , but when i lock the screen or it is locked automatically the service stop running .when i unlock it , service runs again.How to make my code run all the time in all conditions?View 1 Replies View Related
I have a game out on Android, and it runs in a single thread. Performs the work in run() and the draws in onDraw().Pretty simple.However, on a Droid it runs much faster than on a G1.What is a best practice for ensuring that the game runs at the same speed regardless of the device?View 2 Replies View Related
Just got the S4. Had the Incredible. Want to make my incredible, basically, a touch device for my kids (Wi-fi) only. So (after posting this question on the verizon forums) I performed a factory reset on my phone (erased all data) in order to start with a clean phone. When it comes back up it wants me to activate the phone. Is there anyway around this? Or do I have to activate the incredible and then reactivate my S4?View 6 Replies View Related
.My phone isnt detected by ADB during its boot. After bootup it shows up in the list of attached devices. Im trying to port MIUI v4 to my device so I need a logcat during the boot because it just hangs at the bootanimation but ADB doesnt see my device during boot. If I force a logcat, the log is emply.
I have tried several ROMs and on both Windows and Ubuntu and still no result.
I want to make mod to change Device name like in Galaxy S4, looking for SecSettings.apk/xml/device_info_settings.xml and SecSettings.apk/Values/strings.xml or Deodexed SecSettings.apkView 5 Replies View Related
I have a bootloop in the spaash logo,i was updating my software. My phone its an LG p714
i was trying to make a CWM recovery for the device. i managed to flash the CWM recovery but i was unable to access to,i was getting Secure booting Error,but the phone booted as normally does,well i has a notification to update the software via OTA,so i decide to update it,but before that i downloaded OTA root keeper,in order to keep root,made the SU backup and unrooted the phone,after i tought,well im ok i update the phone then i keep the root,but i forgot that i have flashed th eimage with the CMW recovery,so i got stuck in bootloop,and by the way if i connect the phone via USB and turned off i enter into CMW recovery, strange,but i cant do anything,i cant flash via KDZ i can use ADB but i dont have SU permissions.
I need to use this for a Samsung Tablet.Usually if the device is switched-off and the USB cable is being connected the display will wake up for some seconds showing an animated battery.Instead I want to let it boot.I suspect this is close to the metal. Where do I have to make a modification?In the kernel, in the Android platform, or is this hidden in some proprietary code of the manufacturer?View 1 Replies View Related
Everytime I try to fake another provider, my Hero reboot. It was working before I run MoDaCo 2.9.View 3 Replies View Related
How to make exact copy of my device on Android SDK so that I can test and develop roms on it? I found a guide on xda but it shows how to emulate Xperia X10 and it needs an add-on for X10. But there is no add-on for my device, so how can I emulate it manually? I have a Karbonn ST10 tablet.View 3 Replies View Related
Apparently my app needs 2.5 MB (maybe because my photos need 2MB...) and then virtual device can't work with that much MB.
How can I make my virtual device support more than 2.5 MB to get my application working?
Looking for a Widget to enable Bluetooth+make Device Discovered.View 1 Replies View Related
Can someone explain a couple of very simple concepts to me - I'm interested in mobile devices running android and how they are identified over networks. Some scenarios: Device is connected over WiFi - presumably the device has a standard IP address as with any host and can communicate with any other android host over TCP/IP (assuming it knows the participating device's IP? device is connected over bluetooth - how are devices identified in this case? device is connected over mobile operator's network - this is the one I'm interested in and confused by - is there anyway for two or more devices to discover each other and communicate via the mobile operator's network? How does a device communicate with a backend server in this scenario? In other words, how do apps and devices communicate when not connected to a WiFi network?View 2 Replies View Related
I just got the Samsung Galaxy S Captivate. Seems like a nice phone. Every phone I've had in the past (Nokia, Sony, etc...) has always allowed me to hide my number so that the call display on the receiver's phone shows my call as 'private'. This is useful for when you don't want certain people to have your number when you call. Is there a way to do this on the Galaxy S? I couldn't seem to find any setting how.View 1 Replies View Related
I have developed and tested my app on the emulator, and now want to install it on my HTC device. the apk installs successfully, however my database is not going with it. I have created my database using sqliteman browser b/c I have to insert a bulk data before the app starts. I have four tables in my db and call each in different activities and created all on the sqliteman. after the data is inserted I pull back the db onto the data folder of the emulator. it works perfect on the emulator but failed on the device. when I try to pull my db on the real device, it shows access denied problemView 2 Replies View Related
I have developed a sports game which is single player. Now I want to have one more game mode which is multiplayer.
My question is how can i do device to device connection in android using sets of api which can be :
1.Bluetooth - whose APIs are not currently available.
2.gtalkservice - removed from sdk1.0 3.wifi - I dont knw how to connect 2 devices using wifi apis . I have asked about wifi because we have developed a game on iphone which used wifi connection for multiplayer stuff.
Or is there any other apis which can be used for implementation of multiplayer in game ?
How do I map the device Y axis to the screen Y axis?I can't figure this out.I'm the developer of Tricorder, and I'm trying to make it so that the accelerometer and magnetometer indicators I draw always point in the right direction.On the G1 phone with the slider closed, all is well.But when I open the slider, I end up showing that gravity is pulling me to the left (if the phone is held with the display vertical).So, I know that the device, and hence sensor, Y axis is always in the direction of the earpiece; and the screen Y axis changes when I open the slider.And I know that I can use remapCoordinateSystem() to change the device axes to match the screen axes.But where do I find out what the device's orientation is?In other words, how do I compute the correct values for the X and Y parameters to remapCoordinateSystem()?
Configuration.orientation seems quite useless.Suppose it is set to LANDSCAPE.What does this mean?Does it mean a device which is "naturally" portrait (i.e. the sensor Y axis points to the narrow end), and which has been turned into landscape mode?If so, which way was it turned?Or does it mean a device which is naturally landscape?In other words, LANDSCAPE could mean that the screen axis is off from the sensor axis by +90, 0, OR -90 degrees.Not much help.So how do I do this?Obviously I want my app to work on all devices, not just the G1 phone.
I have a standalone GPS enabled data recorder in my car that can function as either a USB host or device. (Its a class 0x00h USB device). I currently connect to it via a WM 6.5 app running on my Palm Treo 750. I would like to port my WM 6.5 app to an Android phone. (I don't have a specific Android phone in mind, I would like it to be as generic as possible).Replicating the GUI is not that difficult, but I am having trouble getting started on the USB communication. I'd appreciate it if someone could point me towards an example, or the appropriate tutorial.View 1 Replies View Related
Does anyone know what this program is? What does it do? i launch it, it goes into preparing device and then I am back at home screen.View 5 Replies View Related
Basically I have an old iPod touch 2g on iOS 4.x and a Nexus 5.
I want to use my iPod as my media player but I'd like to be able to control music from my Nexus (only basic controls).
Is there an app on either device that allows this? I know tsk skipping can be done by some Bluetooth headphones so I'm hoping there's a way to make iOS accept command from my Nexus
I just got an evo a couple weeks ago. I love the phone, but after I downloaded the OTA, it won't go into sleep mode. I've turn off all the syncing, tried task killers, tried stopping google talk, the calender, everything I have read in forums.I am thinking my only choice may be to root, but I wanted to see if anyone else had this problem and if anyone actually got it fixed.I really don't want to risk bricking my phone if I don't have to..View 4 Replies View Related
So, I have left my almost fully charged Evo on my nightstand the past couple of nights without plugging it in, and when I wake up in the morning, my battery is almost fully drained. One night I did have the 4G on, but the other night I did not. Is there some sort of setting or sleep mode so it doesnt drain the battery when I am asleep?View 3 Replies View Related
Everytime i have checked my awake time and up time, they are the same! i don't know why! i have had an android phone since feb (had the hero) and it has never done this to me before.
rooted using unrevoked.
don't have wifi, bluetooth, or gps on.
when i check to see what's using my battery from the about phone->battery
-> Battery use i see this :
cell standby 23%
wifi 26% ( just realized it somehow got turned on through the day)
phone idle 24%
android system 12%
voice calls 9%
I can't think of anything else to mention, but PLEASE someone give me some advice as to what is making my phone stay awake!
When my phone is unlocked it stays unlocked with the screen on... did i change something somewhere?View 4 Replies View Related
Ok well I just realised that my phone is dying rather quickly now and come to find out, my phone is not going to sleep for some reason. Never had this problem after 2.2 update and all the sudden it happens. Last thing I downloaded from market wad pdanet. Any ideas to what could be going on?View 8 Replies View Related
My fiance's evo doesnt ever sleep! Where should I start looking? It has the stock froyo 2.2 from sprint.View 6 Replies View Related
I'm not sure what happened, but my phone isn't going to sleep anymore. I doubled checked that the radio was correct and it's set to CDMA (whatever is in the parentheses) settings. It's showing that Sense is running 100% of the time. Is this normal?View 1 Replies View Related
As the phone sits idle, the screen goes black. In order to use the phone again you must hit the power button, then slide down on the screen or hit menu. Is there anyway to remove the phone from sleep other than hitting the power button? I find this incredibly annoying that I can't just tap the screen then slide down. Are there any other options for removing it from sleep mode and if so where would I change it?View 2 Replies View Related
I have been disturbed by how much battery it seems to use while it's sleeping. After much poking around and reading and using various system/battery/monitor apps in a non-methodical manner, I think I found it. I noticed that a process called 'compass' at /system/bin/akmd was persistent in utilization on my phone. While it only ever showed like 1-6% cpu utilization, it seemed to be showing it constantly. I uninstalled a 'compass' app I had DL'd from the market, but that had no effect.
With some searching, I found some threads over at XDA that discussed this process misbehaving in some recent builds, although the conversations didn't seem to be about the EVO. Nonetheless, I decided to disable the auto screen orientation (Menu -> Settings -> Sound & Display -> Display Settings/Orientation = unchecked) and lo and behold, I'm not sure the phone even uses battery in standby now! (exageration for effect...)
Now, this will require more testing, but it seems to be at the root of *my* battery issues. And I'm thinking after reading at XDA that this could be a broad problem. I'm also hopeful though, that this could be a relatively easy software fix for HTC/Google. Especially because I don't particularly find disabling the screen rotating an acceptable long term solution... but one I can live with for now, if it makes the HUGE battery gains it seems like it might.
After weeks of being afraid, i finally installed the new update to my evo last night. My phone isnt/wasnt rooted before the install...and my battery life seems to really crappy since i did the install last night. I took the phone off the charger at 7am, used it just for texting basically, sent maybe 50 texts back and fourth and now the phones at 68% battery life via system monitor.
I check the about phone and it says the uptime and awake time are the same...is this because it was changed with the new software? the phone was on and plugged in all night and its only giving me an "UP" time and awake time of 3 hours and xx minutes?
Anyone else have this problem? with the phone being awake, will this kill my battery faster? i searched and could only find problems with the eris, not the evo, any ideas?
I had this problem the first week i got the phone, i had terrible battery life and sprint reset it, and made the problem disappear...i had awesome battery life averaging 10-18 hours on a single charge with heavy useage...any ideas?
So after applying the update my awake and uptime are identical. I'm trying to see whats the easiest way to find the source of it? Im guessing its an app that I was using on 2.1 that isnt working right with 2.2.View 6 Replies View Related
Today I noticed some very rapid battery drain and narrowed it down to Palmary Weather. I figured out that you must use the back key until the app exits for this to work correctly. If you just press the home key while in the app, it will keep the phone awake.
OK, I was just giving a quick heads up, but might as well keep a running list to make this easy. Just please make sure you've actually proven these apps have caused this issue or else we might have 1,000 listed. Also, this is not saying that the app is causing you an issue, just the obvious ones to look at when you do have a problem.
Known Problem Apps
- Flickr (if Facebook for HTC Sense is also setup to sync)
- Palmary Weather (updated:issue only occurs if you do not exit the app correctly...working fine now)
- Slacker Radio (some do not have an issue if you hit Menu/Exit to close app...others still have issue)
- Google Listen (must be configured to only download while on Wi-Fi and while charging)
How to know Android Phone is going to sleep? Help me with a sample code.View 1 Replies View Related
Is there any kind of app that can block incoming texts and calls, but still allow me to keep my phone on? I'm going to Mexico for vacation, and I dont want a 45378594365 dollar phone bill.View 4 Replies View Related
I could not find it with search. I'm back to having less than 5 hours of battery before it shuts down. At 3:00 today I was at 100% charge and at 6:00 I was at 40%. The really interesting part is when I look at the battery details. I'm at 30% right now and I have 3:24:15 of uptime and 3:23:56 of awake time. Something is not letting the droid sleep. Other than stock apps I have, xtremelabs speed test, connect bot, keepass, astro file manage and K-9. The only app that should be running is K-9 and it's using 4% of the battery.View 49 Replies View Related
I'm seeing that some users are downloading data via my application and their connection is dropped because the WiFi is going to sleep. Could I somehow take control over WiFi to keep it alive and once I'm done I return it to it's default state?View 3 Replies View Related
I'm using the android plugin for eclipse, and when I try to run my program using a real device through the android device chooser, my phone is not listed as a device. I have updated eclipse and all of the android packages, but it still isn't showing up. My phone is running 1.6, which is also the target version listed in the eclipse project.Also, the reason I decided to try testing on a real device is because the emulator doesn't seem to be working right anymore when I run my project. The emulator launches, but the program never does. Any ideas?(using windows 7/t-mobile mytouch 3g)View 3 Replies View Related
Does anybody have an idea what I may be doing wrong. I have installed the usb drivers and have my device running in debugging mode but when I run my basic hello world application through eclipse my device wont show up in the device chooser. I have also tried re installing the sdk and all the drivers and still no luck.View 4 Replies View Related