[Q] Android - turn of key lights (Java) - Android Software Development

Hello,
inside my app, I need a way to turn off the lights on the standard android phone keys (home, menu, back, search) - how can I do this programmatically? (I don't need the instructions saying go to settings and set lower sleep time, I need to do this with Java)
Thank you

Related

xda2 hints and tips

these are just a few hints and tips please feel free to add more
xda2 gprs switch off
this is a little known feature, but one which is very very useful. if your xda2 for some reason connects to a gprs connection you can easily turn it off again by pressing the red button (phone down key) for 2~3 seconds. avoiding the problem of having to switch off and switch on the wireless connection.
###############################################
xda2 speaker phone
when in a call, you can activate the xda2 speaker phone by pressing the green button (pick up phone) for 2~3 seconds.
###############################################
xda2 camera
when using the camera you can press the top left button on the handset (contacts button) to change the orientation of the icons on the screen.
###############################################
screen brightness
the screen is a very bright one, squeeze more life out of the battery by turning it down. go to start - settings - system - power : click on the word back light at the bottom and adjust to about half way for when running off the battery. half way is a very usable brightness, you can go lower if you don't mind it being slightly dim.
###############################################
accidental pressing of buttons
by default pressing any button on the xda2 will switch the machine on. you can stop all buttons activating the xda2 (bar the power switch) by going to start - settings - button lock : select lock all buttons except power button.
###############################################
sending a video clip via mms
to send a video clip via mms you have to change the format to which it is saved. go to start - programs - camera (or just start the camera). click on the screwdriver and wrench icon. click tools - options : click the video tab. in the capture format drop down box highlight H.263 - this is the standard 3gp mobile video phone format.
###############################################
adding your own sound to a xda2 action
you can add your own sounds to xda2 notifications, like receiving an sms, by simply creating the sound you want as a wav file. you can do this on your main computer (sound recorder in "start - programs - accessories - entertainment - sound recorder" is a simple piece of software to do this). then pass the file onto the xda2 using activesync / email / etc... you must copy the file into the "my device - windows" folder using file explorer. next go to settings, choose "sounds & notifications". click on the notifications tab, choose the event you want to assign the sound to e.g. "inbox: new sms message". make sure play sound is selected with a tick - now choose the sound that you have just copied into the "my device - windows" folder from the drop down box.
Nice one..
One or two i didnt know...
Thanx...
ignoring incoming calls
A helpful one:
When u receive a call that u don't wanna answer, instead of rejecting it by pressing "ignore or the red phone button, u can push the volume button up or down putting the ringer off. The caller won't get the busy signal and won't know u deliberately rejected his call. :wink:
When Phone application is active, pressing the 5-way navigation key
Up: goto call history
Down: goto speed dials
When sound is turned off (ie X) then pushing volume slider up once will take it to vibrate mode, and pushing again takes u back to normal sound levels.
Doesn't seem to be a way of doing the reverse though?
battery saving
install software that you use often on your XDA storage and NOT on an extra SD storage card. This saves much battery (less card-IO).
Abroad meeting/appointment alerts
If you travel a lot for meetings in different time zones, don't creat the calendar entry in your current time zone, instead, change the time zone to the destination, creat the calendar item then get back to your time zone. Otherwise the reminder will not set off properly.
1. pressing and holding the power button for 2-3 sec toggles the backlight on/off
2. Hold the Action Button and tap on the clock at the right hand corner of the screen; It will pop up a menu with the Run Option. Then you can use the run as your command prompt.
3. how to:
http://www.pc-counselor.8m.com/How_to/index.htm
Hi, I could not find how to decrease or stop the volume of reminders' notification. I find it so irritating when it rings increasingly, and so difficult to stop as I must first open the screen before being able to press the screen and stop it.
Cool... Nice one dude!

Can Autolock be disabled?

I want to use an application to control it, can it be disabled?
Im not aware of an application designed to do what you are asking. However, you can use power manager to change the profile to keep the phone awake all the time. It would still lock when in standby, AFAIK.
Kieth
Settings->sound & display->screen timeout->never
Turning off the screen timeout off wont disable autolock. And yes, there are "slider" programs that immitate the iphone unlocked, which gets annoying to use when i have to hit menu to get out of autolock, and do the slider.
Go to anycut create an activity for setup wizard when it says touch screen, touch and quickly remove the battery, when you restart it will be disabled but you also loose the home key function, along with the green function, but it works if you can live without those.
that worked great but i dont think i can live with out the home and call buttons, how do i get them back?
Just run the wizard again and follow it through till the end and reset your phone.

Is there a way to manually trigger lock device (with PIN entry)?

Is it possible to manually trigger the auto lock feature (when inactive) with PIN entry?
press start menu->left softkey (Lock)
Thanks for the help
Okay...sorry guys...I didn't understand that fully Got the start menu but "-> left softkey" I'm totally lost. Are you talking about the softkeys along the bottom of the Touch HD (phone, home, back, end call)??
malaha said:
Okay...sorry guys...I didn't understand that fully Got the start menu but "-> left softkey" I'm totally lost. Are you talking about the softkeys along the bottom of the Touch HD (phone, home, back, end call)??
Click to expand...
Click to collapse
Soft keys are the words at the bottom of the screen such as Contacts or Phone etc.
Alternate to softkey is Start>Lock (then set lock to use a pin) and then long-press the drop call button and on coked ROMs that should bring up a menu which includes lock screen -or the menu can be changed to automatic lock instead (through Manila settings).
Thread closed

How can I program the "ON" button?

Is there any way of programming the "on" button on the top of the device not to switch the device on until it has been pressed for a long time (in a similar fashion to how you would shut the device down)??? It's really annoying how easily this phone is turned on when inside one's pocket or bag!
HW Key Remapping on Topaz
You may try to use the attached tool.
It allows (on Topaz only) to remap any key ans assign different actions to single-click, double-click and long-press.
Basically it works also for Power key, but there may be some limitation for assigning other actions to it; but I'm absolutely sure you may disable that key.
Anyway try it. It's a nice tool.
Requirements:
- .NET CF 2.0
- compatible with both WM 6.1 and 6.5
Installation:
- Install SdkCerts.cab (also attached)
- Install TopazKbdControl_GSM.CAB
- Soft-reset
After that you can run the tool. It should be placed under system settings.
Good luck!
Thanks, orik13. I'll try and then let you know what happened.
is there any feedback on this app? does it work for the purposes ScrumMachine wanted it for?
As far as I can see, this only remaps button/screen presses when the system is ON, not when the system is off.
The standard operation of the TD2 power button is REALLY annoying. Is there another way to stop this button from switch the phone on when you just touch it, but rather need to press is for a long time?

Turn off screen on Windows Mobile

Hello everyone,
I have been searching for some time about a possibilitie / software that will work for my actual HTC (Diamond pro) but nothing comes to be even good. And then I remember the old times with an old HTC (sorry I do not remember the model) where a dedicate key could turn off the screen
what I am looking for, if anybody has an idea, please share it,
- hot key, shortcut that turn off the screen, and disable the touch screen
- the screen come become a-live with same key-press
that's all !!
and what I think would be the perfect solution.
- and application that as soon as it get started turn off the screen and disable the touch screen, letting still the functinality for the device to be controlled by the PC (personally I use MyMobileR )
- in that way it could be assign to a hot key, or to a short cut in the screen/menus (I will love to be possible to assign to a long touch on the central pad/button)
- it could have advance configuration options :
dim light levels instead of complete turn off
splash a logo / screen instead of black screen
- configurable key to let the app go, again lovely if a long central pad touch would make it
mainly the idea is to save battery / turn off the screen (touch also) in a easy way without lose any other functionality when the device think is not time to do it (connected to PC, GPS application, Music playing, etc...)
any idea ?
I would love to program it, but I lack the skills necessary for it. within my ignorance I presume is not a difficult app to be develop
thanks in advance
have you tried xdaShutdown?
http://forum.xda-developers.com/showthread.php?t=544016
you can make a .lnk file of "lights out" and assign it to a button.
53#"\Program Files\xdashutdown\xdashutdown.exe" /lightsout
Click to expand...
Click to collapse
Hello dude i can share what i think
Im using Turn the Screen OFF
Its very litle and simple app so after install it on the Main Memory she will apear in the start menu, you need just to go in settings, personal, buttons and there to map some of the hardware keys to use Turn of the light.
I didt it with my Answering Button and when i press and hold that Button my phone go to sleep mode fast.. when i wana wake up the phone i can do it by the Stylus.. if i pull out the stylus the phone wake up or the second variant is to press the Power button.
Im using this app because i don`t want to use my power button anymore and this program really work for me and is free
Im using Touch HD but the program will work on any WM Device

Categories

Resources