I am able to access image files from the sdcard i.e their path and names.
Using java Syntax Highlighting
- private void fill(File[] files) {
- this.directoryEntries.clear();
- int j=0;
- for (File file : files) {
- for (int i = 0; i < imageTypes.length; i++) {
- if (file.getName().endsWith(imageTypes[i])) {
- this.directoryEntries.add(file.getPath());
- try{FileInputStream is = new FileInputStream(new File(file.getAbsolutePath()));
- BufferedInputStream bis = new BufferedInputStream(is);
- mThumbIds[j] = BitmapFactory.decodeStream(is);
- bis.close();
- is.close();
- j++;
- }catch (Exception e) {
- Log.e("Log", e.toString());
- }*/
- }
- }
- }
Parsed in 0.013 seconds, using GeSHi 1.0.8.4
I dont know how to display these bitmaps in any of the layout formats
Plzzzz Help........
Thanks in advance
Vaibhav