On click web view android asks new browser instead of same, i am new to android app
public class MainActivity extends AppCompatActivity {
private static final String TOAST_TEXT = "Welcome "
+ "To my site.";
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
String url ="http://ift.tt/2jjGFML";
WebView View=(WebView) this.findViewById(R.id.WebView);
View.getSettings ().setJavaScriptEnabled(true);
View.loadUrl(url);
Aucun commentaire:
Enregistrer un commentaire