03-08 03:08:05.085: E/AndroidRuntime(8544): FATAL EXCEPTION: main
03-08 03:08:05.085: E/AndroidRuntime(8544): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.googlemapsv2/com.example.googlemapsv2.CheckIn}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
03-08 03:08:05.085: E/AndroidRuntime(8544): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2781)
03-08 03:08:05.085: E/AndroidRuntime(8544): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2797)
03-08 03:08:05.085: E/AndroidRuntime(8544): at android.app.ActivityThread.access$2300(ActivityThread.java:135)
03-08 03:08:05.085: E/AndroidRuntime(8544): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2132)
03-08 03:08:05.085: E/AndroidRuntime(8544): at android.os.Handler.dispatchMessage(Handler.java:99)
03-08 03:08:05.085: E/AndroidRuntime(8544): at android.os.Looper.loop(Looper.java:143)
03-08 03:08:05.085: E/AndroidRuntime(8544): at android.app.ActivityThread.main(ActivityThread.java:4914)
03-08 03:08:05.085: E/AndroidRuntime(8544): at java.lang.reflect.Method.invokeNative(Native Method)
03-08 03:08:05.085: E/AndroidRuntime(8544): at java.lang.reflect.Method.invoke(Method.java:521)
03-08 03:08:05.085: E/AndroidRuntime(8544): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-08 03:08:05.085: E/AndroidRuntime(8544): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-08 03:08:05.085: E/AndroidRuntime(8544): at dalvik.system.NativeStart.main(Native Method)
03-08 03:08:05.085: E/AndroidRuntime(8544): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
03-08 03:08:05.085: E/AndroidRuntime(8544): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:582)
03-08 03:08:05.085: E/AndroidRuntime(8544): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
03-08 03:08:05.085: E/AndroidRuntime(8544): at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
03-08 03:08:05.085: E/AndroidRuntime(8544): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-08 03:08:05.085: E/AndroidRuntime(8544): at
และอีกก่ายกองข้างล่างนี้ครับ ช่วยผมหน่อยคร๊าบบ
if (savedInstanceState == null) {
// Add the fragment on initial activity setup
mainFragment = new MainFragment();
getSupportFragmentManager().beginTransaction().add(android.R.id.content, mainFragment).commit();
} else {
// Or set the fragment from restored state info
mainFragment = (MainFragment) getSupportFragmentManager()
.findFragmentById(android.R.id.content);
}