Code Monkey home page Code Monkey logo

Comments (6)

trimmytech avatar trimmytech commented on May 30, 2024 2

@romellfudi , any help please ?

from voipussd.

romellfudi avatar romellfudi commented on May 30, 2024 1

My best recommendation is to custom your flow owing to your SIM-TELCOM.

HOW?

  • download my repo
  • copy the USSD module (java or kotlin)
  • attach the module into your project, and debug USSDSERVICE class
  • As your needs, you will change the conditions. It's not a rocket launcher.

from voipussd.

trimmytech avatar trimmytech commented on May 30, 2024

Another scenario is If you dialed a USSD code manually waiting for a response , and using the package to dial another USSD while the last one is still on the screen, the dialog of the manual one wll still be on the screen, sometimes the one dialed using package will take the response as its response or wont even dial at all.

Is there anyway to clear the USSD dialog before dialing a new one ?

i tried the ussdAPI.cancel() , it isnt helping

from voipussd.

romellfudi avatar romellfudi commented on May 30, 2024

Please record a video and send your USSDSERVICE LOG

from voipussd.

trimmytech avatar trimmytech commented on May 30, 2024

unfortunately , the screnario only happens once in a while (when the network provider service isnt stable). BUT
i am dialing the USD from a service, is there any way i can ensure the screen is always clear (not containing any system dialog) before i run the USSD , i have tried many method , it didnt work

from voipussd.

trimmytech avatar trimmytech commented on May 30, 2024

i managed to to get the USSDService log but not the video :

the below log is for a recursive USSD code, it stopped at a point when it is not over and the dialog is still showing :

2021-07-24 15:27:02.224 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent
2021-07-24 15:27:02.231 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent: [type] 32 [class] android.widget.FrameLayout [package] com.android.phone [time] 32500668 [text] []
2021-07-24 15:27:02.303 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent
2021-07-24 15:27:02.589 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent: [type] 32 [class] android.app.ProgressDialog [package] com.android.phone [time] 32500855 [text] [USSD code running…]
2021-07-24 15:27:03.130 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent
2021-07-24 15:27:03.141 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent: [type] 32 [class] com.android.phone.MMIDialogActivity [package] com.android.phone [time] 32501183 [text] [Phone Services]
2021-07-24 15:27:06.699 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent
2021-07-24 15:27:06.707 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent: [type] 32 [class] android.app.AlertDialog [package] com.android.phone [time] 32505285 [text] [1.Account Info
2.Tariff Plan Migration
3.Data Services
4.Roaming & Int'l Offers
5.My Services
6.XtraTime
7.Self Services
8.More
Enter 1,2,3..7 to proceed, CANCEL, SEND]
2021-07-24 15:27:09.798 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent
2021-07-24 15:27:09.806 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent: [type] 32 [class] android.app.AlertDialog [package] com.android.phone [time] 32508379 [text] [My Tools
1.My Number
2.My tariff plan
3.My Account balance
4.My Data Balance
5.End of call Message
6. Sim Registration Status
7. Purchase History
0.Back, CANCEL, SEND]
2021-07-24 15:27:12.827 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent
2021-07-24 15:27:12.832 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent: [type] 32 [class] android.app.AlertDialog [package] com.android.phone [time] 32511407 [text] [1.Account Info
2.Tariff Plan Migration
3.Data Services
4.Roaming & Int'l Offers
5.My Services
6.XtraTime
7.Self Services
8.More
Enter 1,2,3..7 to proceed, CANCEL, SEND]
2021-07-24 15:27:15.929 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent
2021-07-24 15:27:15.936 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent: [type] 32 [class] android.app.AlertDialog [package] com.android.phone [time] 32514514 [text] [My Tools
1.My Number
2.My tariff plan
3.My Account balance
4.My Data Balance
5.End of call Message
6. Sim Registration Status
7. Purchase History
0.Back, CANCEL, SEND]

when the dialog is still showing from the previous USSD, i sent another USSD with different code to dial and below is its USSDService log

2021-07-24 15:31:22.192 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent
2021-07-24 15:31:22.221 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent: [type] 32 [class] android.widget.FrameLayout [package] com.android.phone [time] 32760747 [text] []
2021-07-24 15:31:22.461 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent
2021-07-24 15:31:22.465 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent: [type] 32 [class] android.app.ProgressDialog [package] com.android.phone [time] 32761029 [text] [USSD code running…]
2021-07-24 15:31:22.562 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent
2021-07-24 15:31:22.570 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent: [type] 32 [class] com.android.phone.MMIDialogActivity [package] com.android.phone [time] 32761117 [text] [Phone Services]
2021-07-24 15:31:51.004 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent
2021-07-24 15:31:51.012 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent: [type] 32 [class] android.app.AlertDialog [package] com.android.phone [time] 32789588 [text] [Your Main balance is :6108.16.Recharge N1000 with 888PIN# & get N5000., OK]
2021-07-24 15:31:51.300 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent
2021-07-24 15:31:51.302 23736-23736/com.romellfudi.ussd.demo D/USSDService: onAccessibilityEvent: [type] 32 [class] android.app.AlertDialog [package] com.android.phone [time] 32789804 [text] [My Tools
1.My Number
2.My tariff plan
3.My Account balance
4.My Data Balance
5.End of call Message
6. Sim Registration Status
7. Purchase History
0.Back, CANCEL, SEND]

did you see how its taking the response of the previous USSD code dialed while its own response is still within ??

this happen and the dialog from the previous USSD is still showing even after dialing the second USSD

from voipussd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.