Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old January 24th, 2012, 04:32 AM   #1 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 4
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Load my gamefiles(using asynctask), while showing a Greystripe ad?

I'm trying to load all my gamefiles using a AsyncTask, but the AsyncTask does not run in a seperate Thread :S

PHP Code:
LoadInBackground load = new LoadInBackground();
        
load.setContinent(continent);
        
load.execute(eur);
        ((
SquaresApplicationgetApplication()).displayAdWrapper(this);
        
Log.d(TAG"Displaying ad, while loading the map"); 
LoadInBackground extends AsyncTask and all the loading is done in doInBackground();
Am I using it wrong and is there a better way to do it?
I tried to declare a sep]erate thread and then call thread.start(); before showing the ad, but I got the same result, first it loads the game and then shows the ad.

Thanks in advance
rbroome!

rbroome is offline  
Reply With Quote
Sponsors
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 12:08 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo