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?

ADVERTISEMENT

Android :: How To Find Out If Device Is In Sleep Mode?

May 26, 2009

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

Android :: Putting Device To Sleep And Wake Up Programmatically?

May 23, 2009

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.

View 2 Replies View Related

Motorola Droid X :: App To Make Sleep Button?

Sep 7, 2010

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

HTC Incredible :: Prevent Sleep During Call / Make Phone Lock Automatically (like An App)?

May 1, 2010

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.

View 5 Replies View Related

Android :: How To Make Screen Shoots With Device?

Sep 9, 2010

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 application

View 8 Replies View Related

Android :: How To Make Service Run / When Device Is Not Awake?

May 21, 2010

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

Android :: Best Way To Make Games Run At Same Speed On Any Device

Aug 19, 2010

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

Android :: How To Make Device Boot When Power Is Plugged In?

Nov 12, 2010

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

HTC Hero :: Market Enabler Make Device Reboot

Nov 20, 2009

Everytime I try to fake another provider, my Hero reboot. It was working before I run MoDaCo 2.9.

View 3 Replies View Related

Android : How I Can Make My Virtual Device Support Applications That Require More Than 2.5MB

Sep 30, 2010

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?

View 1 Replies View Related

HTC Droid Eris :: Auto-rotation From Sleep Mode / Delay In Waking From Sleep Mode

Jan 5, 2010

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

Android :: Modes Connectivity Device Identification & Device Inter Communication?

May 28, 2010

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

Android :: Permission Denied On Device - Emulator Failed On Device

Jun 6, 2010

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 problem

View 2 Replies View Related

Android :: Multiplayer Game - Device To Device Connection Using Sets Of Api

Mar 24, 2009

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 ?

View 3 Replies View Related

Android :: Device Orientation / Mapping Device Y To Screen Y

Oct 30, 2009

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.

View 2 Replies View Related

Android :: How To Write App To Connect Device To Host USB GPS Device

Oct 29, 2010

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

Sprint HTC Hero :: Device Self Service 1.1 Goes Into Preparing Device

Oct 14, 2009

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

Android :: Device Chooser Device Not Showing Up

Feb 13, 2010

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

Android :: Device Not Showing Up In Device Chooser

Aug 10, 2010

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

Samsung Galaxy S :: Make Number Private When Make Calls?

Nov 10, 2010

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

HTC EVO 4G :: Evo Won't Go Into Sleep Mode

Jul 8, 2010

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

HTC EVO 4G :: Is There A Sleep Mode?

Jun 17, 2010

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

HTC EVO 4G :: Phone Won't Sleep

Jun 9, 2010

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%
display 4%
dialer 2%

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!

View 9 Replies View Related

HTC EVO 4G :: Phone Does Not Sleep

Jun 15, 2010

When my phone is unlocked it stays unlocked with the screen on... did i change something somewhere?

View 4 Replies View Related

HTC EVO 4G :: Phone Not Going To Sleep

Sep 18, 2010

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

HTC EVO 4G :: Wont Sleep

Aug 28, 2010

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

HTC Eris :: EE2.0.1 Not Going To Sleep

May 25, 2010

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

Android :: Get Device Manufacturer Or USB Device Id

Nov 10, 2009

http://developer.android.com/guide/developing/device.html Is there a way to get the device manufacturer or the USB device ID? I could not find anything documented.

View 7 Replies View Related

HTC Incredible :: Getting Out Of Sleep Mode

May 16, 2010

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

HTC EVO 4G :: Battery Usage While Sleep?

Jun 21, 2010

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.

View 5 Replies View Related

HTC EVO 4G :: Phone Wont Sleep

Jul 21, 2010

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?

View 1 Replies View Related

HTC EVO 4G :: Phone Wont Sleep ..

Aug 3, 2010

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

HTC Incredible :: App That Won't Let Phone Go To Sleep

May 27, 2010

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)
- Profile
- 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)
- Meebo
- Alice
- MyLock

View 46 Replies View Related

Android :: How To Know Phone Is Going To Sleep

Sep 16, 2010

How to know Android Phone is going to sleep? Help me with a sample code.

View 1 Replies View Related

Android :: Sleep Mode App?

Aug 1, 2010

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

HTC Incredible :: Phone Won’t Sleep

May 3, 2010

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

Android :: Keep WiFi From Going To Sleep?

Feb 6, 2010

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

HTC Hero :: Cannot Get Phone Into Sleep Mode

Oct 27, 2009

Over the last week or so I've been obsessed with trying to get my hero into sleep mode, in order to save battery. For those who don't know about this, there are many threads around the net telling of a fix for the messages bug, which prevents the phone entering sleep. It's supposed to reduce CPU usage, thus saving battery.
Now, I've followed the methods of many people who claim to have done this successfully, down to a tee, but for the life of me, I can't get it to work. For some reason my awake time is always at 100%. It's now at the pont of driving me mad, and I'm just wondering if anyone else has tried and failed to do the fix. If anyone needs background info on this problem, I'll post a link up later, as I'm sending this via my phone at the minute.

View 13 Replies View Related

Android :: Sleep Mode In Emulator

Apr 6, 2009

Is the actual version of the emulator able to reproduce the sleep mode? (Android 1.1 SDK r_1)

View 3 Replies View Related

Android :: App That Changes 3G To 2G In Sleep Mode Like Auto3G

Aug 30, 2010

Looking for an app or widget that will automatically disable 3G and change my phone to 3G (Edge) when the screen is asleep or I press the lock button.and the re enables when I unlock.

View 8 Replies View Related

HTC Desire :: How To Escape Sleep Mode?

Jul 26, 2010

I have just got my HTC desire. And i cant stand that i have to press the power button to get out of sleep mode to show the lock screen. wish i could just press menu/home or any of the buttons but the power one right at the top. I only say this as i swear my htc tattoo unlocked in this way. if not this could get quite annoying. So is there anyway to change this. I have tried looking through settings but i have a bad feeling you cant change it.

View 3 Replies View Related

HTC Hero :: Sleep Mode And Alarm

May 26, 2010

Recently moved from a very old Nokia into the 21st century and got a hero last week. Of course i cant stop playing with it and love it, but i may have altered some settings which i wonder if anyone can help me with;before, when the phone was on and i pressed the power button once, it went into sleep mode. Now it doesn't. Any ideas why?the alarm on the clock is silent. Obviously a bit of a problem in the mornings! Any idea why?

View 1 Replies View Related

Samsung Captivate :: App Changes 3G To 2G In Sleep Mode

Aug 30, 2010

Looking for an app or widget that will automatically disable 3G and change my phone to 3G (Edge) when the screen is asleep or I press the lock button.and the re enables when I unlock.

View 3 Replies View Related

HTC EVO 4G :: Swype Phone Used To Go To Sleep After A Minute?

Jun 17, 2010

I'm definitely diggin' Swype on my Evo, however I've got a question that hopefully has a simple answer. My phone used to go to sleep after a minute, which is what I like/want. Since I installed the Swype Beta today, it won't. I have to go and tap my power button to make it sleep. Is there a work around for this?

View 20 Replies View Related

ADVERTISEMENT