How To Upload Image From Device To Server & How To Show On A Progress Bar How Much Data Has Been Uploaded?
18,437
how can i upload an image to server so that i can show uploading progress on a progress bar which is declared on a xml file ?
You can use Android - AsyncTask.
Here is an example of uploading Image to server using AsyncTask Android: Image upload activity.
Author by
Junaid
Updated on June 05, 2022Comments
-
Junaid over 1 year
In my application , I want to do something like , when user clicks on a button it starts the device camera & when user capture an image , it should be uploaded to a server. Now , when uploading the image , i want to show uploading progress on a progress bar. So the question stands like this , how can i upload an image to server so that i can show uploading progress on a progress bar which is declared on a xml file ? Now , I need some idea / example / sample code on how can i do the task.