Как открыть файл ресурса (который Sketchware связывает с APK после компиляции) в WebView внутри моего приложения? ⇐ Android
Как открыть файл ресурса (который Sketchware связывает с APK после компиляции) в WebView внутри моего приложения?
I have a webview (with the name webview1) in my Sketchware Pro project, and I want to add something to the onCreate event in the events tab so that whenever I start the application it opens an asset file (which is an HTML file with the name Homepage.html) that I imported from my Android device's local storage into my Sketchware projects' assets into the webview1 in my project. I have been searching the internet trying to implement this function, but it proved to be futile. Can anyone help me here?
I tried various things like searching the web for directly the Java code that Sketchware uses and adding that to my project with an Add source directly block. I expected it to load the file directly from the asset bundled with my app, but that didn't work and I got a lot of compilation errors no matter how hard I tried. I even tried using Google Gemini for some help but that also was useless.
Источник: https://stackoverflow.com/questions/781 ... compilatio
I have a webview (with the name webview1) in my Sketchware Pro project, and I want to add something to the onCreate event in the events tab so that whenever I start the application it opens an asset file (which is an HTML file with the name Homepage.html) that I imported from my Android device's local storage into my Sketchware projects' assets into the webview1 in my project. I have been searching the internet trying to implement this function, but it proved to be futile. Can anyone help me here?
I tried various things like searching the web for directly the Java code that Sketchware uses and adding that to my project with an Add source directly block. I expected it to load the file directly from the asset bundled with my app, but that didn't work and I got a lot of compilation errors no matter how hard I tried. I even tried using Google Gemini for some help but that also was useless.
Источник: https://stackoverflow.com/questions/781 ... compilatio
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение