I have an Android app which uses the WebView function, it opens html files inside my app from a local host that have been stored in the android_asset folder when prompted. However, the WebView function only shows the text in the html file, it does not show the images that I have linked into the code of the html document, these are stored in res/mipmap. It is important to me that my app can show both text and images when I use WebView to open the html file. It is also important that the html files and the images are stored in a place that means they will be added to the installable (so that the user does not have to be connected to the internet to use the App or move any files around themselves). Is it possible to link an image stored on a local host in something like android_asset or res/mipmap so that I can see both text and the image when I open the html file in WebView? The link to the images that does not work is in res/mipmap, it is: img src = "file:///mipmap-hdpi/car.png" alt = "Test Image"
1
There are 1 answers
Related Questions in HTML
- How to store a date/time in sqlite (or something similar to a date)
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- Is there any way to glow this bulb image like a real light bulb
- With non-graphical maps in Leaflet, zoomDelta doesn't work
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- Displaying a Movie List on a Website Using Jinja2 and Bootstrap
- How to redirect to thank you page after submitting a Google form embedded into a Google Site?
- Storing selected language in localStorage
- Fences (parenthesis, braces) in HTML and MathML
- Understanding Scroll Anchoring Behavoir
Related Questions in ANDROID-STUDIO
- Flutter plugin development android src not opening after opening example
- Listview - Getting error while linking the items correctly in Android Java
- Failed to getEnergyData
- Adding new package in a flutter project does not work untill the android studio is restarted
- unity + Vuforia balck screen in android AR app
- Android Studio Using recently added resources in compose preview in multi-module project
- Flutter project is working in debug version but not in the release version
- Can't run gradlew.bat on Windows
- Android studio crash, nothing in logcat
- Android Studio shows there has 1 usage but No usages found in All places
- Gradle Build errors while running sample code on Android Studio Iguana
- Android camera application restriction to 12 mp
- Change back to default font size in Android Studio
- `android` Does Not Exist in `~/Android/Sdk/platform-tools`
- LSTM frozen layer containing clip_by_value causing android studio to crash when deployed
Related Questions in WEBVIEW
- Android jetpack compose webview, image selector not works
- After progressbar load website is not loading in android webview
- Awaited promise for navigator.mediaDevices.getUserMedia neither resolves or throws an error
- Flutter WebViewWidget inside StatefulWidget does not dispose
- Crash : org.chromium.android_webview.AwDataDirLock.b
- Tauri Build Error unterminated character in import
- Update your browser to use...in android webview application
- Face Recognition in Windows Logon
- Flutter Webview translate the page
- Prevent checking checkbox input in contentEditable from stealing focus from editor in Android webview?
- Touch Problem with slider on Android 12 compared to Android 8 in vuejs webapp in WebView
- Asset file not being included on older versions of Android
- Unable to Trigger JavaScript Actions in WKWebView for W3Schools "Try it Yourself" Button (iOS/UIKIT)
- TadingView Charts in Flutter Dart are responsive on App
- Flutter webview fails to load Urls with error 'ERR_INVALID_RESPONSE' on Android but works on iOS
Related Questions in LOCALHOST
- What's supposed to be the problem in this query?
- I cant access file directory with PHP local host on XAMPP. it just shows one of the files I have in my visual studio code
- Firebase authentication does not work on 127.0.0.1 but works on localhost
- Next.Js: localhost:3000 not working in browser
- Auto redirect 127.0.0.1:8000 to 127.0.0.1:8000/app/
- How can I connect my Android Studio apk to localhost for real Android devices?
- Localhost doesn't see my file; The requested URL was not found on this server
- Issue with Google Login Implementation using google-auth-library in Node.js
- Calling service with localhost or machine IP for internal calls?
- If a website is running on localhost, does Next.js have more performance than React.js?
- Mediapipe making python local server throw "[WinError 6] The handle is invalid"
- Filament Laravel Project
- localhost runs for a long time (react)
- React app using Vite has blank white screen when i open in localhost
- Persist Local AppEngine logs to Google App Engine Logger?
Related Questions in ANDROID-MIPMAP
- AndroidManifest.xml:3: error: resource mipmap/launcher_icon (aka com.xyz.dbdb:mipmap/launcher_icon) not found
- Why Image Asset - Launcher Icon (Adaptive and legacy), i.e. res/mipmap, will delete/overwrite the res/drawable with the same name?
- Can I link .png images I have stored in res/mipap to html files I have stored in android_asset, so WebView shows both text and images in an html file?
- minSdkVersion 26 or later and just with mipmap-anydpi containing ic_launcher icons
- Not have drawable-mdpi, drawable-hdpi, drawable-xhdpi, drawable-xxhdpi
- App Icon displayed only in API21 but fails in other api's
- Notification not show icon in case of using mipmap
- Android ImageView @drawable options doesn't showed up
- Why is EasySplashScreen icon so small (Android Studio)?
- Setting up mipmap images on ImageButton from xml array in Kotlin?
- Support the glGenerateMipmap() function in OpenGl ES 2.0
- How to set a mipmap icon on Floating Action Button?
- Android: Add shadow to mipmap icon launcher
- create circle mipmap launcher icon for all of API
- it is possible to chooce the mipmap size in android
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I made a new folder inside android_asset called imagepng. I then put the .png's in this folder (so the link to the image in the htlml file looks like ). The html file now calls the .png image from this place and I can see it on the app. I do not know yet if this makes it into the installable so it can be run locally from the smart phone..........My original mistake was trying to put the images directly into android_asset as it does not allow this.