Screen Lock

Put your problem here if it does not fit any of the other categories.

Screen Lock

Postby barrie » Wed Oct 01, 2008 9:58 pm

Is there anyone knows how to screen lock. Like push the cancel phone button then the screen is lock until we push menu button.

Screen Lock. Yeah. Anyone knows how to achieve this??

Thanks

Barrie
barrie
Junior Developer
Junior Developer
 
Posts: 10
Joined: Wed Oct 01, 2008 7:03 pm

Top

Postby plusminus » Wed Oct 01, 2008 11:21 pm

You can capture all KeyEvents in your Activity, but you will never be able to override the behaviour of the HOME-Button.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby MrSnowflake » Thu Oct 02, 2008 1:59 pm

There's a KeyGuardManager, but I can't get it to work (or maybe it's for something else as locking hardware keys :))
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby plusminus » Fri Oct 03, 2008 12:13 am

Anyway, HOME-Button will always be usable :P

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby barrie » Fri Oct 03, 2008 12:16 am

is there any way we can keep our application run every 3 mins and never stop or uninstalled by the user.
barrie
Junior Developer
Junior Developer
 
Posts: 10
Joined: Wed Oct 01, 2008 7:03 pm

Postby plusminus » Fri Oct 03, 2008 12:24 am

You can run a service in the background, also you can fetch an intent that is sent out every minute (I think it was sth like TIME_TICK ..)

All Applications should be uninstallable.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Postby MrSnowflake » Fri Oct 03, 2008 10:14 am

plusminus wrote:All Applications should be uninstallable.

Regards,
plusminus
Thank god they are. Unless maybe you want the phones to be part of some enterprice environment. but otherwise we really need uninstalling.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby barrie » Fri Oct 03, 2008 4:52 pm

Of course user can install and uninstall the application on their own phone. The problem is does G Phone has any protection way, like ask user to insert password before installing or uninstallling.
barrie
Junior Developer
Junior Developer
 
Posts: 10
Joined: Wed Oct 01, 2008 7:03 pm

Postby MrSnowflake » Sun Oct 05, 2008 12:12 pm

That's what I mean, I hope there's no protection agains uninstalling (perhaps except mallicious software which uninstalls other software I wish to keep.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby ninor » Mon Oct 06, 2008 8:14 am

But the Applications cannot access the raw filesystem or another apps' space/DB.
That's the benefit of using linux under the hood.
Every app has its own container and they remain enclosed there.
Image AndDev: Your Android Development Community / Tutorials | Here's my Basic ToolKit
User avatar
ninor
Moderator
Moderator
 
Posts: 180
Joined: Thu Aug 14, 2008 6:30 pm
Location: Barcelona, Spain

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 22 guests