Android Question Stock Android Phone Dialer, Bug ?

Jmu5667

Well-Known Member
Licensed User
Longtime User
Hi All

While testing our app on a stock android phone,usually testing on HTC, we have noticed the following;

(We are in Ireland)

Using StartActivity(svc_phone.mPhone.Call(APPSET.voiceNum) ) where APPSET.voiceNum = 087xxxxxxx, the Dialer is loaded but no call is made.

However if APPSET.voiceNum = 0035387xxxxxxx the dialer loads and makes the call. Is this a bug in Android or normal behavour.

Is there another way to make the call using reflection etc.

Regards

John.
 

Jmu5667

Well-Known Member
Licensed User
Longtime User
Hi Erel, no, it's a normal mobile number, 087xxxxxxx, but when you change it to 0035387xxxxxxx it works, I have been playing the the intent methods and get the same results, android.intent.action.CALL.

It's really strange.
 
Upvote 0

Jmu5667

Well-Known Member
Licensed User
Longtime User
Just tried that, I'm not getting any unfiltered log data, I have seen this before on other devices we have tested on. I use wireless connection to devices.
 
Last edited:
Upvote 0

Jmu5667

Well-Known Member
Licensed User
Longtime User
If anyone else reads this post please try this on your device(if you have time) and post the results here with Make/Model and OS version.

Many thanks.
 
Upvote 0

KMatle

Expert
Licensed User
Longtime User
Could you make a small Test-APK with your code (one Edittext to enter the number)? I would test that here in Germany with 4.4, 4.3 and 4.2. (with 0049171xxx vs. 0171xxx)

If found some funny reports about the internal behaviour of the dialers in some countries. Perhaps this is in relation to the internal country-code of the Android build (perhaps it is UK?)

https://code.google.com/p/android/issues/detail?id=23798
 
Upvote 0

Jmu5667

Well-Known Member
Licensed User
Longtime User
Hi Klaus

I have made a simple app that has 2 phone inputs (save you typing), I have also included the source. I look forward to hearing the results from you, and anyone else please take part in this as I believe it will benefit the greater good of the B4A community.
 

Attachments

  • test_phone_dial.apk
    129.6 KB · Views: 150
  • test_phone_dial.zip
    7.9 KB · Views: 148
Upvote 0

KMatle

Expert
Licensed User
Longtime User
I've done a quick check with the apk on my S4 Kitkat 4.4:

Question: What is the difference (logic) between local and international in your app?

Anyway. Both fields work as expected (dialer comes up and starts the call at once).

I've testet with a mobile number and a landline (both with and without country code 0049 for Germany) in both fields.

All numbers used (in both fields!)

0223756xxxxx (landline)
0049223756xxxxx and +49223756xxxxx(same but int.)
017716xxxxx (mobile)
004917716xxxxx and +4917716xxxxx (same but int.)

I will try 4.3 and 4.2 the next days but I don't know if this makes a difference.
 
Upvote 0

Jmu5667

Well-Known Member
Licensed User
Longtime User
Hi Klaus

There is no difference between the dial buttons, it's just for easy of use to save you having to edit a single field. I have the issue on 4.1.2 with the local (non international) number. I have ordered some phones on eBay with older versions of Android, need them for testing anyway. It's a shame there is not a section in the forms for capturing this kind of information, a Knowledge base would be great (Erel ;)).

Thanks for being involved Klaus.

Regards

John.
 
Upvote 0
Top