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]<android-developers%[email protected]>
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Rakesh Kumar Jha
>>
>>

-- 
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