I'm working on an Android app that will display a ListView with items loaded from the web. The ListView must be displayed after logging in to the app.
What I've done so far:
- I created a Main Activity with tabs on the top.
- In one of the tabs (activity's) you have to log in.
- Then I use the AsyncTask to do the authenticating in the background.
Now that's what I've done so far. I then need to make the following:
When the username and password meet requirements, the app should start a NEW activity, that will show the ListView with the remote items from the web. I need this to be done in a proper fashion, so i will also use an AsyncTask to do this. The Problem is...
I don't know how to approach this. Because when I verify the username it will load... and it will load again when it's loading the list items.. Is there a way to get this all working nicely and within the tabs interface as it currently is?