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
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
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)
(LockPattenKeyguardView.java 457)
at com.android.internal.policy.impl.LockPatternKeyguardView.<init>
at com.android.internal.policy.impl.LockPatternKeyguardViewManager.show
at com.android.server.WindowManagerService$PolicyThread.run
€€€€€€Cased by :java.lang.reflect.InvocatinTargetException
at com.andoid.internal.widget.LockPatternView.<init>
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 

  Today's Topic Summary


2. AudioTrackTread

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?