I found this code for Raspberry Pi, but I can not able to use it, because AsyncTask API was deprecated.
I am only a beginner in Java, so I can not able to rewrite Jav