Android Settings Add-ons

Source: Internet
Author: User

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

Related Article

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.