Skip to content
Advertisement

Tag: android-button

Why variable gets reset on button click(s) in Android?

Can someone help me to understand what is happening here? Have been trying to debug, but feel like stuck! I am trying to animate some online images in my Android app using the following method. When I call this method in OnCreate, animation works fine. However, when I call this method in OnClickButton Listener, variable myImages size (before public void

Advertisement