Passer un appel depuis un fragment
Bonjour, je désire passer un appel depuis un fragment mais sa ne marche pas j'ai une erreur.
voici le code pour passé l'appel tél il ce trouve dans un fragment
Code:
1 2
| Intent call = new Intent(Intent.ACTION_CALL, Uri.parse(person.getMobilePhone()));
getActivity().startActivity(call); |
voici l'erreur
Code:
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CALL dat= }
j'ai bien mis la permission dans le manifest.