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

