special lockscreen looks like this btw http://nightshadelabs.appspot.com/static/lockscreen.png
On Jun 19, 9:10 pm, GodsMoon <godsm...@gmail.com> wrote: > Sorry, my app disables the keyguard with disableKeyguard(). > This makes inKeyguardRestrictedInputMode() return true so clicking on > the home button brings up the lock screen (the special one without the > Emergency Call button). > I would like to see this lock screen when pressing the back button. > > Actually, I just want to know how to bring up that special lock screen > on demand. I know it comes up with the home button so I was going to > try to mimic that. > > Thanks for your help, > David Shellabarger > > On Jun 19, 5:40 pm, Dianne Hackborn <hack...@android.com> wrote: > > > > > I'm not sure I understand... if you want to switch to home from your app > > (which I am pretty sure the intent you give below is the right way), what > > would this have to do with the keyguard? If the user is in your app, they > > aren't in the keyguard... I don't understand the connection you have > > between the two. > > > On Sat, Jun 19, 2010 at 11:03 AM, GodsMoon <godsm...@gmail.com> wrote: > > > I would like the back button to work exactly like the home button in > > > my activity. I know that doesn't sounds like something I would want to > > > do, but it makes sense in the context of my app. > > > > I've tried an intent: > > > Intent intent = new Intent(Intent.ACTION_MAIN, null); > > > intent.addCategory(Intent.CATEGORY_HOME); > > > startActivity(intent); > > > But this doesn't work the same way. > > > I've tried super.onKeyDown(KeyEvent.KEYCODE_HOME, event); on the > > > onKeyDown method and it does nothing. > > > > They problem is the keyguard acts different when you push the home > > > button when you have an unlock pattern set. > > > There is usually a "Emergency Call" button on the unlock pattern > > > screen, but there is not when you click the home button and you have > > > dismissed the keyguard. > > > I would like the back button to behave the same way. > > > > Would I be able to do this with the instrument class? Is there a > > > better way to do it? > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs > > > cr...@googlegroups.com> > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com > > > Note: please don't send private questions to me, as I don't have time to > > provide private support, and so won't reply to such e-mails. All such > > questions should be posted on public forums, where I and others can see and > > answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en