NullPointerException while working with GestureDetector
问题 Below is the code of loading frameanimation for two different images on the occurrence of different events.First event is while the activity start.Others are the onTouch() where i making use of GestureDetector for the onDown() and onScroll() The problem is that i get NullPointerException while its in the OnScroll() .I found that it is not getting the Y coordinates what can be the issue. package com.example.animationtry; import android.os.Bundle; import android.app.Activity; import android