How to put a webview on a thread

honeyasin

New member
Jan 20, 2018
2
0
0
Hi,
I have a webview inside a Service, that runs javascript code (by calling loadUrl), but when i run the app in background it takes some pauses periodically. In advance, it seems that when the phone is connected to my PC there isn't any problem.

I need the script to be executed constantly, so i thought to move the webview to a second thread.

Another solution could be creating an IntentService instead of simple Service, or use something other than webview to execute my remote javascript code.

Any ideas?

Thank You
Honey Asin
 

Latest posts

Trending Posts

Members online

Forum statistics

Threads
955,961
Messages
6,966,255
Members
3,163,446
Latest member
Laurie2Megan