I would certainly look at Retrofit2 library for doing any kind of http 
transaction ( http://square.github.io/retrofit/ ). You can find simple 
example using this library at https://github.com/snijsure/tinyurl

For general callback stuff you should also make yourself familiar with 
RxAndroid ( https://github.com/ReactiveX/RxAndroid ) but it might be bit 
tough get your arms around it. Again you can find simple example of using 
RxAndroid to handle callback at https://github.com/snijsure/TwitterSample

Hope this helps.
-Subodh

On Saturday, March 19, 2016 at 1:08:54 PM UTC-7, Anwar Saiah wrote:
>
> I'm working on an app that should retreive some data from a web stored 
> database. Then this data will be maintained manipulated and such..
> I thought that it would best if I built a java class in my android project 
> to hold an object(Student) that will hold the data.
> Then another class Students that will have a linked list of students and a 
> http post request object that will retreive the data. Now before I get into 
> anymore detail, is this a good practice? You see inside this Students class 
> I have to create a new thread that will do the networking and store data 
> into the list before displaying it on the UI.
> What is best if so to use for retreiving the info to the list from the 
> thread? ThreadHandler, Thread, AsyncTask ?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e3c8d988-f208-4535-9ded-1dd09dafe117%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to