I have an Android aplication which displays a web app (of mine) into a webview. For a certain reason I want to get the device IMEI as soon as the app is open, send it with javascript from the MainActivity.java (and through the webview) to my web app (which is located in a remote server).
I have an input hidden inside the app web, and I want to give it the IMEI as value. Is that possible? Is there any way to send the IMEI through JS in the mainActivity.java to get it in the html file?