Android Question app crashed (using class-contactsutils provides read write access to the stored contacts)

Almog

Active Member
Licensed User
Hi Erel,

I tried to use the library you uploaded: https://www.b4x.com/android/forum/t...ad-write-access-to-the-stored-contacts.30824/

this is my code(activity_create):
B4X:
    If FirstTime Then
        Activity.LoadLayout("MAIN")
        cu.Initialize
    End If

    Dim FindCo As List
    FindCo.Initialize
    FindCo = cu.FindContactsByName("מקסים",False,False)
    For i = 0 To FindCo.Size - 1
        
        Label2.Text = Label2.Text & cu.GetNameFromId(FindCo.Get(i))
        Label2.Text = Label2.Text & CRLF
        
    Next

and when I runned the app on debug mode, the app crashed.


do you know what is the problem(I Checked line 114 and it was exact as in the project file you uploaded)?

Thanks in advance
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…