I created the file on the SD card using the following code:
File outputFile = new File( Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "test.jpg" ); outputFile.createNewFile(); OutputStream outputStream = new FileOutputStream( outputFile ); mBitmap.compress( Bitmap.CompressFormat.JPEG, 95, outputStream ); outputStream.flush(); outputStream.close ();
When I try to see how this file views the contents of the SD card through the Windows Explorer on my computer (the phone is connected via USB), all folders and files of the SD cards except my mine are displayed. Astro displays the file, but not as a thumbnail.
The strangest thing is that this happens only with one of my phones (Samsung Galaxy X phone), and if I restart this phone, the file is displayed both in Windows Explorer and as a thumbnail in Astro.
Could there be something wrong or not in the code that I wrote?
thanks
Carlos
source share