public void onClick (View view ) {
Intent intent = new Intent (this, activty.class);
startActivity(intent) ;
}
Lo que esta en amarillo hay sustituirlo por el nonbre de nuestro evento ONCLICK del botón o witged al que se lo asignamos, y el otro por la ACTIVITY que queremos abrir ( se nos mostrara el XLM asociado a él ).
Para la paguina web:
Intent intent = new Intent (Intent.ACTION_VIEW);
intent.setData(Uri.parse("dirección web"));
startActivity(intent) ;
Saludos a tod@s
No hay comentarios:
Publicar un comentario