Android Question SlidingMenu.AddItem ERROR

Imad71

Member
Hello;
I have used an SlidingMenu As SlidingMenuStd

getting error and the run process will shutdown at following line:-
SlidingMenu.AddItem("Item 1", LoadBitmap(File.DirAssets, "image.png"), 1)

the image file has been in "File" Folder and sync with FileManager tab in IDE


any help please
regards
 

DonManfred

Expert
Licensed User
I have used an SlidingMenu As SlidingMenuStd
The relevant answer there is
Don't use any other sliding drawer than B4XDrawer.
 
Upvote 0

Imad71

Member
Hello;
I have used an SlidingMenu As SlidingMenuStd

getting error and the run process will shutdown at following line:-
SlidingMenu.AddItem("Item 1", LoadBitmap(File.DirAssets, "image.png"), 1)
As following:-

#####################################################################
** Activity (main) Create, isFirst = true **
java.lang.NoSuchMethodError: No virtual method AddTwoLinesAndBitmap2(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/Bitmap;Ljava/lang/Object;)V in class Lanywheresoftware/b4a/objects/ListViewWrapper; or its super classes (declaration of 'anywheresoftware.b4a.objects.ListViewWrapper' appears in /data/app/com.simplysoftware.slidingmenustandard-phj_H7z7ctCgUEzpLKsFOg==/base.apk)
.
.

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object anywheresoftware.b4a.objects.ActivityWrapper.getObject()' on a null object reference
.
.
####################################################################

the image file has been in "File" Folder and sync with FileManager tab in IDE


i try to use the standard one:
SlidingMenu as slidingmenuWrappe

but also get error as follow:
#########################
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/view/ViewConfigurationCompat;
.
.
.
###############################################





any help please
regards




 
Upvote 0

Imad71

Member
Upvote 0
Top