String uri = "tel:666-666-666"; Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse(url)); startActivity(intent);
mardi 29 septembre 2009
Passer un appel depuis un programme Android
Parmi les fonctionnalités demandées pour un téléphone, celle permettant de passer un appel est l'une des plus importantes. Pour passer un appel depuis une application Android, il faut utiliser l'Intent Intent.ACTION_CALL en lui passant l'URI caractérisant le numéro à appeler :
Inscription à :
Articles (Atom)