Code example for ViewFlipper

Methods: startFlipping

    public void pause(View v){
    public void play(View v){
    private Bitmap decodeUri(Uri selectedImage) throws FileNotFoundException {
        // Decode image size 
        BitmapFactory.Options o = new BitmapFactory.Options();
        o.inJustDecodeBounds = true;
        //Open an input stream from the content resolver and passing as parameter the uri with the image 
        BitmapFactory.decodeStream(getContentResolver().openInputStream(selectedImage), null, o);
        // The new size we want to scale to 
        final int REQUIRED_SIZE = 140;
        // Find the correct scale value. It should be the power of 2. 
        int width_tmp = o.outWidth, height_tmp = o.outHeight;