Android camera killing previous activity and creating extra image into gallery -


hi developing android application in using camera intent capture picture , store specified location. works fine on devices on devices when start camera close previous activity , when came camera application creates 2 images. 1 @ location specified camera intent , 1 default @ gallery. don't want store @ gallery. tried in 2 ways:

 intent.putextra(mediastore.extra_output,                     uri.fromfile(new file( common.getlocalcachetempdirectorypath()+ constants.tmp_profile_image_path)));             ((activity)getcontext()).startactivityforresult(intent, constants.request_code_capture_profile_photo); 

so above code works fine thing if check in background destroy previous activity when start camera application. works fine on devices on devices not working properly. need help. thank you.


Comments