Re: [android-developers] Re: DevicePolicyManager LockNow problem
Thanks all. For earlier version devices, I tried dispatching power button key event via code to lock the phone.But its not dispatching the key event for. Thanks & Regards, Ashiq Sayyad On 20 January 2012 14:17, Mukesh Srivastav wrote: > @Albnok, > > I had tried decompiling the required library and had spend lots of time, > but not succeeded. > > I Love to hear if some one is doing this. > > Warm Regards, > *Mukesh Kumar*, > Android Consultant/Freelancer, > India,Hyderabad. > > > On Fri, Jan 20, 2012 at 2:10 PM, albnok wrote: > >> Well it says it's only on API Level 8 so I can't help you there. If >> you know it works in another app, on Android 2.1 or below, you might >> try decompiling that app, but I have no experience with that so I >> can't say whether it is possible to find an undocumented API that >> works. >> >> On Jan 20, 2:35 pm, ashiq sayyad wrote: >> > Thanks.I will check that. >> > >> > One more is there any way to implement lock on earlier android >> > versions(before 2.2) >> > >> > Thanks & Regards. >> > Ashiq Sayyad >> > >> > On 20 January 2012 12:00, albnok wrote: >> > >> > >> > >> > >> > >> > >> > >> > > You might have missed something in the implementation - it should >> > > cause the Device Administrators window to pop up, and you need to >> > > Activate your app as a Device Admin. >> > >> > > Then only isAdminActive() will return true. >> > >> > > On Jan 18, 2:58 pm, ashiq sayyad wrote: >> > > > I have checked the lockNow implementation in API demos & tried the >> > > > same thing in my app. But I am not able to lock the device(Google >> > > > nexus) >> > >> > > > Is there any restriction on this API call for thrid party >> application? >> > > > isAdminActive() method is returning me false... >> > >> > > > One more doubt,how to implement screen lock functionality for below >> > > > 2.3 devices as there in no direct APIS for tat.. >> > >> > > > Awaiting for help >> > >> > > > Thanks & Regards, >> > > > Ashiq Sayyad >> > >> > > -- >> > > 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 >> >> -- >> 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 >> > > > > -- > > > -- > 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 > -- 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
Re: [android-developers] Re: DevicePolicyManager LockNow problem
@Albnok, I had tried decompiling the required library and had spend lots of time, but not succeeded. I Love to hear if some one is doing this. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Fri, Jan 20, 2012 at 2:10 PM, albnok wrote: > Well it says it's only on API Level 8 so I can't help you there. If > you know it works in another app, on Android 2.1 or below, you might > try decompiling that app, but I have no experience with that so I > can't say whether it is possible to find an undocumented API that > works. > > On Jan 20, 2:35 pm, ashiq sayyad wrote: > > Thanks.I will check that. > > > > One more is there any way to implement lock on earlier android > > versions(before 2.2) > > > > Thanks & Regards. > > Ashiq Sayyad > > > > On 20 January 2012 12:00, albnok wrote: > > > > > > > > > > > > > > > > > You might have missed something in the implementation - it should > > > cause the Device Administrators window to pop up, and you need to > > > Activate your app as a Device Admin. > > > > > Then only isAdminActive() will return true. > > > > > On Jan 18, 2:58 pm, ashiq sayyad wrote: > > > > I have checked the lockNow implementation in API demos & tried the > > > > same thing in my app. But I am not able to lock the device(Google > > > > nexus) > > > > > > Is there any restriction on this API call for thrid party > application? > > > > isAdminActive() method is returning me false... > > > > > > One more doubt,how to implement screen lock functionality for below > > > > 2.3 devices as there in no direct APIS for tat.. > > > > > > Awaiting for help > > > > > > Thanks & Regards, > > > > Ashiq Sayyad > > > > > -- > > > 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 > > -- > 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 > -- -- 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
Re: [android-developers] Re: DevicePolicyManager LockNow problem
Excatly Mr.Ashiq, I did that, i am able to have the complete control like a. lock the screen. b. password change event c. wrong pass-- i am doing it for trace the mobile. d.password success, a customize screen with widget into that. Regards, Mukesh On Fri, Jan 20, 2012 at 12:05 PM, ashiq sayyad wrote: > Thanks.I will check that. > > One more is there any way to implement lock on earlier android > versions(before 2.2) > > Thanks & Regards. > Ashiq Sayyad > > > On 20 January 2012 12:00, albnok wrote: > >> You might have missed something in the implementation - it should >> cause the Device Administrators window to pop up, and you need to >> Activate your app as a Device Admin. >> >> Then only isAdminActive() will return true. >> >> >> On Jan 18, 2:58 pm, ashiq sayyad wrote: >> > I have checked the lockNow implementation in API demos & tried the >> > same thing in my app. But I am not able to lock the device(Google >> > nexus) >> > >> > Is there any restriction on this API call for thrid party application? >> > isAdminActive() method is returning me false... >> > >> > One more doubt,how to implement screen lock functionality for below >> > 2.3 devices as there in no direct APIS for tat.. >> > >> > Awaiting for help >> > >> > Thanks & Regards, >> > Ashiq Sayyad >> >> -- >> 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 >> > > -- > 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 > -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- 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
Re: [android-developers] Re: DevicePolicyManager LockNow problem
Thanks.I will check that. One more is there any way to implement lock on earlier android versions(before 2.2) Thanks & Regards. Ashiq Sayyad On 20 January 2012 12:00, albnok wrote: > You might have missed something in the implementation - it should > cause the Device Administrators window to pop up, and you need to > Activate your app as a Device Admin. > > Then only isAdminActive() will return true. > > > On Jan 18, 2:58 pm, ashiq sayyad wrote: > > I have checked the lockNow implementation in API demos & tried the > > same thing in my app. But I am not able to lock the device(Google > > nexus) > > > > Is there any restriction on this API call for thrid party application? > > isAdminActive() method is returning me false... > > > > One more doubt,how to implement screen lock functionality for below > > 2.3 devices as there in no direct APIS for tat.. > > > > Awaiting for help > > > > Thanks & Regards, > > Ashiq Sayyad > > -- > 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 > -- 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