Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
View Poll Results: Was it Helpful?
Yes! 24 96.00%
No. 1 4.00%
Voters: 25. You may not vote on this poll

Post Reply

[Tutorial] Adding new Activity Header/Sub Menu to Settings.apk

OP Madaditya

30th September 2014, 01:23 PM   |  #41  
Madaditya's Avatar
OP Recognized Themer
Flag No where
Thanks Meter: 1,018
953 posts
Join Date:Joined: Jul 2012
Originally Posted by Murali dharan

Logcat of my settings when choosing my header "murezhi"

Smali error? Check your smali file and make sure u made an entry in ids.xml
30th September 2014, 01:53 PM   |  #42  
Murali dharan's Avatar
Thanks Meter: 2
40 posts
Join Date:Joined: Jun 2014
Originally Posted by Madaditya

Smali error? Check your smali file and make sure u made an entry in ids.xml

I made id in ids... Here is my smali file(change txt to smali)
Also in public xml..
Ps: Adding apps in settings_header.xml also shows error (unbound prefix)
Attached Files
File Type: txt Murezhi.txt - [Click for QR Code] (897 Bytes, 13 views)
Last edited by Murali dharan; 30th September 2014 at 02:00 PM.
2nd November 2014, 06:40 AM   |  #43  
Md.Shafikul.islam's Avatar
Flag Narayanganj,Dhaka
Thanks Meter: 28
58 posts
Join Date:Joined: Jul 2014
Donate to Me
Facing problem in adding apps in submenu...
Hello Sir... @Madaditya
I am mtk user...
I am following your guide and successfully add submenu...But i cant add app in submenu...
I tried my best to solve this problem...but failed...Can you help me Sir?!!
Here is my created Xml...Please have a look and give me solution...

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/cayno_settings_customization"
    <PreferenceCategory android:title="@string/cayno_settings_customizations" android:key="tools_category" />
    <com.android.settings.IconPreferenceScreen android:title="@string/cayno_title" android:icon="@drawable/ic_settings_cayno" android:key="light_effects" android:key="cayno_x" android:summary="@string/cayno_summary">
        <intent android:targetPackage="com.adhi.quantum" android:action="android.intent.action.MAIN" android:targetClass="com.adhi.quantum.activities.UserInterface" />
Edit:Sorry Sir Problem Fixed... Here the new xml which i created... Thanks a lot for this awesome guide... :*
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-11-02-16-49-04.png
Views:	133
Size:	31.6 KB
ID:	2995539  
Attached Files
File Type: zip cayno_s_customization.xml.zip - [Click for QR Code] (446 Bytes, 2 views)
Last edited by Md.Shafikul.islam; 2nd November 2014 at 12:31 PM. Reason: Got the solution.
16th December 2014, 09:52 PM   |  #44  
_MutantX_'s Avatar
Flag Troyes
Thanks Meter: 61
73 posts
Join Date:Joined: Feb 2014

I followed carefully well all the procedure, but I obtain every time an error during the recompilation.

Can you help me?
Attached Thumbnails
Click image for larger version

Name:	error smali.png
Views:	130
Size:	70.3 KB
ID:	3067601  
17th December 2014, 12:10 PM   |  #45  
milocj's Avatar
Senior Member
Flag Valencia
Thanks Meter: 202
248 posts
Join Date:Joined: Nov 2012
Nice guide, great work!
@milocj by devSXSTeam
17th December 2014, 12:15 PM   |  #46  
_MutantX_'s Avatar
Flag Troyes
Thanks Meter: 61
73 posts
Join Date:Joined: Feb 2014

I found how to modify the error.

.class public Lcom/android/settings/Cpu;
.super Lcom/android/settings/SettingsPreferenceFragment;
.source "Cpu.java"

# direct methods
.method public constructor <init>()V
    .locals 0

    .line 17
    invoke-direct {p0}, Lcom/android/settings/SettingsPreferenceFragment;-><init>()V

.end method

# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 1
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .line 21
    invoke-super {p0, p1}, Lcom/android/settings/SettingsPreferenceFragment;->onCreate(Landroid/os/Bundle;)V

    .line 23
    const v0, 0x7f050065

    invoke-virtual {p0, v0}, Lcom/android/settings/Cpu;->addPreferencesFromResource(I)V

    .line 24
.end method

Thank you again for the guide
The Following User Says Thank You to _MutantX_ For This Useful Post: [ View ]
Post Reply Subscribe to Thread

add, edit, header, settings.apk
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes