CWAC Camera: why my SimpleCameraHost saveImage is so slow, am I doing something wrong?
问题 How to optimize this peace of code? It takes about a minute on saveImage method. class ObrolSimpleHost extends SimpleCameraHost { private final String[] SCAN_TYPES = {"image/webp"}; private Context context = null; public ObrolSimpleHost(Context _ctxt) { super(_ctxt); this.context = getActivity(); } @Override public void saveImage(PictureTransaction xact, Bitmap bitmap) { File photo = getPhotoPath(); if (photo.exists()) { photo.delete(); } try { FileOutputStream fos = new FileOutputStream