I designed a app with WebView.
Now I am facing issue, while clicking back-button of WebView of Android app. It is restarting app instead of Homepage/Menu.
Any idea why this is happening?
I designed a app with WebView.
Now I am facing issue, while clicking back-button of WebView of Android app. It is restarting app instead of Homepage/Menu.
Any idea why this is happening?
if you use Intent, dont use finish() after start the Intent like below.
Intent i=new intent(this,WebviewActivity);
startActivity(i);
HomeActivity.this.finish(); // dont use this line, it destroys homeactivity.
if you doesn't use the Intent, post your code clearly.
Hope this Helps.
Happy Coding :)