I am new to hybrid development. I wrote a small application that launches webview. I have XML, JS files copied to the / asset folder.
The application works fine on my Samsung tablet, but I get the following errors on the emulator
05-30 06: 09: 07.080: I / chromium (1245): [INFO: CONSOLE (0)] "XMLHttpRequest cannot load the file: ///android_asset/resource/service_config.xml. Cross-start requests are supported only for HTTP . ", source: file: ///android_asset/Startup.html (0)
I found out that this is due to the security model of Chrome browsers, and the Android browser also uses the same component as the Chrome browser. But all this is largely due to the Chrome browser, not affecting the problem on the emulator.
Appreciate any help on this issue.
Thanks,
iuq
source share