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

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


Sponsored Links
 Hi,

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,

Gav
--~--~---------~--~----~------------~-------~--~----~



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.


~Clark



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Fetch data from android service to HTML

Hi,

I have developed one UPNP server application which is running
perfectly in android emulator. I am able to fetch the data from the
server to client in android. But how can I get the same data in a
normal HTML page. Means I want to develop an HTML with javascript that
fetch the content from android server application. Please guide me how
can I achieve this.

Regards,
Hari.

-- 

2. Voice Recording : OpenCore OSCL Scheduler

Hello,

We are seeing some strange problem during voice recording on GingerBread
with OpenCore MMF. The sequence Start -> Stop -> Start ->Stop ->Start ->
Stop doesn't work some times but Start ->Pause-> Stop -> Start ->Pause->Stop
->Start ->Pause->Stop always works.
The Log shows that AuthorDriver::enqueueCommand() function gets AUTHOR_QUIT
command from AuthorDriverWrapper::~AuthorDriverWrapper() function, waits on
semaphore during failure case. The AUTHOR_QUIT command which responsible for
AuthorDriver::handleQuit() StopScheduler() is not called when the command
AUTHOR_QUIT is enqueued. I thought this could be a timing issue and
inserting a delay may solve the issue but it doesn't. Why do we need a
special command to StopScheduler(), can't we handle this in AUTHOR_STOP
command function??

status_t AuthorDriver::enqueueCommand(author_command *ac, media_completion_f
comp, void *cookie)
{
    mQueueLock.unlock();
    // If we are in synchronous mode, wait for completion.
        if (whichcopy == AUTHOR_QUIT) {
         LOGV(" AUTHOR_QUIT command received "); // prints
         if (syncsemcopy) {
            // waits here indefinitely
            syncsemcopy->Wait();
            if (whichcopy == AUTHOR_QUIT) {
                syncsemcopy->Close();
                delete syncsemcopy;
                return 0;
            }
        }

command is passed from the below function

 AuthorDriverWrapper::~AuthorDriverWrapper()
{
        LOGV("Destructor");
                // now it is safe to quit.
        author_command *ac = new author_command(AUTHOR_QUIT);
        enqueueCommand(ac, NULL, NULL); // will wait on mSyncSem, signaled
by author thread
        delete ac; // have to delete this manually because CommandCompleted
won't be called
}

 Please send me your valuable suggestions on how to fix this issue.
 Thanks and regards,
-Lakshman

-- 

3. Ginger bread - NFC Card Emulation & p2p

4. Focus and raise keyboard for Dialog with EditText

5. Server Response

6. Multicast Support

7. Can't properly stop a thread