B4A Library AutoCompleteContactTextView V1.0.0

This is a wrapper for this Github project

It is an autoCompleteEditText which will search your Contacts on the Device to give you
email, phonenumber or address.

AutoCompleteContactTextView
Author:
DonManfred / Manfred Ssykor
Version: 1
  • AutoCompleteContactTextView
    Events:
    • onDismiss ( As )
    • onItemClicked (v As Object, position As Int, id As Long)
    • onItemSelected (v As Object, position As Int, id As Long)
    • onNothingSelected ( As )
    • onfocuschange (v As Object, focused As Boolean)
    Fields:
    • ba As BA
    Methods:
    • AddToParent (Parent As ViewGroup, left As Int, top As Int, width As Int, height As Int)
    • BringToFront
    • DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
    • Initialize (EventName As String)
    • Invalidate
    • Invalidate2 (arg0 As Rect)
    • Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • IsInitialized As Boolean
    • RemoveView
    • RequestFocus As Boolean
    • SendToBack
    • SetBackgroundImage (arg0 As Bitmap)
    • SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
    • SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
    • SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
    • clear
    • isDisplayPhoto As Boolean
    • isSomeoneSelected As Boolean
    Permissions:
    • android.permission.READ_CONTACTS
    Properties:
    • Background As Drawable
    • Color As Int [write only]
    • ColorData As Int
    • ColorName As Int
    • DisplayPhoto As Boolean [write only]
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • ReturnPattern As String
    • SelectedData As String [read only]
    • SelectedName As String [read only]
    • SelectedPicture As Bitmap [read only]
    • Tag As Object
    • Text As String
    • Top As Int
    • Type As String
    • Visible As Boolean
    • Width As Int

Please note that the lib will add android.permission.READ_CONTACTS to the permissions.

This library is Donationware. You can download the library, you can test the library. But if you want to USE the library in your App you need to Donate for it.
Please click here to donate (You can donate any amount you want to donate for the library (or my work) :)
 

Attachments

  • AutocompleteContactTextViewEx.zip
    14.4 KB · Views: 500
  • libAutocompleteContactTextViewV1.0.0.zip
    24.3 KB · Views: 488
Last edited:

jahswant

Well-Known Member
Licensed User
Longtime User
i just testedthe lib this morning and i'm getting this.
B4X:
** Activity (main) Resume **


** Activity (main) Pause, UserClosed = false **


** Activity (main) Create, isFirst = true **


java.lang.RuntimeException: java.lang.reflect.InvocationTargetException


    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:166)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:208)
    at b4a.example.main._activity_create(main.java:372)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
    at b4a.example.main.afterFirstLayout(main.java:100)
    at b4a.example.main.access$100(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:78)
    at android.os.Handler.handleCallback(Handler.java:605)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4517)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)


    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:54)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:158)
    ... 17 more
Caused by: java.lang.NoClassDefFoundError: de.donmanfred.AutoCompleteContactTextViewWrapper$3
    at de.donmanfred.AutoCompleteContactTextViewWrapper._initialize(AutoCompleteContactTextViewWrapper.java:109)
    ... 21 more
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
 

DonManfred

Expert
Licensed User
Longtime User
Did you tried the example or did you used it in your app?
Do the folder Resources exists in the example-project-folder?
 

swamisantosh

Member
Licensed User
Longtime User
when i enter text in AutoCompleteContactTextView it does not populate the listview

when i run the app it display the textbox when i enter the data there is no display CONTACTS
 
Top