WebView within a Service using the
WindowManager. I am able to create a
WebView with an
.js file with no problem. It is once I try to pass data from the android
.java service to the
WebView that I run into an issue.
I have tried doing so in this fashion:
final WindowManager windowManager = (WindowManager) getSystemService(WINDOW_SERVICE);
wv = new WebView(this);
windowManager.addView(wv, params); // params set using method from linked post above
Neither the call to
loadUrl() appear to have any effect on the WebView (I access the console using the chrome developer tools).
I have tested that in
test.html I can add a
<script> tag and output text to the console with no issue.
I've also tried calling the functions before adding the view to no avail.