java - Closing a system dialog fails -


I am executing a USSD code in my Android application in this function

  public Blank response (reference arg0, int arg arg) {string ussdCode = "*" + "199" + "*" + "8" + "*" + "08 9 7067547" + Uri.encode ("#"); Switch (getResultCode ()) {case activity. RESULT_OK: Toast. GetBaseContext, "SMS distributed", toast .LENGTH_SHORT). Show (); Beginner (New Intent ("android.intent.action.CALL", Uri. From ("Tele:" + USSD code)); SubmitBradeCast (new intent (int. ActionCLOSE_SYSTEM_DIALOGS)); break; Case activity RESULT_CANCELED: Toast. Make text (getBaseContext), "SMS not distributed", toast. LNNGHHORT). Show (); break; }}  

I am able to execute the ussd code but later I am not able to close the ussd dialog. How can I go about closing the USSD Dialogue?

You do not do this, you can not close it from another app, you can not close it. This is the reason why the general rule is not to use the USSD for anything in Android - not only is it portable between carriers, but there is no real USSD API - you can hack some kind of it (not to mention it) The USSD is a hack that must be present in web services and data connection).


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -