I'm trying to wrap an interactive comic web app into a native Android App. I was recommended to use Android Studio and WebView which I have set up, but when launching the app I just get a black screen. The only errors I can see in the log are:
2020-11-03 13:53:26.580 10889-10889/? E/Zygote: isWhitelistProcess - Process is Whitelisted 2020-11-03 13:53:26.581 10889-10889/? E/Zygote: accessInfo : 1
Am I possibly missing something?
Here is what I have so far:
WebView webView = (WebView)findViewById(R.id.webView);
WebSettings settings= webView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setAllowContentAccess(true);
settings.setAllowFileAccess(true);
settings.setAllowFileAccessFromFileURLs(true);
settings.setAllowUniversalAccessFromFileURLs(true);
webView.loadUrl("file:///android_asset/www/index.html");
If anyone has any recommendations for frameworks other than Android Studio that may be better for this please do let me know! Thank you :)
Aucun commentaire:
Enregistrer un commentaire