Hi, I'm modifying phone.apk on android 1.6 for research activities.
First I added following lines to call_card.xml and everything worked fine <ImageView android:src="@drawable/unknowncaller" android:layout_width="320sp" android:layout_height="320sp" ></ImageView> Then I modified the ImageView and added an id: <ImageView android:id="@+id/imig_callscreen_main" android:src="@drawable/unknowncaller" android:layout_width="320sp" android:layout_height="320sp" ></ImageView> Since then I get the following exception: E/AndroidRuntime( 961): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 961): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/ com.android.phone.InCallScreen}: java.lang.ClassCastException: android.widget.EditText E/AndroidRuntime( 961): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2401) E/AndroidRuntime( 961): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2417) E/AndroidRuntime( 961): at android.app.ActivityThread.access $2100(ActivityThread.java:116) E/AndroidRuntime( 961): at android.app.ActivityThread $H.handleMessage(ActivityThread.java:1794) E/AndroidRuntime( 961): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 961): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 961): at android.app.ActivityThread.main(ActivityThread.java:4203) E/AndroidRuntime( 961): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 961): at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime( 961): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:791) E/AndroidRuntime( 961): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) E/AndroidRuntime( 961): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 961): Caused by: java.lang.ClassCastException: android.widget.EditText E/AndroidRuntime( 961): at com.android.phone.InCallScreen.onCreate(InCallScreen.java:462) E/AndroidRuntime( 961): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) E/AndroidRuntime( 961): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2364) E/AndroidRuntime( 961): ... 11 more Why? Thanks for your help :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en