Non-USSD command (e.g *#06#...)

rfabbc

New Member
Hello,

I know how to send USSD command by using Phone library as described in this topic:
www basic4ppc.com/forum/basic4android-updates-questions/10708-ussd-commands.html

The USSD command is the string followed by CALL button.
For example: *101# <CALL>

How can I programmatically simulate non-USSD command, i.e dial a string without a CALL button.

For example, I want to dial *#06# to get an IMEI (this command does not require CALL button). How can I do it in B4A?
 

rfabbc

New Member
To get IMEI use this:

B4X:
Dim p As PhoneId
p.GetDeviceId ' Gets phone ID

hello pluton, thank you. I know this method. However I just want to simulate programmatically dialing *#06# as on the dial-pad without CALL button at the end. "*#06#" is just an axample.
 
Upvote 0

afagcaoili

Member
Licensed User
Longtime User
Any solution on this?

Hi,

Any solution on this question?

I tried this code.

Dim Str As String
Str = "*#1234#*"

StartActivity(P.Call(Str))

But it only dial * and not including the rest of the strung.

Arnold
 
Upvote 0
Top