Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - How to get Images from SDCard and display them on the screen

How to get Images from SDCard and display them on the screen

All your problems with Audio, Video and Images.

How to get Images from SDCard and display them on the screen

Postby goelsvaibhav » Fri Oct 31, 2008 9:11 am

Hi,

I am able to access image files from the sdcard i.e their path and names.

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. private void fill(File[] files) {
  2.  
  3.          this.directoryEntries.clear();
  4.  
  5.          int j=0;
  6.  
  7.          for (File file : files) {
  8.  
  9.                         for (int i = 0; i < imageTypes.length; i++) {
  10.  
  11.                                 if (file.getName().endsWith(imageTypes[i])) {
  12.  
  13.                                         this.directoryEntries.add(file.getPath());
  14.  
  15.                                         try{FileInputStream is = new FileInputStream(new File(file.getAbsolutePath()));
  16.  
  17.                                         BufferedInputStream bis = new BufferedInputStream(is);
  18.  
  19.                                         mThumbIds[j] = BitmapFactory.decodeStream(is);
  20.  
  21.                                         bis.close();
  22.  
  23.                                         is.close();
  24.  
  25.                                         j++;
  26.  
  27.                                 }catch (Exception e) {
  28.  
  29.                                                 Log.e("Log", e.toString());
  30.  
  31.                                         }*/
  32.  
  33.                                 }
  34.  
  35.                         }
  36.  
  37.                 }
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
goelsvaibhav
Junior Developer
Junior Developer
 
Posts: 19
Joined: Fri Oct 17, 2008 7:07 am
Location: Gurgaon, India

Top

Solved

Postby goelsvaibhav » Tue Nov 11, 2008 7:03 am

Hi,

I have figured out the problem with the help of a post by plusminus (http://www.anddev.org/gallery_with_remo ... -t769.html) .....
Thanks plusminus

Regards
Vaibhav
goelsvaibhav
Junior Developer
Junior Developer
 
Posts: 19
Joined: Fri Oct 17, 2008 7:07 am
Location: Gurgaon, India

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 5 guests