Maybe a wake lock will help you? <uses-permission android:name="android.permission.WAKE_LOCK" />
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "My Tag"); wl.acquire(); Or maybe this? final Window win = getWindow(); win.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); win.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); On Tuesday, July 31, 2012 6:19:27 AM UTC-5, Abhishek Kumar Gupta wrote: > > > I have created a lock screen for ICS and it is placed in the > frameworks and I can open applications using this. For the user effects I > have started an animation when the lock screen is displayed. When I > boot/reboot the device, animation appears after 2-3 seconds of delay. > > Currently, I am receiving broadcast with > action*"Intent.ACTION_BOOT_COMPLETED" > *and starting the animation. But UI part of the LockScreen(without > animation) is displayed before receiving the *Intent.ACTION_BOOT_COMPLETED > *. My requirement is to display the animation in LockScreen on > boot/reboot of device without any delay. > > Any help or guidance in this regard will be well appreciated. > -- 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

