XverhelstX Well-Known Member Licensed User Longtime User Jul 19, 2012 #1 Hello, I'm retrieving a java.lang.NoSuchMethodError: android.widget.ImageView.getX at com.rootsoft.engine.ImageViewAccessor.getValues(ImageViewAccessor.java:25) Click to expand... when calling a method from a library i'm making. I need to register an imageview in my library B4X: /** * Registers an ImageView */ public void registerImageViewAccessor() { Tween.registerAccessor(ImageView.class, new ImageViewAccessor()); } and next I need to give an instance of an ImageView with a parameter B4X: 'Create the tween. Tween.To(ivObject, Constants.POSITION_XY, 1) B4X: public void To(ImageViewWrapper target, int tweenType, float duration) { tween = Tween.to(target.getObject(), tweenType, duration); } Any idea why i receive this method, while it should exists? This makes me also wondering if i need ImageView or ImageViewWrapper if i need to interract with objects from Basic4Android Tomas Last edited: Jul 19, 2012
Hello, I'm retrieving a java.lang.NoSuchMethodError: android.widget.ImageView.getX at com.rootsoft.engine.ImageViewAccessor.getValues(ImageViewAccessor.java:25) Click to expand... when calling a method from a library i'm making. I need to register an imageview in my library B4X: /** * Registers an ImageView */ public void registerImageViewAccessor() { Tween.registerAccessor(ImageView.class, new ImageViewAccessor()); } and next I need to give an instance of an ImageView with a parameter B4X: 'Create the tween. Tween.To(ivObject, Constants.POSITION_XY, 1) B4X: public void To(ImageViewWrapper target, int tweenType, float duration) { tween = Tween.to(target.getObject(), tweenType, duration); } Any idea why i receive this method, while it should exists? This makes me also wondering if i need ImageView or ImageViewWrapper if i need to interract with objects from Basic4Android Tomas