Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,770,713 Members 39,053 Now Online
XDA Developers Android and Mobile Development Forum
View Poll Results: Which Tab Do You Like
Icon 4 57.14%
Text 3 42.86%
Voters: 7. You may not vote on this poll

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

Tip us?
 
Myth2014
Old
#81  
Myth2014's Avatar
Member
Thanks Meter 8
Posts: 78
Join Date: Apr 2014
Location: Linyi


Sent from my IM-A690S using Tapatalk 2
 
giew13
Old
#82  
giew13's Avatar
Senior Member
Thanks Meter 44
Posts: 156
Join Date: Aug 2013
Location: Purwakarta, West Java
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
DON'T FORGET TO PRESS THANKS IF I HELP YOU

 
GSculerlor
Old
#83  
GSculerlor's Avatar
Senior Member
Thanks Meter 83
Posts: 425
Join Date: Oct 2013
Location: Malang
Quote:
Originally Posted by giew13 View Post
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
What You SEE Is What You GET
Quote:
Getting Close With My Work :

 
giew13
Old
#84  
giew13's Avatar
Senior Member
Thanks Meter 44
Posts: 156
Join Date: Aug 2013
Location: Purwakarta, West Java
Quote:
Originally Posted by GSculerlor View Post
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?
DON'T FORGET TO PRESS THANKS IF I HELP YOU

 
Myth2014
Old
#85  
Myth2014's Avatar
Member
Thanks Meter 8
Posts: 78
Join Date: Apr 2014
Location: Linyi
work on 4.3?
Tags
guide, mod, tutorial
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes