Android Question [SOLVED]how multiple phone numbers choose automatically direct call

nso91191

Member
Licensed User
I want to do multi phone number in inputlist

i don't find any example source code in forum :(

B4X:
  Dim p As PhoneCalls
   StartActivity(p.Call("09253xxx, 0925xxxxx, 0925xxxx"))

incorrect code does not work:3

how to do that ... ? someone help me
 
Last edited:

DonManfred

Expert
Licensed User
Layout seems to be a listview (see listview tutorial)
The code you posted does not work, yes. you need to call just ONE number

B4X:
Dim PC1 As PhoneCalls
   StartActivity(PC1.Call("555123456"))
 
Upvote 0

nso91191

Member
Licensed User
umm :( i don't mean that i know it already call function

i need some popup user can choose call list :( see on it example pic

Thank you
Kind Regard
 
Upvote 0

nso91191

Member
Licensed User
Finally I got it Thank you

B4X:
Sub Call Button
   Dim im As InputMenu
   
   Dim L As List
   L.Initialize
   L.Add("0925xxxx")
   L.Add("0925xxxx")
   L.Add("0925xxxx")
   L.Add("0925xxxx")
   
   Dim result As Int
     result = im.Show(L,"Call")   

   If result = -3 Then
     ToastMessageShow("Nothing selected", False)
     Return
   End If
   
   Dim Selected As String
   Dim p As PhoneCalls
   StartActivity(p.Call("Selected"))
   Selected = L.Get(result)
   
   ToastMessageShow("You selected " & Selected, False)   
End Sub
 
Upvote 0
Top