[Galaxy S II Android Development] remuntada78:
Hi, i tried to change the buttons background in the incall window

that work but to see the changes i need to restart the device ,so i tried to add the call of the background method

invoke-virtual {p0}, Lcom/android/phone/InCallTouchUi;->set_incall_buttons_background()V

in the .init method like this

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 5
.param p1, "context" # Landroid/content/Context;
.param p2, "attrs" # Landroid/util/AttributeSet;

.prologue
const/16 v4, 0x1f4

const/4 v2, 0x1

const/4 v3, 0x0

.line 266
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
[COLOR="Red"]
invoke-virtual {p0}, Lcom/android/phone/InCallTouchUi;->set_incall_buttons_background()V
[/COLOR]
.line 118

but that give a error

E/AndroidRuntime( 2504): FATAL EXCEPTION: main

E/AndroidRuntime( 2504): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/com.android.phone.InCallScreen}: android.view.InflateException: Binary XML file line #8: Error inflating class com.android.phone.InCallTouchUi

E/AndroidRuntime( 2504):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2110)

E/AndroidRuntime( 2504):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)

E/AndroidRuntime( 2504):	at android.app.ActivityThread.access$700(ActivityThread.java:140)

E/AndroidRuntime( 2504):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)

E/AndroidRuntime( 2504):	at android.os.Handler.dispatchMessage(Handler.java:99)

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

E/AndroidRuntime( 2504):	at android.app.ActivityThread.main(ActivityThread.java:4921)

E/AndroidRuntime( 2504):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 2504):	at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime( 2504):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)

E/AndroidRuntime( 2504):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)

E/AndroidRuntime( 2504):	at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 2504): Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class com.android.phone.InCallTouchUi

E/AndroidRuntime( 2504):	at android.view.LayoutInflater.createView(LayoutInflater.java:613)

E/AndroidRuntime( 2504):	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)

E/AndroidRuntime( 2504):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)

E/AndroidRuntime( 2504):	at android.view.LayoutInflater.inflate(LayoutInflater.java:489)

E/AndroidRuntime( 2504):	at android.view.LayoutInflater.inflate(LayoutInflater.java:396)

E/AndroidRuntime( 2504):	at android.view.LayoutInflater.inflate(LayoutInflater.java:352)

E/AndroidRuntime( 2504):	at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:313)

E/AndroidRuntime( 2504):	at android.app.Activity.setContentView(Activity.java:1924)

E/AndroidRuntime( 2504):	at com.android.phone.InCallScreen.setContentView(InCallScreen.java:1026)

E/AndroidRuntime( 2504):	at com.android.phone.InCallScreen.onCreate(InCallScreen.java:890)

E/AndroidRuntime( 2504):	at android.app.Activity.performCreate(Activity.java:5206)

E/AndroidRuntime( 2504):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)

E/AndroidRuntime( 2504):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)

E/AndroidRuntime( 2504):	... 11 more

E/AndroidRuntime( 2504): Caused by: java.lang.reflect.InvocationTargetException

E/AndroidRuntime( 2504):	at java.lang.reflect.Constructor.constructNative(Native Method)

E/AndroidRuntime( 2504):	at java.lang.reflect.Constructor.newInstance(Constructor.java:417)

E/AndroidRuntime( 2504):	at android.view.LayoutInflater.createView(LayoutInflater.java:587)

E/AndroidRuntime( 2504):	... 23 more

E/AndroidRuntime( 2504): Caused by: java.lang.NullPointerException

E/AndroidRuntime( 2504):	at com.android.phone.InCallTouchUi.set_incall_buttons_background(InCallTouchUi.java)

E/AndroidRuntime( 2504):	at com.android.phone.InCallTouchUi.<init>(InCallTouchUi.java:266)

E/AndroidRuntime( 2504):	... 26 more

how can i solve it?

thanks