android开发,程序运行没有有关问题,但是按Home键在回到本程序就会报错

   阅读
android开发,程序运行没有问题,但是按Home键在回到本程序就会报错
错误代码:Logcat
11-11 09:10:09.395: ERROR/AndroidRuntime(523): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.amaker.wlo/com.amaker.wlo.OrderDishesActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.os.Handler.dispatchMessage(Handler.java:99)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.os.Looper.loop(Looper.java:123)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.app.ActivityThread.main(ActivityThread.java:4363)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at java.lang.reflect.Method.invokeNative(Native Method)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at java.lang.reflect.Method.invoke(Method.java:521)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at dalvik.system.NativeStart.main(Native Method)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.view.LayoutInflater.createView(LayoutInflater.java:513)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.view.LayoutInflater.inflate(LayoutInflater.java:385)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.app.Activity.setContentView(Activity.java:1622)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at com.amaker.wlo.OrderDishesActivity.onCreate(OrderDishesActivity.java:60)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): ... 11 more
11-11 09:10:09.395: ERROR/AndroidRuntime(523): Caused by: java.lang.reflect.InvocationTargetException
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.widget.RelativeLayout.<init>(RelativeLayout.java:171)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at java.lang.reflect.Constructor.constructNative(Native Method)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): at android.view.LayoutInflater.createView(LayoutInflater.java:500)
11-11 09:10:09.395: ERROR/AndroidRuntime(523): ... 21 more
11-11 09:10:09.395: ERROR/AndroidRuntime(523): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
阅读