I'm creating an android app which is uploading files to RESTlet server. I'm using below code.
Representation file = new FileRepresentation(filePath, MediaType.IMAGE_ALL);
FormDataSet form = new FormDataSet();
form.setMultipart(true);
form.getEntries().add(new FormData("file", file));
ClientResource cr = new ClientResource(url);
cr.post(form);
The question is: How can I monitor uploading process?
Use an asynk task to do it.
See here a simple example:
You can see a more consistent and complete example here