I basically copied an existing view part of the Java Code:
... final View MyRideScreen = (View) findViewById(R.id.myride_screen); final View OwnerScreen = (View) findViewById(R.id.owners_screen); ... When adding the OwnerScreen the OwnerScreen.setVisibility(VIS/INVIS); causes a force close where the MyRideScreen setup the same does not I have tried several different things in the XML and nothing seems to fix it, I have basically copied working XML changed the identifiers and it still fails with a null pointer exception. here is what the debug stack trace shows me (I changed the setVisibility to a onClick event so the app didn't force close right away: FATAL EXCEPTION: main java.lang.NullPointerException at com.android.package.Dashboard$10.onClick(Dashboard.java:221) at android.view.View.performClick(View.java:2501) at android.view.View$PerformClick.run(View.java:9107) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3812) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:841) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

