FORUMS

Analysis & Opinion

 View Poll Results: Which Tab Do You Like

Icon
 
4 Vote(s)
57.14%
Text
 
3 Vote(s)
42.86%

[GUIDE]How to add Tab in Settings.apk with Icon(Working)

348 posts
Thanks Meter: 121
 
By shadman0, Account currently disabled on 9th March 2014, 08:22 AM
Post Reply Subscribe to Thread Email Thread
9th July 2014, 07:47 AM |#81  
Myth2014's Avatar
Senior Member
Flag Linyi
Thanks Meter: 15
 
More


Sent from my IM-A690S using Tapatalk 2
The Following User Says Thank You to Myth2014 For This Useful Post: [ View ]
 
 
12th July 2014, 01:56 PM |#82  
giew13's Avatar
Senior Member
Flag Purwakarta, West Java
Thanks Meter: 82
 
More
is there any idea to move display settings, sound settings etc into the second layout?
I've been try to move the line into the second layout and when i flash it's give force close
12th July 2014, 04:47 PM |#83  
GSculerlor's Avatar
Senior Member
Flag Malang
Thanks Meter: 87
 
More
Quote:
Originally Posted by giew13

is there any idea to move display settings, sound settings etc into the second layout?
I've been try to move the line into the second layout and when i flash it's give force close

Get the code from Settings.xml
Like this
Code:
<com.android.settings.IconPreferenceScreen android:title="@string/sound_settings_title" settings:icon="@drawable/ic_settings_sound">
        <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.SoundSettings" />
    </com.android.settings.IconPreferenceScreen>
    <com.android.settings.IconPreferenceScreen android:title="@string/display_settings_title" settings:icon="@drawable/ic_settings_display">
        <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DisplaySettings" />
    </com.android.settings.IconPreferenceScreen>
After you found what you want to move, just move that code to layout that you want. In this case, place in advanced_settings.xml and Compile it
14th July 2014, 01:10 PM |#84  
giew13's Avatar
Senior Member
Flag Purwakarta, West Java
Thanks Meter: 82
 
More
Quote:
Originally Posted by GSculerlor

Get the code from Settings.xml
Like this

Code:
<com.android.settings.IconPreferenceScreen android:title="@string/sound_settings_title" settings:icon="@drawable/ic_settings_sound">
        <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.SoundSettings" />
    </com.android.settings.IconPreferenceScreen>
    <com.android.settings.IconPreferenceScreen android:title="@string/display_settings_title" settings:icon="@drawable/ic_settings_display">
        <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DisplaySettings" />
    </com.android.settings.IconPreferenceScreen>
After you found what you want to move, just move that code to layout that you want. In this case, place in advanced_settings.xml and Compile it

i've been try it but it give a force close
i think i should modify the settings.smali first but i dont know how
any solutions?
14th August 2014, 07:08 AM |#85  
Myth2014's Avatar
Senior Member
Flag Linyi
Thanks Meter: 15
 
More
work on 4.3?
5th August 2015, 08:06 PM |#86  
qromwel's Avatar
Senior Member
Flag Winneba
Thanks Meter: 13
 
Donate to Me
More
@shadman0
i tried the second post for making wifi n bluetooth toggles but i had this error.how can i fix it ?
I: Copying classes.dex file...
I: Building resources...
/sdcard/Android/obb/Settings_src/res/values/public.xml:2122: error: Public symbol style/Switch declared here is not defined.
/sdcard/Android/obb/Settings_src/res/values/public.xml:2123: error: Public entry identifier 0x7f0a0010 entry index is larger than available symbols (index 16, total symbols 16).
/sdcard/Android/obb/Settings_src/res/values/public.xml:2123: error: Public symbol style/Widget.CompoundButton.CheckBox.Holo.Dark declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /data/data/per.pqy.apktool/APKTOOL2390868543450443428.tmp, -I, ?/apktool/framework/1.apk, -I, ?/apktool/framework/2.apk, -S, /sdcard/Android/obb/Settings_src/res, -M, /sdcard/Android/obb/Settings_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:358)
at brut.androlib.Androlib.buildResources(Androlib.jav a:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /data/data/per.pqy.apktool/APKTOOL2390868543450443428.tmp, -I, ?/apktool/framework/1.apk, -I, ?/apktool/framework/2.apk, -S, /sdcard/Android/obb/Settings_src/res, -M, /sdcard/Android/obb/Settings_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /data/data/per.pqy.apktool/APKTOOL2390868543450443428.tmp, -I, ?/apktool/framework/1.apk, -I, ?/apktool/framework/2.apk, -S, /sdcard/Android/obb/Settings_src/res, -M, /sdcard/Android/obb/Settings_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:355)
... 6 more
Post Reply Subscribe to Thread

Tags
guide, mod, tutorial
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes