Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. File folder = new File(dir + "/");//contains anything from 1-20 pictures
  2. File[] allPics = folder.listFiles();
  3.  
  4. private Bitmap[] thumbnails;
  5. private String[] arrPath;
  6.  
  7. //load all the files into bitmaps to assign to my gridview adapter
  8. for (int i = 0; i < allPics.length; i++) {
  9. thumbnails[i] = BitmapFactory.decodeFile(allPics[i].getAbsolutePath());//where the exception is thrown
  10.  
  11. arrPath[i]= allPics[i].getAbsolutePath();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement