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

Which Tab Do You Like

  • Icon

    Votes: 4 57.1%
  • Text

    Votes: 3 42.9%

  • Total voters
    7
  • Poll closed .
Search This thread

shadman0

Senior Member
Nov 8, 2013
346
124
Delhi
www.milkshakerom.blogspot.com
After First Compnile Your Apk Open Public.xml from values and Open Smali TabsActivity from com andorid settings then Follow the Instruction First Copy Code from Instructions And Find it on TabsActivity Now Open The Public Find Code Like title copy this public code and Replace The Old Code of TabActivity.
 

shadman0

Senior Member
Nov 8, 2013
346
124
Delhi
www.milkshakerom.blogspot.com
just compare ur settings with hyperion settings and take some resources files from hyperion setting
cz on ur attachment files there is no resource files matched
now i didn't have the files

You are Correct But There is File Missing AboutSettings.smali AboutSettings$1.smali bcoz i have location of the tab from AboutSetting to DeviceInfoSettings There is 3 tab The last tab give the view of About phone if want Edit the last tab open res/xml/deviceinfosettings.xml
Thanks For ur feedback

My Upcoming thread [GUIDE] [MOD] Add Tab in Text to SystemUI <ThemingYourStatusbar>
 
Last edited:

giew13

Senior Member
Aug 9, 2013
202
89
Purwakarta, West Java
You are Correct But There is File Missing AboutSettings.smali AboutSettings$1.smali bcoz i have location of the tab from AboutSetting to DeviceInfoSettings There is 3 tab The last tab give the view of About phone if want Edit the last tab open res/xml/deviceinfosettings.xml
Thanks For ur feedback

My Upcoming thread [GUIDE] [MOD] Add Tab in Text to SystemUI <ThemingYourStatusbar>

yeah just fix it bro ;)
u just need remodified resources file only
btw nice try :D
 

GSculerlor

Senior Member
Oct 23, 2013
441
89
Malang

Attachments

  • SC20140426-211854.png
    SC20140426-211854.png
    17.7 KB · Views: 53
  • SC20140426-211904.png
    SC20140426-211904.png
    15 KB · Views: 52
  • SC20140426-211907.png
    SC20140426-211907.png
    67.8 KB · Views: 56
  • Like
Reactions: shadman0

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    Hello Dear Today I Have A Guide All Credits Goes to CarlDeanCatabay From His Awsome Rom.

    If You Include This with ur Rom You Should Give Credits to me and Sir CarlDeanCatabay

    Downloads The Zip File From Atthachment

    1.Decomnile Your Settings Extract downloaded zip it to the decompiled folder.
    2.Open String from /res/values/string
    3.Add This
    <string name="ic_settings_tab_phone_settings_title">Phone Settings</string>
    <string name="ic_settings_tab_advanced_title">Advanced Settings</string>
    <string name="ic_settings_tab_about">About Hyperion</string>
    4.Recompnile
    5. Decompnile Its Again
    6.Now The Parts Where We Need to Modify Smali
    7.Open Public from res/values/public
    8.
    Open TabActivity And Public
    Find 0x7f03005b Change it to "indicator" (Layout)
    Find 0x7f0b0019 Change it to "title" (ids)
    Find 0x7f0b0018 Change it to "icon" (ids)
    Find 0x7f0805d8 Change it to "ic_settings_tab_phone_settings_title" (string)
    Find 0x7f0200c1 Change it to "ic_tab_system" (drwable)
    Find 0x7f0805d9 Change it to "ic_settings_tab_advanced_title" (string)
    Find 0x7f0200c0 Change it to "ic_tab_advanced" (drwable)
    Find 0x7f0805da Change it to "ic_settings_tab_about" (string)
    Find 0x7f0200bf Change it to "ic_tab_about" (drwable)
    Find 0x7f03005c Change it to "main" (layout)


    Open SystemActivity And Public
    Find 0x7f04003a Change it to "advanced_settings" (xml)

    9.Find This From AndroidManifiest.xml

    <application android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="">
    <uses-library android:name="touchwiz" />

    10.Add this After The Line
    <activity android:theme="@*android:style/Theme.NoTitleBar" android:label="@string/settings_label_launcher" android:name="TabsActivity" android:taskAffinity="com.android.settings" android:clearTaskOnLaunch="true" android:launchMode="singleTop">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <action android:name="android.settings.SETTINGS" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    </activity>
    <activity android:name="SettingsActivity" />
    <activity android:name="SystemActivity" />

    11.Now Find This

    <activity android:label="@string/settings_label_launcher" android:name="Settings" android:taskAffinity="com.android.settings" android:clearTaskOnLaunch="true" android:launchMode="singleTop">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <action android:name="android.settings.SETTINGS" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    </activity>

    12.Replace with

    <activity android:label="@string/settings_label_launcher" android:name="Settings">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>
    </activity>

    13.Compnile Your Settings Make Flashble File Put into /system/app

    14.Enjoy
    2
    [TUT] Add on/off button for BT and settings and combine it with tab

    Reserved

    Hi, This is new method for add switch button. First follow This by sniperkiller. Follow that guide until step 2. And for step IIIa, follow my guide :

    1. Open styles.xml located in decompiled Settings.apk
    2. Delete this
    Code:
    <style name="Switch">
            <item name="android:checkboxStyle">@style/Widget.CompoundButton.CheckBox.Holo.Dark</item>
        </style>
    3. Search this
    Code:
        <style name="TallTitleBarTheme" parent="@android:style/Theme.NoTitleBar">
    4. Add this below that code
    Code:
    		<item name="android:checkboxStyle">@style/Widget.CompoundButton.CheckBox.Holo.Dark</item>
    5. Open AndroidManifest.xml
    Code:
    <activity android:theme="@*android:style/Theme.NoTitleBar"
    Code:
    <activity android:theme="@style/TallTitleBarTheme"
    8. Compile and sign it
    2
    Try to edit main.xml
    Change all inside it with this
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <TabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
            <FrameLayout android:layout_weight="1" android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" />
            <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" />
        </LinearLayout>
    </TabHost>


    Thanks sir, ur awesome :highfive:
    2
    how to make bottom tabbed sir??
    Try to edit main.xml
    Change all inside it with this
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <TabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
            <FrameLayout android:layout_weight="1" android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" />
            <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" />
        </LinearLayout>
    </TabHost>
    2
    nice guide!

    Good to see you guys still use my works :) :good:
    thank you :)
    [ANDROID_PACKAGES_APP_SETTINGS]
    -TAB_ACTIVITY: -added TabHost
    -TAB_ACTIVITY: -Added Phone Settings Tab
    -TAB_ACTIVITY: -Added System Settings Tab
    -TAB_ACTIVITY: -Added ROM Settings Tab
    -TAB_HOST: -Added Tab Title
    -TAB_HOST: -Added Tab Icon(s)
    -TAB_HOST: -Added Tab Text(s)

    source: here