Android Question CustomlistView error opening slidemenu

jalvarez

Member
Licensed User
Longtime User
Hi Everyone!

I'm using the slidemenu as a entry point for my app. from this menu I select some routines for logiin and this leads to open and populate a CustomListView with panels with imageviews, checkboxes and some other controls. The problem is that if I touch the button that shows the slidemenu, the next error is displayed:

Logger connected to: LGE LG-D280
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
ExecuteMemoryTable: SELECT distinct Supervisor FROM Supervisores
ExecuteMap: Select Tienda,Supervisor from Supervisores WHERE Supervisor = ?
ExecuteMap: Update Chklist Set Estatus= "1" Where Posix = "0"
No records found.
ExecuteMap: Update Chklist Set Estatus= "1" Where Posix = "1"
No records found.
ExecuteMap: Update Chklist Set Estatus= "1" Where Posix = "2"
No records found.
ExecuteMap: Update Chklist Set Estatus= "1" Where Posix = "3"
No records found.
ExecuteMap: Update Chklist Set Estatus= "1" Where Posix = "6"
No records found.
ExecuteMap: Update Chklist Set Estatus= "1" Where Posix = "7"
No records found.
ExecuteMap: Update Chklist Set Estatus= "1" Where Posix = "9"
No records found.
Error occurred on line: 238 (CustomListView)
java.lang.ClassCastException: android.view.ViewRootImpl cannot be cast to android.view.View
at de.amberhome.slidemenuexample.customlistview._getitemfromview(customlistview.java:68)
at de.amberhome.slidemenuexample.main._imageview11_click(main.java:1714)
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:710)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:167)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:163)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:78)
at android.view.View.performClick(View.java:4442)
at android.view.View$PerformClick.run(View.java:18473)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5103)
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:790)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
at dalvik.system.NativeStart.main(Native Method)

Could somebody help me to avoid this error please?; thanks.
 

Attachments

  • Milano.zip
    158.9 KB · Views: 227

jalvarez

Member
Licensed User
Longtime User
Thanks Erel,

I commented this instruction and I can now invoke the slidemenu without error. Problem solved.
Thanks again. I'm still waiting for client's money to buy B4i, (sometimes you cannot push the client's patience without risk of losing everything) They have money, but time as well.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…