1. Anti-compilation settings.apk
2. Add code in Values/strings.xml:
<string name= "Ad_settings" >advanced settings</string>
<string name= "La_settings" >Launcher</string>
3. Add code in Values-zh-rcn/strings.xml:
<string name= "Ad_settings" > Advanced Settings </string>
<string name= "La_settings" > Launcher </string>
4. Then put 2 photos in drawable-hdpi: Ic_launcher.png and Ic_ad_settings.png
5. The first time to compile the APK, (in order to automatically generate the corresponding public value) file name 1.apk, and then decompile the 1.apk
6. Then locate res/xml/settings_headers.xml using notepad++ to open the file
Add the following code to any location you want to add:
<intent android:targetpackage= "Com.cyanogenmod.trebuchet" android:targetclass= " Com.cyanogenmod.trebuchet.preference.Preferences "/>
(this link to the CM9 Launcher's setup options)
==============================================
Over here:
android:icon= "@drawable/ic_launcher" for icon index name
android:title= "@string/la_settings" is the name of the title index displayed,
<intent android:targetpackage= "Com.cyanogenmod.trebuchet" android:targetclass= " Com.cyanogenmod.trebuchet.preference.Preferences "/>
To set the package name and activity to start, you can use Apktool to decompile the program you want to start, and then open the Androidmanifest.xml
View Package= "Com.android.settings" is the package name, as for the activated activity, just find
<category android:name= "Android.intent.category.LAUNCHER"/>
Looking up for his activity, you can see a similar
<activity android:label= "@string/settings_label" android:name= "Settings" android:taskaffinity= " Com.android.settings "Android:cleartaskonlaunch=" true "android:launchmode=" Singletop ">
where android:name= "Settings", Settings is the activity name, plus the package name Com.android.settings
It becomes com.android.settings.Settings, and this com.android.settings.Settings is what we need.
The value of the Android:targetclass.
==============================================
<intent android:targetpackage= "com.android.settings" android:targetclass= " Com.android.settings.TestingSettings "/>
(this link to the set *#* #4636 #*#* this dialer directive)
7. The 2nd time to compile the APK, using the corresponding compression software algorithm to replace the settings.apk modified files.
8. Replace the phone and get it done!
Android Settings Add-ons