How do I handle asynctask's in ActionBarActivity fragments when ViewPager is used in an Android app?
-
I'm using ActionBarActivity to create 4 tabs. I have used ViewPager to swipe between those 4 tabs. I have asynctask in each fragment. When I swipe from one tab to other/select a tab randomly, handling asynctask has become very messy. I'm new to action bar, so can some one suggest a good approach to handle this situation. My requirement is similar to the functionality of Quora Android app. Can someone shed some light on how to handle this problem?
-
Answer:
Look at http://androidBootstrap.com (http://www.androidbootstrap.com) code MainActivity#checkAuth method
Raja Nagendra Kumar at Quora Visit the source
Related Q & A:
- How do I handle my online customer service?Best solution by Quora
- How do I get an alert to pop up when I have email?
- How do I handle my state taxes?Best solution by bankrate.com
- How do I get my computer to notify me when I get a email?Best solution by Yahoo! Answers
- How do I handle a second on-site interview?Best solution by Quora
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.