Android Question bulk sms

ProjectGroup19

Active Member
Licensed User
All im trying to do is to integrate bulk sms and the list is a string of array of contacts

Eg.
i have (ArrayList) [[Ljava.lang.String;@6865cd2, [Ljava.lang.String;@3e9b1a3, [Ljava.lang.String;@5b27ca0]

B4X:
For Each bc As String In contact ' contact is the list
  ' poststring here
Log(bc)
Next

i tried this. i works but sends all the messages to only one contact ie. the last contact on the list.
 
Last edited:

ProjectGroup19

Active Member
Licensed User
Post the code that builds the list. It is wrong.


B4X:
Dim contact As List
    contact.Initialize
    Dim month As String=DateUtils.GetMonthName(DateTime.Now)
    Dim rs As ResultSet = Connection.DB.ExecQuery("SELECT DOB,CONTACT FROM MEMBERSHIP,ACCOUNT WHERE ACCOUNT.USERNAME=MEMBERSHIP.ACCOUNT")
    Do While rs.NextRow
    
        If DateUtils.GetMonthName( rs.GetString("DOB"))=month Then
    
    contact.Add(Array As String(rs.GetString("CONTACT")))
    
        End If
    Loop
    rs.Close
 
Upvote 0
Top