One-click call out Millet Yangcheng Pass Card

Source: Internet
Author: User

Millet 5 can be used to direct the bus and the subway, very convenient, the only drawback of the place is:

  Need to lock screen/black screen, long press the volume down key or double-click the Home button in order to exhale the Yangcheng Pass card interface.

that if I need to brush Yangcheng Tong, has entered the desktop, then I must first press the power off key lock screen, and then long press the volume down key, in order to call out the Yang Yang interface, people with obsessive-compulsive disorder said hurt. to solve this problem, actually write a program on it.

1. First call out the Yangcheng pass interface and then use the ADB command to view information about the top activity.

adb command: ADB shell Ddumpsys activity activities

The information is as follows:

Through, you can see the package name is: Com.miui.tsmclient,

The activity name is: Com.miui.tsmclient.ui.quick.DoubleClickActivity, which also has action,flag and so on some information.

2. Write the program and create a new activity.

very simply, follow the information we found in ADB, construct a intent, then call through StartActivity and exit the program. However, this can have a consequence: when we click on the app, there will be a flash and then exit. That can modify the theme, we hope this activity does not show.

3. Here, the app has been written, how can it be more convenient to call it? I'm going to put it inside the millet hover button. At last it became.

    

4. Click the app to successfully eject the Yangcheng pass swipe interface.

    

One-click call out Millet Yangcheng Pass Card

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.