Currently, I am searching for a sophisticated method to retrieve local files (whether on the phone's memory or SD Card) on an Android device using JavaScript within a WebView.
I have loaded this WebView with an HTML page from the device's assets folder. While it seems possible to access any file in this assets folder from Javascript, I am struggling to load anything from the SD card or phone memory. Though I am familiar with addJavaScriptInterface, my main goal is to load images, so integrating this method would require some adjustments to pass a B64 encoded image.
Given that I am new to Android development, I want to ensure that I am not overlooking any simple solutions.