There are two possible variation on the principle to move the images into the source code:
- Move the image to the program source code with the use of the text based SVG image string into a webview
- Or use a base64 text string into the ImageView
As always this secure solution has his price. With the first solution you have to rebuild or convert a bit image file to a SVG file. The pro is that one text string with the image text string can be easily scaled and after compression it can't be manipulated other then rebuild it.
The second solution doesn't need to rebuild it in a svg file format
By both solution's you can hit with a size limitation of the string length.
Security always has always its price and mostly a solution for the problem.
I have writing and read-back the string to a file commented out so you can use this B4J program to test your images and logo.