fabero Member Licensed User Longtime User Sep 6, 2011 #1 I need to compose and not call a number. For example the imei code *#06# but without send the call. With Dim P As PhoneCalls StartActivity(P.Call("*#06#")) I start the call and give errors.. There is a way to do that? Tnx in advance
I need to compose and not call a number. For example the imei code *#06# but without send the call. With Dim P As PhoneCalls StartActivity(P.Call("*#06#")) I start the call and give errors.. There is a way to do that? Tnx in advance
D DKCERT Member Licensed User Longtime User Sep 6, 2011 #2 Hi, You can get the IMEI like this: Code: Sub GetDeviceIMEI As String Dim ph1 As PhoneId Return ph1.GetDeviceId End Sub EDIT: Ahh... my bad... you just used that as an example. Sry Upvote 0
Hi, You can get the IMEI like this: Code: Sub GetDeviceIMEI As String Dim ph1 As PhoneId Return ph1.GetDeviceId End Sub EDIT: Ahh... my bad... you just used that as an example. Sry
H hackhack Active Member Licensed User Longtime User Sep 6, 2011 #3 fabero said: I need to compose and not call a number. Click to expand... What do you mean by that? That the number has been entered and is ready to call if you press a button? Upvote 0
fabero said: I need to compose and not call a number. Click to expand... What do you mean by that? That the number has been entered and is ready to call if you press a button?
fabero Member Licensed User Longtime User Sep 8, 2011 #4 What do you mean by that? That the number has been entered and is ready to call if you press a button? Click to expand... Yes. Imagine to compose *#06# This "code" is interpreted by phone and show your imei. In my case I need something like that for my purpose.. Upvote 0
What do you mean by that? That the number has been entered and is ready to call if you press a button? Click to expand... Yes. Imagine to compose *#06# This "code" is interpreted by phone and show your imei. In my case I need something like that for my purpose..
Erel B4X founder Staff member Licensed User Longtime User Sep 8, 2011 #5 I don't think that it is possible. Upvote 0
bluejay Active Member Licensed User Longtime User Sep 8, 2011 #6 fabero, I have done this in AnyCut using intents, should be able to do the same by sending intents from B4A. Note you need to use escape codes for the URI formatted phone number. SERVICEMENU Action: android.intent.action.DIAL Data: tel:*%23*%230011%23*%23 Dials (but does not actually initiate the call) the number given (or the stored voicemail on the phone). bluejay Upvote 0
fabero, I have done this in AnyCut using intents, should be able to do the same by sending intents from B4A. Note you need to use escape codes for the URI formatted phone number. SERVICEMENU Action: android.intent.action.DIAL Data: tel:*%23*%230011%23*%23 Dials (but does not actually initiate the call) the number given (or the stored voicemail on the phone). bluejay
RandomCoder Well-Known Member Licensed User Longtime User Dec 4, 2011 #7 Can this be done in B4A? I need to dial *#10# to display the remaining minutes of credit left on the phone. If I try and call the number I get a message that say's "Rejected.". I'm guessing that I need a solution as proposed by Bluejay, but is this possible in B4A? Thanks, RandomCoder Upvote 0
Can this be done in B4A? I need to dial *#10# to display the remaining minutes of credit left on the phone. If I try and call the number I get a message that say's "Rejected.". I'm guessing that I need a solution as proposed by Bluejay, but is this possible in B4A? Thanks, RandomCoder
RandomCoder Well-Known Member Licensed User Longtime User Dec 4, 2011 #8 Adjusting my search term in the forum has opened up a few new leads such as this post http://www.b4x.com/forum/basic4android-updates-questions/11051-action_dial.html#post61748 but even so I'm still unable to retreive the remaining credit left on the phone. If I try the suggested code.... Code: Dim in As Intent in.Initialize(in.ACTION_VIEW, "tell:*#10#") StartActivity(in) It opens the phone call menu but with only an astrix entered in the phone number. I adjusted my code to ... Code: Dim in As Intent in.Initialize(in.ACTION_VIEW, "tell:" & Chr(42) & Chr(35) & "10" & Chr(35)) StartActivity(in) But still the same thing happens. Has anyone managed to acheive this yet? In principle it is just the same as calling the voice mail or getting the phones IMEI from the inbuilt phone codes. Regards, RandomCoder Upvote 0
Adjusting my search term in the forum has opened up a few new leads such as this post http://www.b4x.com/forum/basic4android-updates-questions/11051-action_dial.html#post61748 but even so I'm still unable to retreive the remaining credit left on the phone. If I try the suggested code.... Code: Dim in As Intent in.Initialize(in.ACTION_VIEW, "tell:*#10#") StartActivity(in) It opens the phone call menu but with only an astrix entered in the phone number. I adjusted my code to ... Code: Dim in As Intent in.Initialize(in.ACTION_VIEW, "tell:" & Chr(42) & Chr(35) & "10" & Chr(35)) StartActivity(in) But still the same thing happens. Has anyone managed to acheive this yet? In principle it is just the same as calling the voice mail or getting the phones IMEI from the inbuilt phone codes. Regards, RandomCoder
Erel B4X founder Staff member Licensed User Longtime User Dec 4, 2011 #9 You can create such an Intent: Code: Dim in As Intent in.Initialize("android.intent.action.DIAL", "tel:*%23*%230011%23*%23") StartActivity(in) Upvote 0
You can create such an Intent: Code: Dim in As Intent in.Initialize("android.intent.action.DIAL", "tel:*%23*%230011%23*%23") StartActivity(in)
RandomCoder Well-Known Member Licensed User Longtime User Dec 4, 2011 #10 Problem SOLVED! Erel said: You can create such an Intent: Code: Dim in As Intent in.Initialize("android.intent.action.DIAL", "tel:*%23*%230011%23*%23") StartActivity(in) Click to expand... Thanks Erel, I'd just found a post suggesting the use of %23 and had managed to get the full number in the phone so that all the user had to do was press dial. May I ask what is the meaning of %23? Many thanks, RandomCoder Upvote 0
Problem SOLVED! Erel said: You can create such an Intent: Code: Dim in As Intent in.Initialize("android.intent.action.DIAL", "tel:*%23*%230011%23*%23") StartActivity(in) Click to expand... Thanks Erel, I'd just found a post suggesting the use of %23 and had managed to get the full number in the phone so that all the user had to do was press dial. May I ask what is the meaning of %23? Many thanks, RandomCoder
Erel B4X founder Staff member Licensed User Longtime User Dec 4, 2011 #11 This is the URL encoding of #. You can go to this site: URL Decoder/Encoder and enter the value to see the conversion. Upvote 0
This is the URL encoding of #. You can go to this site: URL Decoder/Encoder and enter the value to see the conversion.
RandomCoder Well-Known Member Licensed User Longtime User Dec 4, 2011 #12 Erel said: This is the URL encoding of #. You can go to this site: URL Decoder/Encoder and enter the value to see the conversion. Click to expand... Thankyou, this is a very useful tool which I've now saved for future use :sign0098: Kind regards, RandomCoder Upvote 0
Erel said: This is the URL encoding of #. You can go to this site: URL Decoder/Encoder and enter the value to see the conversion. Click to expand... Thankyou, this is a very useful tool which I've now saved for future use :sign0098: Kind regards, RandomCoder