--- android/Side9/src/dk/thoerup/side9/ImageAdapter.java 2010/06/26 08:04:20 911 +++ android/Side9/src/dk/thoerup/side9/ImageAdapter.java 2010/06/26 08:21:22 912 @@ -12,6 +12,7 @@ import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.ImageView; +import android.widget.Toast; public class ImageAdapter extends BaseAdapter { //int mGalleryItemBackground; @@ -25,7 +26,15 @@ String path = Environment.getExternalStorageDirectory().getPath() + "/Side9" ; + + File root = new File(path); + + if (root.exists() == false) { + Toast.makeText(mContext, "Side9 folder not found on sdcard", Toast.LENGTH_LONG).show(); + return; + } + File files[] = root.listFiles(); for (File f : files) { Bitmap bmp = BitmapFactory.decodeFile( f.getPath() );