To run a process in the background in an android application, you use an AsyncTask. Is there a similar way of running something in the background on a basic cmd line application in java?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It can be as simple as creating a class that extends
Thread(excuse me, purists, but this is the shortest way:)There are a bunch of fancier tools in the
java.util.concurrentpackage, which you should look at if you need to do anything more complex than this.