Questions tagged [webviewrunonuithread]

4 questions
5
votes
1 answer

Android Webview loadUrl does not work when coming from a worker thread

I am developing an app that contains a web view. A certain times during the app it does a call to Webview loadUrl. Sometimes the call will come directly from an event on the UI thread and other times it comes from an event on a background worker…
Smalesy
  • 591
  • 1
  • 7
  • 20
1
vote
2 answers

android: Variable in runOnUiThread

Hi i m using Android Studio, and I am using Deprecated function in a runOnUiThread It forces me to use a a Final Variable inside the runOnUiThread this is ok for the new function but for the Deprecated function i get an error Error:(133, 16) error:…
asmgx
  • 7,328
  • 15
  • 82
  • 143
0
votes
2 answers

Android webview javascript interface method returns value before ui thread is finished

I am calling JavascriptInterface method from webview to call javascript methods. The problem is method returns value before getting result value. So how can I make return statement wait till javascript method is executed from ui…
0
votes
0 answers

Runnable thread stuck/freezes the ui after continuously loading webview

Due to loading webview coninuously using my runnable thread in android , my application freezes after some time. below is my code: mUpdateTimeTask = new Runnable() { public void run() { System.gc(); …
MST
  • 113
  • 1
  • 8