Execution of Sequence a chain of async web requests with Retrofit and LiveData in android -
so have 3 retrofit web requests
call mainactivity , each call won't depend on each other.
so let's first 1 getimages()
, second getcountry()
, , final 1 getuser()
but have condition next activity shouldn't load until these request executed successfully.
so have 2 options here
1) create nested request , execute each request onsuccess on each response . seems reliable hence these async call need optimize time.
2) create variable , increment on each success call , approach seems time saving i'm not sure practice.
so there way can done . .and i'm not using rxandroid
wiki
Comments
Post a Comment