ekran geçişinde hata
benim 4 tane ekranım var , ekranlar arasında geçişte sıkıntım yok , ama farklı ekranlar içinde tasarım yaptım toplam 16 tane ekranım var , hepsinde sorunsuz geçiyorum ama bir tane ekrana geçerken hata alıyorum, yani kart ekle layoutum var ona small, large ve xlarge ekranlarda geçerken hata veriyo acaba nedeni nedir? logcatte yazanda bu ;
08-04 03:54:45.725: E/AndroidRuntime(1116): FATAL EXCEPTION: main
08-04 03:54:45.725: E/AndroidRuntime(1116): Process: com.example.polie, PID: 1116
08-04 03:54:45.725: E/AndroidRuntime(1116): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.polie/com.example.polie.AddCard}: java.lang.NullPointerException
08-04 03:54:45.725: E/AndroidRuntime(1116): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
08-04 03:54:45.725: E/AndroidRuntime(1116): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
08-04 03:54:45.725: E/AndroidRuntime(1116): at android.app.ActivityThread.access$800(ActivityThread.java:135)
08-04 03:54:45.725: E/AndroidRuntime(1116): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
08-04 03:54:45.725: E/AndroidRuntime(1116): at android.os.Handler.dispatchMessage(Handler.java:102)
08-04 03:54:45.725: E/AndroidRuntime(1116): at android.os.Looper.loop(Looper.java:136)
08-04 03:54:45.725: E/AndroidRuntime(1116): at android.app.ActivityThread.main(ActivityThread.java:5017)
08-04 03:54:45.725: E/AndroidRuntime(1116): at java.lang.reflect.Method.invokeNative(Native Method)
08-04 03:54:45.725: E/AndroidRuntime(1116): at java.lang.reflect.Method.invoke(Method.java:515)
08-04 03:54:45.725: E/AndroidRuntime(1116): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
08-04 03:54:45.725: E/AndroidRuntime(1116): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
08-04 03:54:45.725: E/AndroidRuntime(1116): at dalvik.system.NativeStart.main(Native Method)
08-04 03:54:45.725: E/AndroidRuntime(1116): Caused by: java.lang.NullPointerException
08-04 03:54:45.725: E/AndroidRuntime(1116): at com.example.polie.AddCard.onCreate(AddCard.java:166)
08-04 03:54:45.725: E/AndroidRuntime(1116): at android.app.Activity.performCreate(Activity.java:5231)
08-04 03:54:45.725: E/AndroidRuntime(1116): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
08-04 03:54:45.725: E/AndroidRuntime(1116): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
08-04 03:54:45.725: E/AndroidRuntime(1116): ... 11 more