TeamCarton / Michelin-app

Transfert d'appel + Minicarnetd'adresse
1 stars 0 forks source link

Regarde ca #1

Open jeancartondewiart opened 6 years ago

jeancartondewiart commented 6 years ago

Mmi Code TelephonyManager telephonyManager = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE); telephonyManager.listen(phoneListener, PhoneStateListener.LISTEN_CALL_STATE);

Intent intentCallForward = new Intent(Intent.ACTION_CALL);
Uri mmiCode = Uri.fromParts("tel", callForwardString, "#");
intentCallForward.setData(mmiCode);

Depuis https://stackoverflow.com/questions/38052406/is-it-possible-to-call-divert-programmatically-in-android

Arthur4383 commented 6 years ago

trop Bien ! Moi j'ai fini la base de mon menu il faut maintenant tout étoffer pour pouvoir rajouter des boutons depuis l'appli etc...

jeancartondewiart commented 6 years ago

Même genre = mmi sens

Trouve sur

Set Call Forwarding

String url = "tel:"+"*21"+ phoneNumberToForward+Uri.encode("#"); Intent intent1 = (new Intent(Intent.ACTION_CALL, Uri.parse(url))); intent1.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent1);

Reset Call Forwarding

To Cancel/Reset the Call forwarding

String url = "tel:"+"##21#"+ phoneNumberToForward+Uri.encode("#"); Intent intent1 = (new Intent(Intent.ACTION_CALL, Uri.parse(url))); intent1.arddFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent1); Trouve sur http://www.learn-android-easily.com/2013/01/how-to-forward-incoming-call-in-android.html

jeancartondewiart commented 6 years ago

Une application pas loin de la soluce: https://www.getjar.com/categories/all-games/adventure-games/Simple-Call-Forwarding-top-886364