I am displaying a text file that contains html code in a webview using loadData(). The html code has a image tag like <img src="file:///android_asset/test.png" alt="cd4+ cell"> and placed the test.png file in the res\drawable folder. But webview is displaying perfect without the img. Where is the probelm in my system?
Android html image prob
1.5k Views Asked by dev_android At
2
There are 2 best solutions below
Related Questions in HTML
- Delay in loading Html Page(WebView) from assets folder in real android device
- Why does a function show up as not defined
- CSS Class is not applying to element (border width,color,and style attributes)
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- Automatically closing tags in form input?
- Positioning child at bottom of parent with scroll
- Remove added set of rows
- Website zoomed out on Android default browser
- Twitter Bootstrap horizontal form elements on a line
- http://sigmajs.org/ les mis tutorial - why are my canvases 0 height?
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- Svg containers not positioning properly
Related Questions in IMAGE
- Add image to JCheckBoxMenuItem
- Display images on Django Template Site
- How to resize images with PHP PARSE SDK
- Animation in Java on top of JPanel
- Slow performance on ipad erasing image
- What are the pros and cons of the picture element?
- Carrierwave file upload with different file types
- How to use annotorious with angular
- Images not showing when uploaded to server
- ImageView doesn't show up
- Image Resizing adjusts ratio
- Displaying bitmap image on Android (OpenCV)
- Class 'Imagick' not found - PHP and Windows
- Image position - randomly select position
- Replace image 1 with image 2 after 5 sec
Related Questions in ANDROID-WEBVIEW
- Delay in loading Html Page(WebView) from assets folder in real android device
- Error:(29, 6) Error: The element type "input" must be terminated by the matching end-tag "</input>"
- Controlling navigation in the Android WebView class
- Android - WebView onReceivedError opposite
- Weird rendering of components after Android System WebView update
- Allow access to local assets in android
- Update Android System WebView on SDK Emulator
- How can I control android webview activity changes when I change screen orientation?
- Supporting WebGL on Android 5's WebView
- Webview causes ANR
- How do I load url from Bundle in Android
- Get parent html element on click
- Focusing on <input type=number> in Android browser the page scrolls to the bottom
- Delay popping up a dialog fragment till a webview within has completed loading
- Is it possible login into website programmatically with android?
Related Questions in LOADDATA
- Load data Query with regular expression
- How to trigger function after using .loaddata
- Loading data from a text file Informix
- Mysql load data in file making a lot of read operations
- How to display progressbar while load data and fill into recyclerview?
- Android html image prob
- Android webview loaddata giving NullPointerException
- load 2 tableviews in a single view iOS
- Android webview loadData
- Load data files within a function using Matlab
- How to load data in tensorflow from subdirectories
- load data into table got following exception
- Problem with using Read10x function of Seurat
- Load data functions not working correctly on CSV(Comma Delimited) file
- Is there any way to load data while scrolling in jquery for Iphone (mobile websites)
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)
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?
Try using
loadDataWithBaseUrl()instead ofloadData(). Something like this: