I am making a chat application In which I have provided option to upload the file on to server,issue is I want to send data to previous page.Here is what exactly what I want.
Above is my first activity when I click on upload new activity starts
Now when I click on"Click to upload"button image is uploaded and my second activity closes. I want to send the path of image uploaded along with image name to the previous activity's text box next to send button so how should I do it. I cannot call the activity again as it is selective chat screen from list of chat members,so I am just finishing the second activity by which my previous activity is brought to front
Please help me