Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 91

S-George
Apple Fan
Profile
Posts: 111
Reg: Jan 18, 2012
location unknow...
4,460
11/05/13 05:12 PM (12 years ago)

Menu Image Advanced app crash when i tap on the header image.

Hi i was using on my android app menu with image, workt fine on all devices. just find out that there is a problem with galaxy s4 the Row Title overlap the Row Icon. so i try to use Menu Image Advanced have no over lap but the app crash when i tap on the header image. 11-06 01:354.342: E/AndroidRuntime(26975): FATAL EXCEPTION: main 11-06 01:38:54.342: E/AndroidRuntime(26975): java.lang.IllegalStateException: Could not find a method headerOnClick(View) in the activity class com.xxxxxxxxx.BT_activity_host for onClick handler on view class android.widget.ImageView with id 'headerImageView' 11-06 01:38:54.342: E/AndroidRuntime(26975): at android.view.View$1.onClick(View.java:3647) 11-06 01:38:54.342: E/AndroidRuntime(26975): at android.view.View.performClick(View.java:4162) 11-06 01:38:54.342: E/AndroidRuntime(26975): at android.view.View$PerformClick.run(View.java:17082) 11-06 01:38:54.342: E/AndroidRuntime(26975): at android.os.Handler.handleCallback(Handler.java:615) 11-06 01:38:54.342: E/AndroidRuntime(26975): at android.os.Handler.dispatchMessage(Handler.java:92) 11-06 01:38:54.342: E/AndroidRuntime(26975): at android.os.Looper.loop(Looper.java:137) 11-06 01:38:54.342: E/AndroidRuntime(26975): at android.app.ActivityThread.main(ActivityThread.java:4867) 11-06 01:38:54.342: E/AndroidRuntime(26975): at java.lang.reflect.Method.invokeNative(Native Method) 11-06 01:38:54.342: E/AndroidRuntime(26975): at java.lang.reflect.Method.invoke(Method.java:511) 11-06 01:38:54.342: E/AndroidRuntime(26975): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007) 11-06 01:38:54.342: E/AndroidRuntime(26975): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774) 11-06 01:38:54.342: E/AndroidRuntime(26975): at dalvik.system.NativeStart.main(Native Method) 11-06 01:38:54.342: E/AndroidRuntime(26975): Caused by: java.lang.NoSuchMethodException: headerOnClick [class android.view.View] 11-06 01:38:54.342: E/AndroidRuntime(26975): at java.lang.Class.getConstructorOrMethod(Class.java:460) 11-06 01:38:54.342: E/AndroidRuntime(26975): at java.lang.Class.getMethod(Class.java:915) 11-06 01:38:54.342: E/AndroidRuntime(26975): at android.view.View$1.onClick(View.java:3640) 11-06 01:38:54.342: E/AndroidRuntime(26975): ... 11 more 11-06 01:38:54.392: E/android.os.Debug(2013): !@Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error8:
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/05/13 11:07 PM (12 years ago)
I've seen the same issue… I think as a 'quick fix' of sorts, you can remove the line in the cr_menu_advanced.xml file that says: android:onClick="headerOnClick" And that might solve it. I haven't tested it out yet, but that's the call that leads to the crash. It's around line 24 or so in the "ImageView" description of the plugin layout file. Cheers! -- Smug
 
S-George
Apple Fan
Profile
Posts: 111
Reg: Jan 18, 2012
location unknow...
4,460
like
11/07/13 06:42 PM (12 years ago)
Yes that works fine. Thanks SmugWimp.
 

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.