simulating an SD card in Android emulator for Camera pictures -
hey guys mimicking camera on android emulator webcam. ask insert sd card before using camera. wondering if possible create 'virtual' in sense sd card camera can work? under emulator options specify sd storage area of 20mb not sure why not working?
here how accessing camera:
..listener...onclick...{ intent takepictureintent = new intent(mediastore.action_image_capture); startactivityforresult(takepictureintent, camera_pic_request); } public void onactivityresult(int requestcode, int resultcode, intent data) { if (requestcode == camera_pic_request) { if (resultcode == result_ok) { bitmap bm = bitmapfactory.decodefile(imagepath); imageview image = (imageview) findviewbyid(r.id.gimg1); image.setimagebitmap(bm); } else if (resultcode == result_canceled){ } } ..... }
thoughts suggestions appreciate!
david
update:
i had update 20mb higher storage rate , worked great :)
i had same problem, sd card configured 200mb , active. caused problem "internal storage" configured 200mb. increasing internal storage fixed problem.
Comments
Post a Comment