Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 97

LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
09/17/13 03:45 PM (12 years ago)

Menu Image Advanced - Android v3 problem

Hey there, especially Chris ;-) One of my favourite plugins, the Menu Image Advanced, will not work on the new android. As soon as I click on a header, the app crashes. (Header Click is not activated). Here my log as it crashes: 09-18 00:33:19.853: D/AndroidRuntime(15143): Shutting down VM 09-18 00:33:19.853: W/dalvikvm(15143): threadid=1: thread exiting with uncaught exception (group=0x4157b2a0) 09-18 00:33:19.863: E/AndroidRuntime(15143): FATAL EXCEPTION: main 09-18 00:33:19.863: E/AndroidRuntime(15143): java.lang.IllegalStateException: Could not find a method headerOnClick(View) in the activity class com.fortbildungandroid.BT_activity_host for onClick handler on view class android.widget.ImageView with id 'headerImageView' 09-18 00:33:19.863: E/AndroidRuntime(15143): at android.view.View$1.onClick(View.java:3691) 09-18 00:33:19.863: E/AndroidRuntime(15143): at android.view.View.performClick(View.java:4232) 09-18 00:33:19.863: E/AndroidRuntime(15143): at android.view.View$PerformClick.run(View.java:17298) 09-18 00:33:19.863: E/AndroidRuntime(15143): at android.os.Handler.handleCallback(Handler.java:615) 09-18 00:33:19.863: E/AndroidRuntime(15143): at android.os.Handler.dispatchMessage(Handler.java:92) 09-18 00:33:19.863: E/AndroidRuntime(15143): at android.os.Looper.loop(Looper.java:137) 09-18 00:33:19.863: E/AndroidRuntime(15143): at android.app.ActivityThread.main(ActivityThread.java:4921) 09-18 00:33:19.863: E/AndroidRuntime(15143): at java.lang.reflect.Method.invokeNative(Native Method) 09-18 00:33:19.863: E/AndroidRuntime(15143): at java.lang.reflect.Method.invoke(Method.java:511) 09-18 00:33:19.863: E/AndroidRuntime(15143): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027) 09-18 00:33:19.863: E/AndroidRuntime(15143): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794) 09-18 00:33:19.863: E/AndroidRuntime(15143): at dalvik.system.NativeStart.main(Native Method) 09-18 00:33:19.863: E/AndroidRuntime(15143): Caused by: java.lang.NoSuchMethodException: headerOnClick [class android.view.View] 09-18 00:33:19.863: E/AndroidRuntime(15143): at java.lang.Class.getConstructorOrMethod(Class.java:460) 09-18 00:33:19.863: E/AndroidRuntime(15143): at java.lang.Class.getMethod(Class.java:915) 09-18 00:33:19.863: E/AndroidRuntime(15143): at android.view.View$1.onClick(View.java:3684) 09-18 00:33:19.863: E/AndroidRuntime(15143): ... 11 more I hope this is an easy fix, as my android App is almost ready to go.
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
09/18/13 01:12 PM (12 years ago)
Any thoughts on this? Somebody got this working?
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
09/20/13 06:29 PM (12 years ago)
same is happening to the normal menu with image now!! Susan, Chris, can you look into this? Sandeep issued this too, must be loads of people having this problems! Regards Leon
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
09/21/13 02:18 PM (12 years ago)
wooh, think I solved it. In the wb_screen_menuimage.xml I deleted the following: android:onClick="headerOnClick" Seems to work.
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
09/21/13 07:54 PM (12 years ago)
I just turned in an updated version with this correction in it. Thank you so much for finding the solution, @LeonG!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.