简体   繁体   中英

Android LockScreen

I am planning to create a Android Lock Screen of my own . But i don't know where to start? Should i just make an activity with UI layout that interacts touches, and when the user swipes I should call the androd.intent.HOME ?

And how can i override the default android Lock Screen application?

I really dont have a clue any help would be appreciated. I saw this post : Where can I find examples or tutorials about creating a custom android lockscreen? but its not very helpful

And my device is rooted and i dont mind making the app only for ROOTED users..

I tried a few weeks ago exactly the same thing. I came to the conclusion that you cannot easily change the lockscreen.

IMO currently the easiest (It doesn't mean it's actually easy) method to do it, is to use the Xposed Framework.

Check out this Link

It will give you a brief overview how to hook and intercept methods.

You could search & hook the method which opens the LockScreen and launch your own...

Good Luck :)

As far as I know, there is no lock screen tutorial. Still google not provided any api for custom lockscreen. You need to write your own home screen app which will implement the lockscreen behaviour that you require. There is sample code for writing your own home screen app in the Android SDK(Source code).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM