I restructure the code, now its working fine for in HTC & MOTOROLLA, but it
is not working in SONY XPERIA X10

On Thu, Jan 6, 2011 at 11:06 AM, Rocky <[email protected]> wrote:

>  My problem is,
>
> when i'm inside the my apps, and press the power button for lock the
> screen, and again press the power button for unlock the screen, i'm
> redirecting over the same Activity where i was initially.
>
> But, i want, when i press the power button for unlock the screen, needs to
> go PasswordActivity or some custom activity.
>
> how can i handle it. please give some suggestion or refer any code...
>
> --Rakesh
>
>   On Wed, Jan 5, 2011 at 11:09 PM, Rocky <[email protected]> wrote:
>
>> thaks kostya,
>>
>> lets try to do with this.
>>
>>
>>
>> On Wed, Jan 5, 2011 at 8:59 PM, Kostya Vasilyev <[email protected]>wrote:
>>
>>> Rocky,
>>>
>>> PowerManager has to do with electric power, not with the power to unlock
>>> the screen.
>>>
>>> Try this one:
>>>
>>> http://developer.android.com/reference/android/app/KeyguardManager.html
>>>
>>> ( although I don't know if what you're trying to do is at all possible )
>>>
>>> -- Kostya
>>>
>>> 05.01.2011 17:07, Rocky пишет:
>>>
>>>  I tryed though PowerManager but can't succeed
>>>
>>> On Wed, Jan 5, 2011 at 7:26 PM, RKJ (Android developer) <
>>> [email protected]> wrote:
>>>
>>>> Hi All,
>>>>
>>>> my issue is, when i'm inside the my apps, and press the power button
>>>> to screen lock (in desire), and again press the power button to unlock
>>>> the screen, i'm redirecting to that page earlier i was.
>>>>
>>>> But I want, when i press the power button to unlock the screen, i need
>>>> to to my PasswordActivity class everytime.
>>>>
>>>> How to change the behaiour of lock screen in this case.
>>>>
>>>> Thanks in advance.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Android Developers" group.
>>>> To post to this group, send email to
>>>> [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards
>>>
>>> Rakesh Kumar Jha
>>>
>>>


-- 
Thanks & Regards

Rakesh Kumar Jha
Software Developer
Symphony Services Corp (India) Pvt Ltd
Bangalore
(O) +918030274295
(R) +919886336619

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to