can you please tell me why the application exit when I click back button of device.I am using webview .I go to one link "one.link" on clicking any on that page it will go to "next.link" then it goes to next page. But when I press back button my application exit.Not go to previous page .It mean it not support history .
can we do that ?
I used this code Layout.xml
<WebView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
and ApplicationLoad.java
is :
public class ApplicationLoad extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.app);
WebView browser = (WebView) findViewById(R.id.webview);
browser.loadUrl("http://www.tutorialspoint.com");
}
}