ViewFlipper not working in android app widget

I am trying to add view flipper in app widget. It has to simply flips between 2 images with swipe gestures. But nothing is getting displayed and its crashing. I have the code for the activity so I translated the similar for widget with appropriate changes. But somewhere, I am missing something. Please guide. Here is the code.public class WidgetFlipper extends AppWidgetProvider{ private static final int SWIPE_MIN_DISTANCE = 120; private static final int SWIPE_THRESHOLD_VELOCITY = 200; private ViewFlipper vf; private Context mContext;...Read more