String ext = file.toString();
String sub_ext = ext.substring(ext.lastIndexOf(".") + 1);

if (sub_ext.equalsIgnoreCase("png") ||
    					   sub_ext.equalsIgnoreCase("jpg") ||
    					   sub_ext.equalsIgnoreCase("jpeg")|| 
    					   sub_ext.equalsIgnoreCase("gif") ||
    					   sub_ext.equalsIgnoreCase("tiff")) {
    				
    				if(thumbnail_flag && file.length() != 0) {
					
					
					setImageDrawable
					
dans main a la ligne 320
					
					Intent picIntent = new Intent();
			    		picIntent.setAction(android.content.Intent.ACTION_VIEW);
			    		picIntent.setDataAndType(Uri.fromFile(file), "image/*");
			    		startActivity(picIntent);
						
						
						http://android-er.blogspot.fr/2012/07/gridview-loading-photos-from-sd-card.html
						
						http://www.androidbegin.com/tutorial/android-viewpager-gallery-images-and-texts-tutorial/
						
						http://www.tutorialspoint.com/android/android_imageswitcher.htm
						
						
						Left-right arrow indicators over a ViewPager
						
						 want to show left and right arrows over my ViewPager, to indicate swiping.

I added two ImageButtons over the ViewPager-element but those areas then block the ViewPager from triggering the "swiping".

I also want presses on those arrows to trigger the fragment to change accordingly.

http://stackoverflow.com/questions/25157067/left-right-arrow-indicators-over-a-viewpager

http://parasvalera.blogspot.fr/2014/01/image-sw-i-pe-and-zoom-inout-demo.html

http://sunil-android.blogspot.fr/2013/06/view-pager-in-android.html


http://sampleprogramz.com/android/zoomcontrols.php

http://ramsandroid4all.blogspot.fr/2014/03/gallery-using-viewpager-example-in.html

http://android-er.blogspot.fr/2012/07/implement-gallery-like.html

http://javapapers.com/android/android-image-slider-tutorial/

http://www.madeinandroid.net/2015/01/zoom-controls-for-android.html

http://vmustafayev4en.blogspot.fr/2011/12/android-imageview-zoom-in-zoom-out.html


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    >
    <android.support.v4.view.ViewPager
        android:id="@+id/mypages"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:adjustViewBounds="true"
        android:layout_weight="1"
    />
    <LinearLayout
        android:layout_height="50dp"
        android:layout_width="match_parent"
        android:background="#C799AA"
        >
        <ImageButton
                android:id="@+id/left_nav"
                android:layout_width="48dp"
                android:layout_height="48dp"
                android:layout_gravity="center_vertical|left"
                android:src="@drawable/ic_arrow_left" />
        <TextView
            android:id="@+id/positionTextView"
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"
            android:gravity="center"
            android:layout_weight="1"
            android:padding="5dp"
            android:layout_gravity="center_vertical"
            android:textColor="#000000"
            android:textSize="15sp"
            />
        <ImageButton
                android:id="@+id/right_nav"
                android:layout_width="48dp"
                android:layout_height="48dp"
                android:layout_gravity="center_vertical|right"
                android:src="@drawable/ic_arrow_right" />
    </LinearLayout>
</LinearLayout>





