Android Programming Tutorial with AsyncTask and ViewPager

foamyguy · 11K views · 2013 · 37:24

Open on YouTube

Software practice, open source & careersWeb developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when asking how to load remote or database content into a ViewPager or pull data from a URL with AsyncTask.

Recommended by 1 people across 2 different months, 2013 to 2014.

What it is

A 37-minute Android tutorial by foamyguy that builds a flash-card style app, using AsyncTask to load data in the background and feed a ViewPager. It also includes a short introduction to 9-patch PNGs, with the full source code on GitHub.

What people said

Recommends FoamyGuy · 2013-04 · Stack Overflow · on “Android, Using an Async task to grab text from url”

See here: [this video] for a Video Walkthrough of some source code that explains the AsyncTask pulling data from web in more detail. Hopefully after watching you'll have a better idea of how and why it works.

Recommends FoamyGuy · 2013-09 · Stack Overflow · on “Android viewpager online content”

I created a video tutorial that covers this: [this video] If you follow along with that example you should have the basic understanding you need to re-purpose the example to work with your data set.

Cites naffie · 2013-09 · Stack Overflow · on “Any other alternatives to displaying MySQL server data in android apart from Listview?”

I'm learning android app development and recently learnt how to incorporate webservices into my app.I have searched for days over the internet and on this site as well,with absolutely no luck! I'm developing a simple quiz app,where questions are loaded from a remote MySQL database and currently they are being displayed in a List view,but the aim is to get each question and answer options on it's own separate activity ,such that the user selects an answer and presses a next button to move onto the next question etc.I could create the activities directly with each question already,but the app needs to have that dynamic functionality where the questions could be altered from the server.I would

Cites miloutch · 2014-02 · Stack Overflow · on “Android ViewPager with results from MySQL”

I want to create a ViewPager with results from MySQL database. I Have found a tutorial which explain how to do it with one result (one TextView updated per page) : [this video] But I want to have a ViewPager which displays a whole Layout (with several TextView) where the texts displayed are from my MySQL database. What I want to do is like fill an activity Layout with texts from my MySQL database. The difference is that it's not activity Layouts, but page(fragment) Layouts.