09-14 13:11:50.658: E/AndroidRuntime(1235): FATAL EXCEPTION: main
09-14 13:11:50.658: E/AndroidRuntime(1235): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ceosoftcenters.marshall.alumnilife/com.ceosoftcenters.marshall.alumnilife.activity.PuzzleActivity}: android.view.InflateException: Binary XML file line #40: Error inflating class <unknown>
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1655)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1671)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.os.Handler.dispatchMessage(Handler.java:99)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.os.Looper.loop(Looper.java:130)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.app.ActivityThread.main(ActivityThread.java:3694)
09-14 13:11:50.658: E/AndroidRuntime(1235): at java.lang.reflect.Method.invokeNative(Native Method)
09-14 13:11:50.658: E/AndroidRuntime(1235): at java.lang.reflect.Method.invoke(Method.java:507)
09-14 13:11:50.658: E/AndroidRuntime(1235): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
09-14 13:11:50.658: E/AndroidRuntime(1235): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
09-14 13:11:50.658: E/AndroidRuntime(1235): at dalvik.system.NativeStart.main(Native Method)
09-14 13:11:50.658: E/AndroidRuntime(1235): Caused by: android.view.InflateException: Binary XML file line #40: Error inflating class <unknown>
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
09-14 13:11:50.658: E/AndroidRuntime(1235): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
09-14 13:11:50.658: E/AndroidRuntime(1235): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:206)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.app.Activity.setContentView(Activity.java:1681)
09-14 13:11:50.658: E/AndroidRuntime(1235): at com.ceosoftcenters.marshall.alumnilife.activity.PuzzleActivity.onCreate(PuzzleActivity.java:62)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1619)
09-14 13:11:50.658: E/AndroidRuntime(1235): ... 11 more
09-14 13:11:50.658: E/AndroidRuntime(1235): Caused by: java.lang.reflect.InvocationTargetException
09-14 13:11:50.658: E/AndroidRuntime(1235): at java.lang.reflect.Constructor.constructNative(Native Method)
09-14 13:11:50.658: E/AndroidRuntime(1235): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
09-14 13:11:50.658: E/AndroidRuntime(1235): ... 23 more
09-14 13:11:50.658: E/AndroidRuntime(1235): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.graphics.Bitmap.nativeCreate(Native Method)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.graphics.Bitmap.createBitmap(Bitmap.java:477)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.graphics.Bitmap.createBitmap(Bitmap.java:444)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:349)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:512)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:487)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:336)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.content.res.Resources.loadDrawable(Resources.java:1739)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.view.View.<init>(View.java:1952)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.view.View.<init>(View.java:1900)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.view.ViewGroup.<init>(ViewGroup.java:292)
09-14 13:11:50.658: E/AndroidRuntime(1235): at android.widget.RelativeLayout.<init>(RelativeLayout.java:173)
09-14 13:11:50.658: E/AndroidRuntime(1235): ... 26 more
- RelativeLayout pRelativeLayout = (RelativeLayout)this.findViewById(R.id.pRelativeLayout);
- pRelativeLayout.setBackgroundDrawable(new BitmapDrawable(ReadBitmapUtil.readBitMap(this, R.drawable.p)));