[Galaxy S II Android Development] remuntada78:
i still triyng to work with this ,i tried to work only on 1 button,i added this code in my SimUnlockScreen$TouchInput

[COLOR="Red"].method static synthetic access$0(Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;)Landroid/widget/TextView;
.locals 1
.parameter

.prologue
.line 19
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;->mOne:Landroid/widget/TextView;

return-object v0
.end method[/COLOR]
.
.
.
.

.line 495
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;->mOne:Landroid/widget/TextView;

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

[COLOR="Red"]	iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;->mOne:Landroid/widget/TextView;

new-instance v1, Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput$1;

invoke-direct {v1, p0}, Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput$1;-><init>(Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;)V

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V[/COLOR]

and then i create a new smali file called SimUnlockScreen$TouchInput$1 and insert it in android.policy\com\android\internal\policy\impl

.class Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput$1;
.super Ljava/lang/Object;
.source "SimUnlockScreen$TouchInput.java"

# interfaces
.implements Landroid/view/View$OnTouchListener;

# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;-><init>(Lcom/android/internal/policy/impl/SimUnlockScreen;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation

# instance fields
.field final synthetic this$0:Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;

# direct methods
.method constructor <init>(Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;)V
.locals 0
.parameter

.prologue
.line 1
iput-object p1, p0, Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput$1;->this$0:Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;

.line 59
invoke-direct {p0}, Ljava/lang/Object;-><init>()V

return-void
.end method

# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
.locals 4
.parameter "v"
.parameter "event"

.prologue
const/16 v3, 0x9b

const/4 v0, 0x1

.line 63
invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

move-result v1

if-nez v1, :cond_0

.line 64
iget-object v1, p0, Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput$1;->this$0:Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;

#getter for: Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;->mOne:Landroid/widget/TextView;
invoke-static {v1}, Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;->access$0(Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;)Landroid/widget/TextView;

move-result-object v1

const/16 v2, 0x96

invoke-static {v2, v3, v3, v3}, Landroid/graphics/Color;->argb(IIII)I

move-result v2

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

.line 70
:goto_0
return v0

.line 66
:cond_0
invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

move-result v1

if-ne v1, v0, :cond_1

.line 67
iget-object v1, p0, Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput$1;->this$0:Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;

#getter for: Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;->mOne:Landroid/widget/TextView;
invoke-static {v1}, Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;->access$0(Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;)Landroid/widget/TextView;

move-result-object v1

const v2, 0x0108012c

invoke-virtual {v1, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

goto :goto_0

.line 70
:cond_1
const/4 v0, 0x0

goto :goto_0
.end method

now the button that i modded change color when pressed and return on original when released but it don't insert the number on the EditText for the password definitely this is not the right way:crying::crying: