yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] remuntada78:
I temporarily put aside the random image on notification panel background mod, but i tried to implement a listpreference to choose the background of notification panel.I worked in this way in PhoneStatusBar.smali

original code

.line 3730
const v4, 0x7f0b0006

invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getInteger(I)I

move-result v4

iput v4, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanelGravity:I

.line 3731
iget v4, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanelGravity:I

if-gtz v4, :cond_2

.line 3732
const/16 v4, 0x30

iput v4, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanelGravity:I

.line 3734
:cond_2
const v4, 0x7f020071 [COLOR="Red"]<--this is id of notification_panel_bg png in drawable folder[/COLOR]

invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

move-result-object v4

iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanelBackgroundPadding:Landroid/graphics/Rect;

invoke-static {v4, v5}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->getNinePatchPadding(Landroid/graphics/drawable/Drawable;Landroid/graphics/Rect;)V

.line 3740

modded code

const/16 v4, 0x30

iput v4, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanelGravity:I

.line 3734
:cond_2
[COLOR="Red"]iget-object v7, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-virtual {v7}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v7

const-string v8, "notification_panel_bg_chooser"

const v9, 0x0

invoke-static {v7, v8, v9}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v7

const v9, 0x1

if-eq v7, v9, :cond_new

const v9, 0x2

if-eq v7, v9, :cond_new2

const v4, 0x7f021135

goto :goto_new

:cond_new

const v4, 0x7f021136

goto :goto_new

:cond_new2

const v4, 0x7f021134

:goto_new[/COLOR]

invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

move-result-object v4

iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanelBackgroundPadding:Landroid/graphics/Rect;

invoke-static {v4, v5}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->getNinePatchPadding(Landroid/graphics/drawable/Drawable;Landroid/graphics/Rect;)V

.line 3740

Unfortunately for me it don't work:silly:,is not the right way to do this?
[Galaxy S II Android Development] remuntada78:
it's possible that it don't work cause in my PhoneStatusBar$SettingsObserver.smali i've this method?

.method public update()V
.locals 4

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$SettingsObserver;->this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

iget-object v1, v1, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v2, "notification_panel_color"

const v3, -0xffffff

invoke-static {v0, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v2

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$SettingsObserver;->this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

iget-object v1, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanel:Landroid/view/View;

invoke-virtual {v1, v2}, Landroid/view/View;->setBackgroundColor(I)V

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$SettingsObserver;->this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$SettingsObserver;->this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

iget-object v2, v2, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

#calls: Lcom/android/systemui/statusbar/BaseStatusBar;->setStatusBarParams(Landroid/view/View;)V
invoke-static {v1, v2}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->access$3401(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;Landroid/view/View;)V

return-void
.end method
[Galaxy S II Android Development] CNexus:
I would definitely suggest doing it without the observer first
[Galaxy S II Android Development] remuntada78:
in fact i didn't added nothing in for observer ,that method was already there
[Galaxy S II Android Development] Biftor:
As i said and you didn't listen,that lines is not bg of drop down just get size of that nine png for other things,

You need to call main layout of expanded status bar with findviewbyid and set your bg for that layout.

And about key,you can't store a value without key in system settings data base...

And you can add observer for change immediately...

Follow what i said in previous posts and you will success, i think you have many example about all things i said, in this topic

Goodluck

Armin.
[Galaxy S II Android Development] remuntada78:
this is for call main layout of expanded status bar and set your bg for that layou

const v0, 0xxxxxxxx [COLOR="Red"] id of tw_status_bar_expanded[/COLOR]

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->findViewById(I)Landroid/view/View;

move-result-object v1

invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

it's right?
[Galaxy S II Android Development] Many40:
[MENTION=3065070]Goldie[/MENTION]

I tried recently to follow your guide for coloring images (23 toggles) but so far failed (I like challenges) :)

I'm not in a hurry - need to study the code more (I'm still newbie for that).

However I have one question to begin - in your guide you mentioned that we can do it two ways:

- implementing a method without context as parameter (.method color_toggles()V)

- implementing a method with context as parameter / passing the context (.method color_toggles(Landroid/content/Context;)V)

and finally invoke one of them in .method private updateImageView(II)V

So why in your rom you implemented both - the first one in QuickSettingButton.smali and the second one in PowerButton.smali?

(I thought it's either / or)

Regards
[Galaxy S II Android Development] remuntada78:
i tried to write the whole code to change the background with 3 images

const v0, 0xxxxxxxx [COLOR="Red"] id of tw_status_bar_expanded[/COLOR]

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->findViewById(I)Landroid/view/View;

move-result-object v1

iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v3, "notification_panel_bg_chooser"

const v4, 0x0

invoke-static {v2, v3, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v2

const v4, 0x1

if-eq v2, v4, :cond_new

const v4, 0x2

if-eq v2, v4, :cond_new2

const v0, 0x7f021135

goto :goto_new

:cond_new

const v0, 0x7f021136

goto :goto_new

:cond_new2

const v0, 0x7f021134

:goto_new

invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

How do you see this code?I am very far from the target?
[Galaxy S II Android Development] Goldie:
Your last method has 0x010205ae instead of 0x10205ae for a start

Any log?

Sent from my GT-I9305
[Galaxy S II Android Development] jimmydene84:
Im trying to add a color picker for carrier logo...but its coded differently than a normal text entry and all my previous attempts have failed
[Galaxy S II Android Development] Goldie:
Is it text or an image? Logo suggests its an image. Is there no setText in the smali?
[Galaxy S II Android Development] jimmydene84:
No setText that I found...it pulls from an image in sysUI ...so im starting to think its not possible

---------- Post added at 10:12 AM ---------- Previous post was at 10:10 AM ----------

Guess im gonna have to make 5 or 6 and link it through settings app kinda how a battery picker is
[Galaxy S II Android Development] Goldie:
No....for images you can cast that view to an imageview and setColorFilter. Post the smali....lets see what we can do for you :)
[Galaxy S II Android Development] jimmydene84:
Here they are https://db.tt/DVIXvb0E

There are 2 smali files with the carrierlogo
[Galaxy S II Android Development] sbreen94:
This is awesome, you do amazing work bro, keep it up and thanks!
[Galaxy S II Android Development] Goldie:
Cant see the icon being set there. Most likely in phonestatusbar or networkcontroller maybe
[Galaxy S II Android Development] jimmydene84:
Thats what is confusing me...there are references in both. But I believe its in phone statusbar https://db.tt/Dsa9Wxzf

---------- Post added at 08:06 PM ---------- Previous post was at 07:47 PM ----------

Here is networkcontroller https://db.tt/uxoVbgwq

The other color pickers have not been to difficult...but this one has 15 diff references in 15 diff files :mad:
[Galaxy S II Android Development] sieuan:
Sorry sir, I mean "const-string":D but it not work.

This code working good for me:

.line 217
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$2;

const v2, 0x1080030

const v3, [COLOR="Magenta"]0x104012f[/COLOR]

invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$2;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

.line 217
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$8;

const v2, 0x1080030

const v3, [COLOR="Blue"]0x104012f[/COLOR]

invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$8;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

.line 217
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$9;

const v2, 0x1080030

const v3, [COLOR="Red"]0x104012f[/COLOR]

invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$9;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

And I change it to:

.line 217
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$2;

const v2, 0x1080030

const v3, [COLOR="Magenta"]0x104012f[/COLOR]

invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$2;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

.line 217
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$8;

const v2, 0x1080030

[COLOR="Blue"]const-string v3, "Reboot"[/COLOR]

invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$8;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

.line 217
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$9;

const v2, 0x1080030

[COLOR="Red"]const-string v3, "Recovery"[/COLOR]

invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$9;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

But it not work, i lost my power button. What is the wrong, sir? How can i replace this id with text?

Thanks

/// sorry for my bad english...
[Galaxy S II Android Development] Goldie:
Which others did you do? Not sure how if you've done others you would think that adding two registers to getVisibility would work. Did you follow some other guide or copy/paste the others from another rom or something?
[Galaxy S II Android Development] Goldie:
Get a log
[Galaxy S II Android Development] majdinj:
I am not genuine expert in smali but what about using setText first like:

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$8;

const v2, 0x1080030

const-string v3, "Reboot"

invoke-virtual {v1, v3}, Lcom/android/internal/policy/impl/GlobalActions$8;->setText(Ljava/lang/String;)V

move-result-object v4

invoke-direct {v1, p0, v2, v4}, Lcom/android/internal/policy/impl/GlobalActions$8;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
[Galaxy S II Android Development] sieuan:
When I press and hold the power button, my phone reboots unfortunately.

With the right code, when press anf hold power button, it appear power menu popup (as shutdown, restart, airplane mode,...), But when I replace with the text in smali, my phone reboots unfortunately when i press and hold power button. How can I get a log in this case, sir? Thanks!

/// sorry my bad english

---------- Post added at 12:37 PM ---------- Previous post was at 12:35 PM ----------

I will try this, thanks sir!
[Galaxy S II Android Development] Goldie:
Dumpstate_sys_error.txt.gz from data/log after the reboot
[Galaxy S II Android Development] majdinj:
Notepad++ smali highlight plugin

I was using this plugin for quite long time and since it is useful to make your life easier, I thought to share with you guys.

Result of applying the plugin:

​

Source:

http://androidcracking.blogspot.com/2011/02/smali-syntax-highlighting-for-notepad.html

I just modified the plugin xml to suit my taste and nothing else :p

How:

1- Open Notepad++, tab on language in action bar and choose Define your language.

2- A new window will pop-up, choose import.

3- Choose smaliHighlightCode_modified.xml or the one from the source and hit open.

4- Congrats.. the smali highlight plugin is loaded.. now you can modify the smali much much easier than before. :laugh:

See pictorial instruction:

​

Download:

It is your preference,, either download the one in the source page, or the the one I modified (View attachment smaliHighlightCode_modified.rar)

Cheers,,,
[Galaxy S II Android Development] Biftor:
Hi all goldie good guide for all noob developers

But I think you did mistake for color pikers toggle and...

We need only to search id of that texts, images, bg and others...or write id for anything we want...

And we can add color piker or any other things to each thing we want...

I saw this topic now

And iam here same Goldie for all user if anybody want help.

Goodluck

Armin.
[Galaxy S II Android Development] Goldie:
No...I didnt make a mistake. I use ids myself in my own methods but for the purposes of this guide I wanted people to understand how the text was set in the first place. Its about undertanding not just telling what to do. Thanks for your concern but please dont confuse the topic. I will get to calling views by id later.
[Galaxy S II Android Development] Biftor:
Ahan Goldie good:thumbup: i said I think you,confuse topic? Are you ok man?me?

I said I saw this topic tonight and i am here same you for helping...what's pb? I can't understand!!???

Ok any way

Goodluck

Armin.
[Galaxy S II Android Development] dazznuts2000:
Bitfor, Goldie was quite polite and only asked you dont confuse users by progress on to things that are not explained in this thread. He clearly explained he will move onto ids in a seperate thread/get to it later, there is no offense here. Please keep the thread on topic.

[MENTION=3065070]Goldie[/MENTION] as always great guide to help explain the fundamentals of smali rather than "just change this to this"
[Galaxy S II Android Development] jimmydene84:
My apologies...took a break for a day opened up np++ and POW...setText (I)

Will post a screenshot when finished :)
[Galaxy S II Android Development] Goldie:
v0 and v1 wring way around in last line

Sent from my GT-I9305
[Galaxy S II Android Development] remuntada78:
about v0 I am almost certain it's right, i can not determine the other register, i need to call the context?
[Galaxy S II Android Development] gerryS2:
D/CircleLockScreen( 8900): tb off

D/CircleLockScreen( 8900): drv mode off

D/CircleLockScreen( 8900): mTalkbackEnabled =false

D/CircleLockScreen( 8900): explore by touch mode off

W/dalvikvm( 8900): threadid=26: thread exiting with uncaught exception (group=0x410552a0)

E/android.os.Debug( 8900): !@Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_sys_error

E/AndroidRuntime( 8900): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy

E/AndroidRuntime( 8900): java.lang.NullPointerException

E/AndroidRuntime( 8900):	at com.android.internal.policy.impl.sec.CircleLockScreen.custom_text_lockscreen(CircleLockScreen.java)

E/AndroidRuntime( 8900):	at com.android.internal.policy.impl.sec.CircleLockScreen.<init>(CircleLockScreen.java:491)

E/AndroidRuntime( 8900):	at com.android.internal.policy.impl.LockPatternKeyguardView.createLockScreen(LockPatternKeyguardView.java)

E/AndroidRuntime( 8900):	at com.android.internal.policy.impl.LockPatternKeyguardView.recreateLockScreen(LockPatternKeyguardView.java:973)

E/AndroidRuntime( 8900):	at com.android.internal.policy.impl.LockPatternKeyguardView.updateScreen(LockPatternKeyguardView.java:1217)

E/AndroidRuntime( 8900):	at com.android.internal.policy.impl.LockPatternKeyguardView.access$400(LockPatternKeyguardView.java:112)

E/AndroidRuntime( 8900):	at com.android.internal.policy.impl.LockPatternKeyguardView$1.run(LockPatternKeyguardView.java:310)

E/AndroidRuntime( 8900):	at android.os.Handler.handleCallback(Handler.java:615)

E/AndroidRuntime( 8900):	at android.os.Handler.dispatchMessage(Handler.java:92)

E/AndroidRuntime( 8900):	at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime( 8900):	at com.android.server.wm.WindowManagerService$PolicyThread.run(WindowManagerService.java:967)
[Galaxy S II Android Development] Goldie:
Your id is in v0 and the view in v1 bit you are invoking v0, v1 which says view is in v0. Should be invoke v1, v0

Sent from my GT-I9305
[Galaxy S II Android Development] Goldie:
You fixed that id? In fact all ids in that method have extra 0

Sent from my GT-I9305
[Galaxy S II Android Development] remuntada78:
thanks, now i've other questions.

Have i to put the code as you see it or inside a new method?
[Galaxy S II Android Development] Goldie:
You cant call it like that. Phonestatusbar is not a view. Look a few lines above where you changed....use that

Sent from my GT-I9305
[Galaxy S II Android Development] remuntada78:
like this

const v10, 0x7f030036

invoke-virtual {p0, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v12

check-cast v12, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

iget-object v13, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-virtual {v13}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v13

const-string v14, "notification_panel_bg_chooser"
[Galaxy S II Android Development] Goldie:
No....p0 is phonestatusbar. Think about what you are doing and what the v mean in relation to the words. You are saying invoke on p0 which is not the view you want!

Further below your code is this....

iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanel:Landroid/view/View;

That is the view you want to change so add your code below that and invoke on that view

iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanel:Landroid/view/View;

iget-object v13, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-virtual {v13}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v13

const-string v14, "notification_panel_bg_chooser"

const v15, 0x0

invoke-static {v13, v14, v15}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v13

const v15, 0x1

if-eq v13, v15, :cond_new

const v15, 0x2

if-eq v13, v15, :cond_new2

const v10, 0x7f021135

goto :goto_new

:cond_new

const v10, 0x7f021136

goto :goto_new

:cond_new2

const v10, 0x7f021134

:goto_new

invoke-virtual {v9, v10}, Landroid/view/View;->setBackgroundResource(I)V

Sent from my GT-I9305
[Galaxy S II Android Development] remuntada78:
and now

iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v10, 0x7f030036

invoke-virtual {v9, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v9

check-cast v9, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanel:Landroid/view/View;

iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanel:Landroid/view/View;

iget-object v13, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-virtual {v13}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v13

const-string v14, "notification_panel_bg_chooser"
[Galaxy S II Android Development] Goldie:
No lol. I wrote exactly what to do in my last post....below the iput line put the code I wrote

Sent from my GT-I9305
[Galaxy S II Android Development] remuntada78:
I thought of having to call also the id of tw_status_bar_expanded:silly:
[Galaxy S II Android Development] Goldie:
The view you want to change is already in a register. No need to do it again

Sent from my GT-I9305
[Galaxy S II Android Development] remuntada78:
ok , from Biftor message i understood to implement it
[Galaxy S II Android Development] Goldie:
Depends if doing in its own method. Like I say its already there in makestatusbarview so if you doing to there like you posted just use the register its already in

Sent from my GT-I9305
[Galaxy S II Android Development] remuntada78:
ok :good:, now i try thank very much, you are always kind
[Galaxy S II Android Development] gerryS2:
Thanks for reply and yes I have given you this logcat after I have insert the 0 at the id
[Galaxy S II Android Development] Goldie:
You nneeded to remove a 0 not insert one. Your ids say 0x010 instead of 0x10

Sent from my GT-I9305
[Galaxy S II Android Development] gerryS2:
Sorry, I meant to remove the 0 of id but the logcat is equal to what I posted before