在打开自定义对话框视图时,在android中内存不足?

时间:2013-04-15 05:19:01

标签: android

点击打开一个对话框查看它给内存不足?在对话框中,我有两个图像和1个图像按钮,甚至图像的大小是40 50kb。

04-15 10:11:07.085: E/dalvikvm-heap(29896): Out of memory on a 16384016-byte allocation.
04-15 10:11:07.085: I/dalvikvm(29896): "main" prio=5 tid=1 RUNNABLE
04-15 10:11:07.085: I/dalvikvm(29896):   | group="main" sCount=0 dsCount=0 obj=0x40c51460 self=0x12938
04-15 10:11:07.085: I/dalvikvm(29896):   | sysTid=29896 nice=0 sched=0/0 cgrp=default handle=1075008808
04-15 10:11:07.085: I/dalvikvm(29896):   | schedstat=( 1269958584 831219251 1666 ) utm=105 stm=21 core=0
04-15 10:11:07.085: I/dalvikvm(29896):   at android.graphics.Bitmap.nativeCreate(Native Method)
04-15 10:11:07.090: I/dalvikvm(29896):   at android.graphics.Bitmap.createBitmap(Bitmap.java:605)
04-15 10:11:07.090: I/dalvikvm(29896):   at android.graphics.Bitmap.createBitmap(Bitmap.java:551)
04-15 10:11:07.090: I/dalvikvm(29896):   at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:437)
04-15 10:11:07.090: I/dalvikvm(29896):   at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:618)
04-15 10:11:07.090: I/dalvikvm(29896):   at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:593)
04-15 10:11:07.090: I/dalvikvm(29896):   at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:445)
04-15 10:11:07.090: I/dalvikvm(29896):   at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:773)
04-15 10:11:07.090: I/dalvikvm(29896):   at android.content.res.Resources.loadDrawable(Resources.java:1968)
04-15 10:11:07.090: I/dalvikvm(29896):   at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
04-15 10:11:07.095: I/dalvikvm(29896):   at android.widget.ImageView.<init>(ImageView.java:119)
04-15 10:11:07.095: I/dalvikvm(29896):   at android.widget.ImageView.<init>(ImageView.java:109)
04-15 10:11:07.095: I/dalvikvm(29896):   at java.lang.reflect.Constructor.constructNative(Native Method)
04-15 10:11:07.095: I/dalvikvm(29896):   at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
04-15 10:11:07.095: I/dalvikvm(29896):   at android.view.LayoutInflater.createView(LayoutInflater.java:586)
04-15 10:11:07.100: I/dalvikvm(29896):   at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
04-15 10:11:07.100: I/dalvikvm(29896):   at android.view.LayoutInflater.onCreateView(LayoutInflater.java:653)
04-15 10:11:07.100: I/dalvikvm(29896):   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:678)

0 个答案:

没有答案