SDL in Android

by » Wed, 24 Nov 2010 03:13:15 GMT

Sponsored Links
 Can someone give me information on SDL framework used in Android?
Thanks in Advance.


Other Threads

1. Using bitmap data to copy pixels to a new bitmap

In ActionScript development, there are two classes, Bitmap, and
BitmapData. Bitmap uses information from BitmapData to create a
Bitmap. Is there an equivalent to BitmapData in the android API? I did
some digging and BitmapFactory seems to be the closest, however, I'm
facing problems with it.

I tried

Bitmap bitmap = BitmapFactory.decodeResource(getResources(),

As that was what I was seeing in most of the examples I came across,
but it is telling me that the method getResources is undefined. I'm
not really sure what is causing this as in another tutorial I did,
getResources didn't cause any problems.

I'm not looking to simply draw a bitmap to the screen, I want to copy
a section of the bitmap and place it on a new bitmap. In ActionScript,
the method is bitmapData.copyPixels(), and I'm looking for a similar
method in the Android API. The closest thing I could find was
copyPixelsToBuffer(), but I'm not really sure if that does what I
think it does.

Any help is greatly appreciated


2. Dynamic compound drawables in TextView are invisible


I have a ListActivity which contains elements inside a table layout,
looking something like this:
... (some more rows here)

Now I want to place an icon after the text in the TextView. This icon
may or may not be available depending on the input data, so I figured
the most optimal would be to show the icon as a compound drawable.
However, when doing this via code (setCompoundDrawables) the drawable
does not show up. If I do it via the UI editor it'll be there, on all
rows of course. I have a hunch that I need to re-layout the TextView
after changing compound drawables but neither requestLayout nor
invalidate solved it for me. I haven't tested this yet but slapping a
good old ImageView after the TextView will most likely do the trick.
If I DO have to re-layout the TextView and/or the TableView, will it
still be more optimal than the added view from an ImageView?

And oh, another question. Since this icon reduces the optimization
given by the "view holder" trick, are there any other ways of dealing
with list items which to some degree have dynamic number of visible


3. listing /data/data device's contents

4. Complete Guide Root, Update, ADB Recovery and JIT on Milestone

5. How to achieve ultra smooth OpenGL/ES animation

6. Split and join files

7. How to Put common header for entire application Like Android Market application