samedi 8 mars 2014

[GUIDE][ALL JB] HOW TO TABBED SETTING (With Swipe Gesture) topic




Once again, I Comeback with my GUIDE.
This time I will give you abaout HOW TO TABBED SETTING...
This GUIDE will work on JB 4.1 and 4.2, i have tasted it in my Micromax A110 stock JB 4.1...
OK Lets go


Requirement ::
  1. Knowing about compile and decompile

  2. Srttings.apk


Steps
1. Decompile Youe Settings.apk
2. Download file from attachments, ekstrak, and put it in each place/folder
3. Navigate to values/ids and add this

HTML Code:


<item type="id" name="tabHost">false</item>
    <item type="id" name="tabsLayout">false</item>
    <item type="id" name="tabsText">false</item>


4. In the same folder, Open Strings and add this

HTML Code:


<string name="personal_settings_tab">StockJBMood</string>
    <string name="program_settings_tab">Tentang Perangkat</string>


5. Done, Recompile
6. Decompile again your settings.
7. Open public.xml and don't close it
8. Go to smali/com/android/settinggs

HTML Code:


[B][COLOR="Red"]PersonalSettings.smali[/COLOR][/B]
ctrl+f in there smali                                      ctrl+f in your public, replace with ur code
    0x7f05004d                                                personal_settings
    0x7f040099                                                speed_container

ProgramSettings.smali
    0x7f05004e                                                program_settings
    0x7f040099                                                speed_container

TabbedSettings.smali
    0x7f110001                                                slide_in_right
    0x7f11                                                        slide_in_left (ONLY 4 KODE)

TabbedSettings.smali
    0x7f110002                                                slide_out_left
    0x7f110003                                                  slide_out_right
    0x7f04009b                                                  tab_indicator
    0x7f080254                                                  tabsText
    0x7f04009a                                                  tab_content
    0x7f080252                                                  tabHost


9. Go to AndroidManifest.xml and find this code

HTML Code:


<activity android:label="@string/settings_label_launcher" android:name="Settings" android:taskAffinity="com.android.settings" android:launchMode="singleTask" android:configChanges="mcc|mnc|keyboardHidden|orientation|screenSize">
            <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>


and replace with this code

HTML Code:


<activity android:theme="@*android:style/Theme.NoTitleBar" android:label="@string/settings_label_launcher" android:name="TabbedSettings" android:process="com.android.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>
        <activity android:name="PersonalSettings" />
        <activity android:name="ProgramSettings" />
        <activity android:name="DeviceInfoSettings" />
        <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>


10. Done
11. Recompile your settings
12. Sign and Push it


SS :: See attachments

Original Post/Source :: http://archiveandroid.blogspot.com

IF THIS GUIDE HELPED YOU, DONT SAY THANKS BUT PRESS IT :good:








Attached Thumbnails


Click image for larger version<br/><br/>Name:	Screenshot_2014-01-24-23-37-32.jpg<br/>Views:	N/A<br/>Size:	70.7 KB<br/>ID:	2621078
 











Attached Files





File Type: zip tab kayanya mah.zip -
[Click for QR Code]
(9.4 KB)









Aucun commentaire:

Enregistrer un commentaire