单击10个以上的图像后,相机意图不起作用?

时间:2016-01-11 09:23:52

标签: java android android-intent android-camera

我正在使用相机意图点击Android中的图像。它打开了android手机的原生相机应用程序。我调用onActivityResult从相机应用程序获取数据。当我尝试连续点击10个以上的图像然后打开点击“确定”'按钮在相机中它没有导航回我的应用程序,但取消它确实。请告诉我如何才能获得解决方案?

代码

Intent intent = new Intent(
                    android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
            imagesFolder = new File(Environment.getExternalStorageDirectory(),
                    "DW");

            imagesFolder.mkdirs();
            // Create new folder
            String timeStamp = new SimpleDateFormat("MM/dd/yyyy_hhmmssa")
                    .format(new Date());

            // if (component_id != comp_id) { image_paths.clear(); }

            component_id = comp_id;
            String alter_timeStamp = timeStamp.replaceAll("/", "_");
            cam_client_id = client_id;
            cam_sub_client_id = sub_client_id;

            fname = comp_name + "_" + component_id + "_" + alter_timeStamp
                    + ".jpg";

            fname = fname.replaceAll(",", "");
            fname = fname.replaceAll("&", "");
            fname = fname.replaceAll(" ", "_");

            Log.i("SYNC", "fname is ->" + fname);
            temp_image = image = new File(imagesFolder, fname);
            // compress image size

            temp_uri = uri = Uri.fromFile(image);
            file_uri = uri.getPath();

            intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
            context.startActivityForResult(intent, 90);

由于

0 个答案:

没有答案