About screen unlock鈥攈elp!!!

by andrew » Mon, 25 May 2009 17:22:08 GMT


Sponsored Links
 Now,I have a trouble,please help me!
When the screen of the phone is locked,I have to hide the locked
screen in the method "onCreate()" of my activity,and the way I can
hide the locked screen, is to use method "disableKeyguard" in
KeyguardManager.KeyguardLock.
And in the "onDestroy" method of my activtiy,I use the method
"reenableKeyguard" to redisplay the lock screen.
But there have a problem,my activity will be keepped on calling by
service, so this activity will do the thing:hiding and redisplaying
the locked screen endless.
After the activity being called thirty or much more times,an exception
was thrown like this:

dalvikmv-heap 28900-byte external allocation too large for this
process .
VM won't let us allocate 28900 bytes.
uncaught handler:thread WinddowManagerPolicy exiting due to uncaught
exception
***EXCEPTION IN SYSTEM PROCESS;System will crash
android.view.InflateException:Binary XML file line#60 Error inflating
class java.lang.reflect.Constructor
€€€€€€at com.android.internal.policy.impl.UnLockScreen.<init>
(UnlockScreen.java 134)
at
com.android.internal.policy.impl.LockPatternKeyguardView.CreateUnlockScreenFor
(LockPattenKeyguardView.java 457)
at com.android.internal.policy.impl.LockPatternKeyguardView.<init>
(LockPatternKeyguardView.java:274)
at
com.android.internal.policy.impl.LockPatternKeyguardViewProperties.createKeyguardView
(LockPatternKeyguardViewProperties.java:48)
at com.android.internal.policy.impl.LockPatternKeyguardViewManager.show
(LockPatternKeyguardViewManager.java:123)
at com.android.server.WindowManagerService$PolicyThread.run
(WindowManagerService.java:474)
€€€€€€Cased by :java.lang.reflect.InvocatinTargetException
at com.andoid.internal.widget.LockPatternView.<init>
(LockPatternView.java:246)
€€€€€€
After throwing this exception,the emulator restarted by itself!
Please if there someone can tell me why this exception happened??and
this let the emulator restarted by itself!
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Abridged summary of android-developers@googlegroups.com - 22 Messages in 18 Topics

-- Sent from my Palm Device
On Jun 16, 2010 11:23 PM, android-developers+nore...@googlegroups.com 



&nbsp;
  Today's Topic Summary

Group: 

2. AudioTrackTread

Hi,
I am new to android stuffs...Currently, I am trying to understand the
source codes... I am in AudioTrack.cpp...
Could someone explain to me what is AudiotrackTread.

Thank You

-- 

3. Gmail, Youtube, Maps

4. Social networking gateway performance....

5. help in service

6. Display flicker when a video is played

7. Any Tree (Swing/JTree-like) widget for Android?