When click a button then open a listview and at top is the edittext from sv
when click the button then stopped the programm.
not find my problem, need help
Sub NamenButton_Click
NamenList.Initialize
Namen.Initialize("Namen")
For i = 1 To Namen_ListeGross.Size-1
Dim PointsTempG() As String = Regex.Split(",",Namen_ListeGross.Get(i))
Namen.AddSingleLine(PointsTempG(2)&","&PointsTempG(0)&","&PointsTempG(1)&",")
NamenList.Add(PointsTempG(2))
Next
For i = 1 To Namen_ListeKlein.Size-1
Dim PointsTempK() As String = Regex.Split(",",Namen_ListeKlein.Get(i))
Namen.AddSingleLine(PointsTempK(2)&","&PointsTempK(0)&","&PointsTempK(1)&",")
NamenList.Add(PointsTempK(2))
Next
Activity.AddView(Namen, 0, 50dip, 100%x, 100%y-100dip)
ToastMessageShow(Namen.Size & " Flurnamen gefunden", True)
svN.Initialize(Me, "svN")
svN.AddToParent(Activity, 0, 0, 200dip, 300dip)
index=svN.SetItems(NamenList)
' svN.SetIndex(index,NamenList)
End Sub
Error occurred on line: 53 (searchview)
java.lang.RuntimeException: Object should first be initialized (ListView).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:49)
at anywheresoftware.b4a.objects.ListViewWrapper.Clear(ListViewWrapper.java:197)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:302)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
at anywheresoftware.b4a.objects.EditTextWrapper$1.afterTextChanged(EditTextWrapper.java:83)
at android.widget.TextView.sendAfterTextChanged(TextView.java:7626)
at android.widget.TextView.setText(TextView.java:3859)
at android.widget.TextView.setText(TextView.java:3708)
at android.widget.EditText.setText(EditText.java:81)
at android.widget.TextView.setText(TextView.java:3683)
at android.widget.TextView.setTransformationMethod(TextView.java:1755)
at android.widget.TextView.applySingleLine(TextView.java:7307)
at android.widget.TextView.setInputType(TextView.java:4075)
at anywheresoftware.b4a.objects.EditTextWrapper.setInputType(EditTextWrapper.java:174)
at com.Flurnamenkarte.Gemeinde.Kiens.searchview._initialize(searchview.java:85)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:305)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
at com.maximus.quickpopup.quickpopup$1.onItemClick(quickpopup.java:85)
at com.maximus.quickpopup.quickpopup$3.onClick(quickpopup.java:161)
at android.view.View.performClick(View.java:4463)
at android.view.View$PerformClick.run(View.java:18789)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5299)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
at dalvik.system.NativeStart.main(Native Method)