I created an application in android. Now I want to create a web version using PlayN. I want to replace all specific Android code with regular Java code. In the Android version, I use the Async task. What can i use instead?
Async Task is just a separate thread. You can create your own stream and add the code that you wrote in doInBackground (Void ... params) in the run run run () method.
Try SwingWorker
Other refefernces:
You can download the Android source and copy the AsyncTask source to your project. It has no dependency on Android.
You can find AsyncTask.java here
Source: https://habr.com/ru/post/1398221/More articles:How to get a simple computer name (without a domain name) from the fully qualified computer name in C #? - c #Maven: different configuration for different purposes - maven-2Welcome page is displayed without redirecting to the login page - jsfStructure for linking HTML elements from Javascript to MVC3 - javascriptMyBatis spring in a multi-tenant application - springJava GUI Themes - SwingWorker - javaFinding safe Sandbox API for JVM plugins - javaHow to build embedded resources from MVC 3 and IIS7? - asp.net-mvc-3Why is the CDC based on older versions of Java and not a subset of the current SE? - javaPost image to album on predefined page - phpAll Articles