NullPointerException that doesn't point to any line in my code
Solution 1:
Android will make an exception when you change the view hierarchy in animationEnd.
All you have to do is to postpone your call like this :
@Override
public void onAnimationEnd(Animation animation) {
new Handler().post(new Runnable() {
public void run() {
myLayout.removeView(simulateMovingImg);
}
});
}