The most popular mobile phone lock screen software recently

Source: Internet
Author: User

I recently saw a very popular screen lock software for everyone. It can only be unlocked after a correct answer to the question. The problem is a complicated high-tech math problem. Haha, let you play with your cell phone, the end of the review is required!

On the Rise, I wrote a similar Android phone lock screen software, as shown below:

 

We all know that the Android system has its own lock screen. The most important thing we can do is to modify the lock screen. You can modify the source code of the Android system, but this is something that developers at the application layer cannot do. Another idea is to turn off the built-in screen lock of the system and display its own program interface. However, to implement a screen lock function like this, your window must be a top-level window that overwrites all interfaces, including the status bar. This is achieved through windowmanager. When a screenon broadcast is received, add your own view to windowmanager. If the answer to the question is correct, remove the view. To improve the simulation, you can also get the wallpaper of the current screen and set the background image of the view to the current wallpaper.

However, windowmanager. when the type value of layoutparams is set to 2003, it not only overwrites the status bar, but also overwrites the phone answering interface. This is what we do not want to see. Therefore, register the incoming call broadcast. When receiving incoming broadcast, the screen lock page is not displayed.

The idea is like this. If you are interested, you can implement it on your own!

I have my own source code. If you are interested, you can refer to it. It is easy to write and don't mind!

: Http://download.csdn.net/detail/pzhtpf/4876628

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.