in my app i have two activities namely A and B. From activity A i am moving to activity B by clicking a button. In activity B i have a button and when the use clicks it opens either the library or camera according to the user’s wish.
Here either the user selects an image or captures an image, the image is been uploaded to server. After this activity gets overed i want to show the Activity A automatically.
If the user clicks the default back button, i have written code to move to Activity A, butin some times it gets closed automatically after the uploading process, in such case i want to show only Activity A and not B.
Use this for Taking Photo and store it in Sdcard :
Use onActivityResult Method :
After the Image captured from Camera its will come to onActivityResult() method Check the Response and Redirect the Page Accordingly.