android - capture image from camera and show in fragment, restarting FragmnetActivity onActivityResult -
i want capture image camera , show in imageview in fragment, have done job, working fine on motorola droid maxx xt-1080m kitkat 4.4.4 restarting faragmentactivity on galaxy s4 lollipop 5.0 code
intent camera
intent cameraintent = new intent(android.provider.mediastore.action_image_capture); startactivityforresult(cameraintent, camera_request);
onresultactivity()
if (resultcode == activity.result_ok) { bitmap photo = (bitmap) data.getextras().get("data"); iv_parse_user_profile_picture.setimagebitmap(photo); }
Comments
Post a Comment