"Rayeager PX2 sharing" modified Android to enter the main screen after the process analysis

Source: Internet
Author: User

Before the landlord after learning the Android startup process, continue to learn, and then read the above the blogger's share, then modify the main screen has a clear idea

began to try to modify the first entry after the start of the interface, first landlord wrote a simple apk, the main original default program in the Androidmain in fiter Riga sentence <category android:name= " Android.intent.category.HOME "/> The main screen after Android boot to find this apk.

Show Hello PX2 looks like this

Build the APK, and in the Linux environment, copy the APK into the/home/rk/px2/sdk/out/target/product/rkpx2/system/app directory

Recompile generated firmware, burned into the board, shown as follows, because did not delete the board comes with the launcher, it will jump out of two options, let you choose, as follows

So we can know that the initiator on the board is LAUNCHER3, its source location in/packages/apps/launcher3, this time if we just want to start their own program, do not want to start the board default program, Can be found in the corresponding directory Androidmainfest.xml file, the file <category android:name= "Android.intent.category.HOME"/> This sentence deleted, This startup will only start our own program, the effect is as follows

The simplest way to change the main screen is this, the landlord and everyone to study together, we have what learning experience can be together to share the next


"Rayeager PX2 sharing" modified Android to enter the main screen after the process analysis

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.