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