小编Aii*_*t Ü的帖子

4320016字节分配的内存不足

在此输入图像描述 我不知道发生了什么,起初它现在正在运行我有这个错误这是我的代码:

我不知道发生了什么,起初它现在正在运行我有这个错误这是我的代码:

我不知道发生了什么,起初它现在正在运行我有这个错误这是我的代码:

    public void allFile() {
    mTempDir = Environment.getExternalStorageDirectory()
            + "/MyCameraBooth/Photo/";

    File mTempFile = new File(mTempDir);
    if (!mTempFile.exists()) {
        mTempFile.mkdirs();
    }

    mBackground = Bitmap.createBitmap(1800, 1200, Bitmap.Config.RGB_565);
    BitmapFactory.Options options = new BitmapFactory.Options();
    options.inPreferredConfig = Bitmap.Config.ARGB_8888;

    File f = new File(AppConstant.filepathone);
    Bitmap mImageone = decodeFile(f);
    File g = new File(AppConstant.filepathtwo);
    Bitmap mImagetwo = decodeFile(g);
    File h = new File(AppConstant.filepaththree);
    Bitmap mImagethree = decodeFile(h);
    File i = new File(AppConstant.filepathfour);
    Bitmap mImagefour = decodeFile(i);

    Map<String, Bitmap> mBgMap = new HashMap<String, Bitmap>();
    mBgMap.put("Frame1", BitmapFactory.decodeResource(getResources(), …
Run Code Online (Sandbox Code Playgroud)

java camera android bitmap

0
推荐指数
1
解决办法
1037
查看次数

标签 统计

android ×1

bitmap ×1

camera ×1

java ×1