i have mjpg streamer running on my raspberry pi, and i made a android app to watch the stream, i just put a webview there and made it navigate to my streamers URL, but now i enabled the password feature on mjpg streamer. when i enter the page there is a popup asking for username and password:
Now i need my app to somehow enter the username and password automaticly every time i oppen the app.
I have done some research and the only thing i could find was webbrowser controls for c# windows forms:
webBrowser1.Document.GetElementById("username").SetAttribute("value", "supersecretusername");
webBrowser1.Document.GetElementById("Log_in").InvokeMember("click");
But don't think these would work on android's webview and on javascript's alerts.
Is there a way to enter the username and password to these fields and click the button automaticly, or is there a way to enter these once and somehow save them??
I should also mention that i am new to programming and i am not a native english speaker (as you can probably tell), thanks.