Posts by Fabio Pedrosa • 21 points
4 posts
-
1
votes2
answers1075
viewsA: Send camera image to server by Retrofit
To send image to the server I used so in the new version: @Multipart @POST("xpto/upload") public Call<AnuncioRest> upload(@Part("file\"; filename=\"image.jpg\"") RequestBody file,…
-
0
votes1
answer83
viewsA: How to know when a retrofit call is completed in order to start an Activity?
In the onResponse method you will know from there just call your Activity: Call<SeuObjeto> call = service.upload(requestBody, nomeProduto, descricaoProduto,email,categoria); call.enqueue(new…
-
0
votes2
answers131
viewsA: Error closing Progressidialog
I noticed that in this case only closes when calling a new Intent and calling another Actvity, I told this way, in my case I have Activity that calls the login method in another class:…
-
1
votes2
answers131
viewsQ: Error closing Progressidialog
public UserRest login(Usuario usuario, final Context context){ try { showProgress(context, "Aguarde", "Validando usuário..."); UserService service =…