Bitmaps (.bmp) don't show up in 'Pictures' when on SDCard

by Gav » Sun, 08 Mar 2009 00:13:15 GMT

Sponsored Links

For the purpose of testing I need to store some small (20x20px)
bitmaps on the SDCard of the emulator.

If I store the files in jpg format then media scanner picks them up
and I can view them with the stock 'Pictures' application.

When I use the '.bmp' file format as created via the JAI based tool I
am testing, the files do not show up on the phone, a look at the file
explorer shows the files to be there next to their jpg equivalents on
the SDCard under the folder pictures.

I mount the SDCard to add the files if it makes any difference.

I need the files to be lossless ARGB_8888 format, is there something
other than .bmp I can use?

Kind regards,


Bitmaps (.bmp) don't show up in 'Pictures' when on SDCard

by clark » Sun, 08 Mar 2009 01:35:57 GMT

 The .png file format employs lossless data compression.  You may give
that a try.  I even through a .png image onto my SD card and it shows
up within the Pictures application just fine.



Sponsored Links

Other Threads

1. Video Playback / h264 encoded videos

We convert videos using ffmpeg to downsize mp4 videos. The result is a
h264 encoded video that can be played on the iPhone, in Quicktime and
other media players but the Android.
If i simply convert the source video file via Quicktime the video can
be played but i can't see any reasons why the video converted via
ffmpeg is not playing on android devices.

To show the videos i use the standard media player library from
android ( which works mostly fine but not
here. As the converted video works on other (non-android) devices i
assume that this is an Android/Java problem.

Does anyone know what settings I have to use or what i have to change
to make it work with android handsets?

The converted video got the following media information :

Format                           : MPEG-4
Format profile                   : Base Media
Codec ID                         : isom
File size                        : 11.2 MiB
Duration                         : 2mn 33s
Overall bit rate                 : 611 Kbps
Encoded date                     : UTC 1970-01-01 00:00:00
Tagged date                      : UTC 1970-01-01 00:00:00
Writing application              : Lavf52.34.1

ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : basel...@l2.0
Format settings, CABAC           : No
Format settings, ReFrames        : 5 frames
Codec ID                         : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                         : 2mn 33s
Bit rate mode                    : Variable
Bit rate                         : 511 Kbps
Width                            : 320 pixels
Height                           : 240 pixels
Display aspect ratio             : 1.422
Original display aspect ratio    : 1.423
Frame rate mode                  : Constant
Frame rate                       : 25.000 fps
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.266
Stream size                      : 9.35 MiB (84%)
Language                         : English
Encoded date                     : UTC 1970-01-01 00:00:00
Tagged date                      : UTC 1970-01-01 00:00:00

ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format version                   : Version 4
Format profile                   : LC
Format settings, SBR             : No
Codec ID                         : 40
Duration                         : 2mn 33s
Bit rate mode                    : Variable
Bit rate                         : 96.0 Kbps
Channel(s)                       : 2 channels
Channel positions                : L R
Sampling rate                    : 44.1 KHz
Resolution                       : 16 bits
Stream size                      : 1.75 MiB (16%)
Language                         : English


Please let me know if more information are needed.

2. Who makes embedded hardware Android devices?

I'm playing around with an idea in the back of my head, was wondering
if there were any Android devices that had touchscreen and wifi - no
other requirements necessary.  The GiiNii Movit Mini is as close to
what I'm looking for as I can find.  Are there hardware vendors that
make custom Android products such as this?  Inexpensive, ARM or MIPS,
run Android, touchscreen, wifi, that's it.  Thanks.


3. AppWidgetProviderInfo documentation not found?

4. auto-repeat Buttons

5. Reloading our Activities State after firing Intent to camera

6. task affinity - what is it?

7. Developer review of all Android (Cupcake) devices - HTC vs. Samsung, test cases, etc.