I want to develop my own lock screen for Android that will replace the default android lock screen. I do not have any idea how to start.
Is there any tutorial about it or an example I can download and open in my eclipse and run ?
Thanks a lot
Using android:keepScreenOn="true" is equivalent to using FLAG_KEEP_SCREEN_ON . You can use whichever approach is best for your app. The advantage of setting the flag programmatically in your activity is that it gives you the option of programmatically clearing the flag later and thereby allowing the screen to turn off.
Any application using a WakeLock must request the android. permission. WAKE_LOCK permission in an <uses-permission> element of the application's manifest. Obtain a wake lock by calling PowerManager#newWakeLock(int, String) .
What you actually want to do is create an application which will look like the home screen and prevent the "real" home screen from appearing.
You might want to have a look at this: Launcher2.git
I would also recommend reading these questions:
Create custom lockscreen for android 4.0 or above?
https://stackoverflow.com/questions/10864300/create-a-lock-screen-of-my-own
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With