Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 91

KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
04/10/14 09:32 AM (10 years ago)

Animated Circle Menu Plugin Crash

The Animated Circle Menu Plugin Crashes when you touch the center button on my Android app, why is that? LogCat: 04-10 17:22:24.215: E/AndroidRuntime(23470): FATAL EXCEPTION: main 04-10 17:22:24.215: E/AndroidRuntime(23470): java.lang.NullPointerException 04-10 17:22:24.215: E/AndroidRuntime(23470): at com.testtools.CR_animated_circlemenu$3.onAnimationEnd(CR_animated_circlemenu.java:272) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.animation.Animation.fireAnimationEnd(Animation.java:920) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.animation.Animation.getTransformation(Animation.java:878) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.animation.Animation.getTransformation(Animation.java:940) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.animation.AnimationSet.getTransformation(AnimationSet.java:384) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.animation.Animation.getTransformation(Animation.java:940) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.View.drawAnimation(View.java:13258) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.View.draw(View.java:13397) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewGroup.drawChild(ViewGroup.java:3169) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3039) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.View.draw(View.java:13762) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.View.draw(View.java:13643) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewGroup.drawChild(ViewGroup.java:3169) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3039) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.View.draw(View.java:13762) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.View.draw(View.java:13643) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewGroup.drawChild(ViewGroup.java:3169) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3039) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.View.draw(View.java:13762) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.widget.FrameLayout.draw(FrameLayout.java:467) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.View.draw(View.java:13643) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewGroup.drawChild(ViewGroup.java:3169) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3039) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.View.draw(View.java:13762) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.widget.FrameLayout.draw(FrameLayout.java:467) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.View.draw(View.java:13643) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewGroup.drawChild(ViewGroup.java:3169) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3039) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.View.draw(View.java:13641) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewGroup.drawChild(ViewGroup.java:3169) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3039) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.View.draw(View.java:13762) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.widget.FrameLayout.draw(FrameLayout.java:467) 04-10 17:22:24.215: E/AndroidRuntime(23470): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2396) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2384) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewRootImpl.draw(ViewRootImpl.java:2277) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2145) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1956) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1112) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4472) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.Choreographer.doCallbacks(Choreographer.java:555) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.Choreographer.doFrame(Choreographer.java:525) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.os.Handler.handleCallback(Handler.java:615) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.os.Handler.dispatchMessage(Handler.java:92) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.os.Looper.loop(Looper.java:137) 04-10 17:22:24.215: E/AndroidRuntime(23470): at android.app.ActivityThread.main(ActivityThread.java:4898) 04-10 17:22:24.215: E/AndroidRuntime(23470): at java.lang.reflect.Method.invokeNative(Native Method) 04-10 17:22:24.215: E/AndroidRuntime(23470): at java.lang.reflect.Method.invoke(Method.java:511) 04-10 17:22:24.215: E/AndroidRuntime(23470): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006) 04-10 17:22:24.215: E/AndroidRuntime(23470): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773) 04-10 17:22:24.215: E/AndroidRuntime(23470): at dalvik.system.NativeStart.main(Native Method)
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/11/14 08:08 PM (10 years ago)
Kennedy - thanks for sending me your project so I could take a look. Turned out the problem was related to the fact that you hadn't specified any images for the buttons. It was trying to reference an image and couldn't find one named "". I just uploaded an update to the plugin to address this. It now randomly chooses one of the 10 stock button images included with the project.
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
04/12/14 02:01 AM (10 years ago)
Thanks chris that was great, now what code do I use to keep the plugin in Portrait, that is, Preventing landscape rotation?
 

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.