Programatically lock off the phone - Android Software Development

Usually we push the power button to lock off our phone, but someone know how to lock off phone by coding? Please help.
PS: Sorry my bad english.

Related

Key barrier for XDA-Diamond

First I ask for excuse for my bad English. I have a problem with my XDA. Whenever a phone call comes, an appointment(date) reminds, or an SMS, then the touchscreen intervenes, and find it, before I get it from the belt pocket, unintentional actions instead of.
I have the AnswerkeysDisablerv0.5 already on it, and now with phone calls it is completely OK, but by the other actions it is bad.
Is there a programme(program) what closes the touchscreen always, until the key is pressed on top the device?
All the same which action happens?
Maybe infers with the AnswerkeysDisabler, can be accepted(assumed) thus the phone calls?
Many thanks for the help.
Answer maybe in in German possibly?

automaticaly lock keyboard/screen when Idle?

Hi there.
Is there a way to automatically lock the screen and keys when the phone is idle for a while?
Kinda like the device lock funktion, but without entering a password.
I'm not worried about abuse, rather about accidentally activating telephone functions while carrying it around.
Basically I just want the phone to automatically push and hold the "hangup/lock"-Button when the phone is idle for 5 minutes.
I know something similar can be done in the system settings, but only in combination with a password which gets rather annoying over time.
alternatively: is there a way to deactivate WM6's password complexity rules (so it will accept empty/trivial passwords)?
Here you go...
Hey !
Use - csdevctrl -
http://forum.xda-developers.com/showthread.php?t=386451
Greets !
Hi fotoingo,
This is just what I needed - thanks.
As a non dev and just returning to WinMo after a long absence, please can you advise how I would get the hard keys on the X1 to work during a call and just disable the touchscreen?
Thanks

[Q] WP7 Shutdown While Locked...

Hi,
Does anyone know if its possible to prevent the HD2 from shutting down while the screen is locked (from holding down the "end call" hardware key)? I think it should only shutdown if the screen is unlocked, I've lost count of the amount of times the phone has rebooted in my pocket.
Maybe a reg key to override the button?
Thanks.
I was wondering the same as I tried this just an hour ago. It doesn't make sense it shuts down while locked. Sorry for this poor input, but I too would really want this option/feature.

a strange problem with my phone a strange problem with my phone pressure locks

a strange problem with my phone
pressure locks the keypad lock
pressure and does not turn the phone locks up again, the key lock
pressure, the screen lock key again after dark.
pressing a key on the keypad lock works and other works display.
I want to turn off the phone long pressing the red button
comes off, but the touch screen menu does not respond.
the phone just hangs.
with other key keypad lock, press and everything is working normally deplorable.
The strange thing about the job WP7, Android, and in the same case in WM6.5
I've tried and the original rom task29
No results were picked, but I do not get hard spl
my english google translate
so sory
THIS IS DEV, NOT Q&A. MODs PLEASE MOVE.
what OS are you on? What do you mean by pressure? Pushing one of the hard buttons? or do you mean the Touchscreen does not work?
Have a buddy translate your question for you if you can't it is totally unclear what your issue is.
Thanks taknil...
my poor english
I'll take help from a friend
Buddy, your problem is related to touch screen or digitizer. The one way you can be sure about this is installing a windows rom again.
Then go to settings and try to align the screen manually by choosing touch settings.
If the above dont work presumably your digitizer is malfunctioning or the touch screen is having a micro crack somewhere.
ceylin45 said:
Thanks taknil...
my poor english
I'll take help from a friend
Click to expand...
Click to collapse

I can't unlock EINK Screen lock...

Someting happened.
When i push power button the main screen will unlock. The main screen look down, but doesnt work EPD unlock.
What can happened? Please Somebody help :'(
zolee166 said:
Someting happened.
When i push power button the main screen will unlock. The main screen look down, but doesnt work EPD unlock.
What can happened? Please Somebody help :'(
Click to expand...
Click to collapse
OKEEEEEEY i removed that fancy analog clock, and everything working. WHY? Or something else?
That might mean that the clock widget is badly programmed and steals the touch focus from the unlock. That might be worth some experiments.
flashed to latest KITKAT, sometimes ok, but still got the problem. With swipe cant unlock. But if i give the main screen to the eink its working. Any advice ?

Categories

Resources