• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Load my gamefiles(using asynctask), while showing a Greystripe ad?

rbroome

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

PHP:
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!
 
Back
Top Bottom