0

In DataDroid Library, for executing request we use execute(request, listner)

Is there any method for executing request without using listner?

I need to send Information to server and for which the response is not related to    user.So, I will handle error and success case in Operation.
I dont want to override methods : 
onRequestFinished(),
onRequestConnectionError(),
onRequestDataError()
as there is no UI updation.
Shanki Bansal
  • 1,681
  • 2
  • 22
  • 32

2 Answers2

0

AsyncTask should work for you. You can do whatever you want in doInBackground, and return the result in onPostExecute, and you can manipulate the UI from there if need be. Otherwise it is just a background thread that communicates with your server.

0

I got the solution : execute(request, null).

Shanki Bansal
  • 1,681
  • 2
  • 22
  • 32