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
|
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);
((SquaresApplication) getApplication()).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!
|
|
|