[Galaxy S II Android Development] remuntada78:
thanks but no luck, with your suggestion i solved the problem com.android.incallui.DialpadFragment' not instance of 'Reference: android.view.View',but now seems i have a problem with the following code

new-instance v1, Lcom/android/incallui/DialpadFragment$SettingsObserver;

new-instance v2, Landroid/os/Handler;

invoke-direct {v2}, Landroid/os/Handler;-><init>()V

invoke-direct {v1, p0, v2}, Lcom/android/incallui/DialpadFragment$SettingsObserver;-><init>(Lcom/android/incallui/DialpadFragment;Landroid/os/Handler;)V

invoke-virtual {v1}, Lcom/android/incallui/DialpadFragment$SettingsObserver;->observe()V

i usually put the above code inside the .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V as you suggest to me in a older post, but in the DialpadFragment.smali we don't have that method so i tried to put it inside the .method protected onFinishInflate(Landroid/view/View;)V but no luck

log

I/art ( 1914): Rejecting re-init on previously-failed class java.lang.Class<com.android.incallui.DialpadFragment$SettingsObserver>

D/AndroidRuntime( 1914): Shutting down VM

E/AndroidRuntime( 1914): FATAL EXCEPTION: main

E/AndroidRuntime( 1914): Process: com.android.incallui, PID: 1914

E/AndroidRuntime( 1914): java.lang.VerifyError: com.android.incallui.DialpadFragment$SettingsObserver

E/AndroidRuntime( 1914):	at com.android.incallui.DialpadFragment.onFinishInflate(DialpadFragment.java:517)

E/AndroidRuntime( 1914):	at com.android.incallui.DialpadTwelveFragment.onCreateView(DialpadTwelveFragment.java:43)

E/AndroidRuntime( 1914):	at android.app.Fragment.performCreateView(Fragment.java:2114)

E/AndroidRuntime( 1914):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:904)

E/AndroidRuntime( 1914):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1082)

E/AndroidRuntime( 1914):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1064)

E/AndroidRuntime( 1914):	at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1884)

E/AndroidRuntime( 1914):	at android.app.Activity.performCreateCommon(Activity.java:6216)

E/AndroidRuntime( 1914):	at android.app.Activity.performCreate(Activity.java:6244)

E/AndroidRuntime( 1914):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)

E/AndroidRuntime( 1914):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2611)

E/AndroidRuntime( 1914):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2723)

E/AndroidRuntime( 1914):	at android.app.ActivityThread.access$900(ActivityThread.java:172)

E/AndroidRuntime( 1914):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422)

E/AndroidRuntime( 1914):	at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 1914):	at android.os.Looper.loop(Looper.java:145)

E/AndroidRuntime( 1914):	at android.app.ActivityThread.main(ActivityThread.java:5832)

E/AndroidRuntime( 1914):	at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 1914):	at java.lang.reflect.Method.invoke(Method.java:372)

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

E/AndroidRuntime( 1914):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

V/ApplicationPolicy( 1017): isApplicationStateBlocked userId 0 pkgname com.android.incallui

W/ActivityManager( 1017): Force finishing activity com.android.incallui/.InCallActivity