Here i am displaying URL in BrowserActivity.After opening site when i pressed back i should go back But here reloading. Because with my url another url opening.My Url is correct only. Just advice me with one back press how i return to my activity.If i press 2 times back button then its working properly (means going to previous activity).I posted my code below. Try with that url only please..
btn.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View arg0) {
Intent myWebLink = new Intent(android.content.Intent.ACTION_VIEW);
myWebLink.setComponent(new ComponentName("com.android.browser","com.android.browser.BrowserActivity"));
myWebLink.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
myWebLink.setData(Uri.parse("http://www.abcd.com"));
startActivity(myWebLink);}});