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

Discussion in 'Android Questions' started by Almog, Mar 28, 2018.

  1. Almog

    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):
    Code:
    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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice