Question

I have created an app in android. Now I want to create a web version using PlayN. What I want is to replace all the android specific code to normal java code. In android version I use Async task. What can I use instead of this?

Was it helpful?

Solution

Async Task is nothing but just a separate thread.You can create your on thread and add the code which you written in doInBackground(Void... params) in the thread's run() method.

OTHER TIPS

You can download the Android Source and copy the AsyncTask source to your project. Its does not have dependency of Android.

You can find AsyncTask.java here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top