Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. public class Utility {
  2.  
  3. static File f1;
  4.  
  5. static String folder = null ;
  6.  
  7. Intent i;
  8. Intent intent ;
  9.  
  10. TextView textHeading1;
  11.  
  12. static File[] files;
  13. static File file ;
  14.  
  15. static List <String> it ;
  16.  
  17. public static List <String> getSD()
  18. {
  19. it = new ArrayList <String>();
  20. String string = "/mnt/sdcard/Pictures/Awesome/";
  21. f1 = new File (string+ CameraLauncherActivity.folder+ "/");
  22. files = f1.listFiles ();
  23.  
  24. for (int i = 0; i < files.length; i++)
  25. {
  26. file = files[i];
  27. Log.d("Count",file.getPath());
  28. it.add (file.getPath());
  29. }
  30. return it;
  31. }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement