how to make in app browser in android studio to open link directly like twitter and instagram.I tried below method which is not giving the desired out come.
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Intent.ACTION_WEB_SEARCH);
intent.putExtra(SearchManager.QUERY,url);
startActivity(intent);
}
});