I saw the online Documentation here
What i tried::
JSON
response to POJO
What i need more information::
Robospice
it looks like a wrapper
around either of Spring
or Retrofit
or AsyncHttp
etcSpring
or Retrofit
or AsyncHttp
etcSpring
or Retrofit
or AsyncHttp
etc as BoilerPlate code and makes development easierIf i am not correct, please provide a clear info w.r.t this
I am new to android, Please go easy on with answers
I'm not an expert on RoboSpice but here is my quick explanation of its function:
Often in our app we would like to do Asynchronous network operations (get image from url etc.)
A common technique is to do the network request within an AsyncTask object.
The problem is that the AsyncTask object is not handled by the activity lifecycle.
When the device configuration change occurs (e.g. rotate device) a new activity is created (See Handling runtime changes). The original activity which created the Async network request is destroyed now but the AsyncTask is still working. The AsyncTask which is doing the networking will now maybe try and update the UI with some progress information (e.g. download has completed). But the AsyncTask still refers to the original activity which has been destroyed now. We need the AsyncTask to attach itself to the new activity.
My knowledge is that RoboSpice helps solve this problem. I cannot comment on the underlying implementation of RoboSpice.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With