Both activities are in the same package Second activity uses second layout file
setContentView(R.layout.main2); Errors on this line in the second activity EditText text1 = (EditText) findViewById(R.id.EditText03); Here is the layout file for the second activity <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="wrap_content" android:layout_height="wrap_content"> <TextView android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Answer Is : "> </TextView> <EditText android:id="@+id/EditText03" android:layout_width="wrap_content" android:layout_height="wrap_content"> </EditText> </LinearLayout> <Button android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="onClick" android:text="Calling an intent"> </Button> </LinearLayout> Here are the errors in the LogCat window 08-01 19:32:20.340: WARN/ResourceType(8875): No package identifier when getting value for resource number 0x00000005 08-01 19:32:20.390: ERROR/AndroidRuntime(8875): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x5 -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en