[Galaxy S II Android Development] remuntada78:
sorry if I insist but i'm not able to solve my problem.

what i'm trying to do is to implement the changecolor code for the button pressed in the keypad simunlock

to do this i searched the id of the image of the button pressed then in SimUnlockScreen.smali i added the field for the button pressed,like this:

.field mButtonPressed:Landroid/view/View;

then i added the code to call id whit findIdByView and then i added the code for changecolor ,like this

.line 122
const v0, 0x01080131

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

move-result-object v0

iput-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mButtonPressed:Landroid/view/View;

iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mButtonPressed:Landroid/view/View;

invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

iget-object v4, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mButtonPressed:Landroid/view/View;

check-cast v4, Landroid/widget/ImageView;

invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

move-result-object v4

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

move-result-object v4

const-string v8, "text_color"

const v9, -0x1

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

move-result v4

invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setColorFilter(I)V

the logcat said

D/LockPatternKeyguardView( 2208): createUnlockScreenFor(SimPin): mEnableFallback=true

W/dalvikvm( 2208): VFY: 'this' arg 'Landroid/content/Context;' not instance of 'Landroid/view/View;'

W/dalvikvm( 2208): VFY: rejecting opcode 0x6e at 0x0054

W/dalvikvm( 2208): VFY: rejected Lcom/android/internal/policy/impl/SimUnlockScreen;.<init> (Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;Lcom/android/internal/widget/LockPatternUtils;)V

W/dalvikvm( 2208): Verifier rejected class Lcom/android/internal/policy/impl/SimUnlockScreen;

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

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

E/AndroidRuntime( 3315): java.lang.VerifyError: com/android/internal/policy/impl/SimUnlockScreen

E/AndroidRuntime( 3315):	at com.android.internal.policy.impl.LockPatternKeyguardView.createUnlockScreenFor(LockPatternKeyguardView.java:1362)

E/AndroidRuntime( 3315):	at com.android.internal.policy.impl.LockPatternKeyguardView.recreateUnlockScreen(LockPatternKeyguardView.java:985)

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

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

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

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

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

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

E/AndroidRuntime( 3315):	at com.android.server.wm.WindowManagerService$PolicyThread.run(WindowManagerService.java:967)

so i think the problem is this

VFY: 'this' arg 'Landroid/content/Context;' not instance of 'Landroid/view/View;'

and in my code this line: invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

i tried to do some changes in my code but every time i got the same error.

i hope in your help thanks in advance