BitmapFactory decodeByteArray RGB565 format

by » Thu, 06 Aug 2009 14:27:42 GMT

Sponsored Links
 In a byte[], I am having the image data of a RGB565 image(no header,
only image content)

I used the decodeByteArray with Bitmap.Options as RGB565 decoder.

But the decoding process failed.

Am I missing anything?

Other Threads

1. DatabaseObjectNotClosedException When Using ContentProvider


I am getting an
'android.database.sqlite.DatabaseObjectNotClosedException'.  I am
using a ContentProvider that I wrote following the standard method to
write such a provider which accesses a SQLite database.  I do not
'close' the cursor or database object in the ContentProvider.  Should
I be closing these objects inside of the ContentProvider for example
at the end of the query method?  Or should I be closing these objects
in the code that is using the ContentProvider?



2. Widget problems after application update.

Application has widget which basically shows the number of new message
count in the widget. Widget has title and Count.When application gets
updated, widget title gets replaced with message count, and some times
it shows problem loading widget. seems like R value not updated after
app update. However user removes the application or reboot the phone
widget icon shows properly. Is there any way to fix the issue?

Any suggestions.Here is the sample code

 public void onReceive(Context context, Intent intent) {

                String action = intent.getAction();

                if( AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action) ) {
                    int layoutID = R.layout.WidgetLayout;
                    int[] ids =
intent.getIntArrayExtra( AppWidgetManager.EXTRA_APPWIDGET_IDS );

                    for (int i=0; i<ids.length; i++)
                       int appWidgetId = ids[i];

                       RemoteViews views = new 
layoutID );
                       AppWidgetManager manager =
AppWidgetManager.getInstance( context );
                       manager.updateAppWidget(appWidgetId, views);



3. InstantiationException when starting IntentService

4. Encrypt with Android using AES, decrypt with PHP...

5. filenotfoundexception on http get and post. just device. emu works

6. Instal hampir semua program ke SD card tanpa root (2.2)

7. FileNotFound Exception on Device not Emulator using URLConnection