C
C
Chvalov2015-06-04 03:47:10
Java
Chvalov, 2015-06-04 03:47:10

How to parse USSD request response in Android using logcat?

I took an example of this code - https : //github.com/djkevincr/sep_project/tree/mast ... what should have been found in the logs is:

W/Trace   (  679): Unexpected value from nativeGetEnabledTags: 0
D/CallManager(  679):  handleMessage msgid:114
D/CallManager(  679):  handleMessage (EVENT_MMI_COMPLETE)
D/PhoneGlobals(  679): onMMIComplete()...
D/PhoneUtils(  679): displayMMIComplete: state=COMPLETE
D/PhoneUtils(  679): Extended NW displayMMIComplete removeMsg
D/PhoneUtils(  679): - using text from MMI message: 'Balans: 321.75.'
D/PhoneUtils(  679): MMI code has finished running.
D/PhoneUtils(  679): Extended NW displayMMIInitiate (Balans: 321.75.)
V/Provider/Settings(  679):  from settings cache , name = security_locker , value = null

There is a look at the Habr, the first thing that caught my eye:
// do not write all imports, I will only write that do not forget to include the USSD class
import com.example.android.UssdMessage.USSD;
But this class is not used if you write
the line in the Manifest
<uses-permission android:name="android.permission.CALL_PRIVILEGED"></uses-permission>
Underlined in red, and I don’t see the point of it, since it’s the same thing CALL_PHONEbut with the ability to call emergency numbers.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question