0

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?

Ravi
  • 33,034
  • 19
  • 115
  • 176
Phoenix Haroz
  • 323
  • 1
  • 4
  • 8

1 Answers1

0
  1. I think you use the Intent to webview from Home activity.
  2. 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.
    
  3. if you doesn't use the Intent, post your code clearly.

Hope this Helps.

Happy Coding :)

Venkatesh Selvam
  • 1,352
  • 1
  • 15
  • 28