Android Webview with Back Button, if else
Disregard. I was opening the wrong app that was installed. It works wonderfully. :) I have the back button working correctly within my webview, but I was wondering something. How to make the webview go back until it cannot anymore, and instead of exiting the program, have it open up a dialog box asking if the user is sure they won't to exit. Here is my take on the code. Thanks for taking the time. .java file package com.vtd.whatthe; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.app.Dialog; import android.content