flash rom

by fools » Wed, 21 Apr 2010 11:04:24 GMT

Sponsored Links
 gumpul yuk di cency saptu besok ada yang mau ikut tidak?


flash rom

by dantez » Wed, 21 Apr 2010 13:47:12 GMT

 wah, sory berat om...sabtu udah ada scheduled....


Sponsored Links

flash rom

by Phan Hauw » Thu, 22 Apr 2010 16:58:47 GMT

 Ikutan ah...., pengen blajar lg :)

han hauw-----Original Message-----
From: fools <kaa...@gmail.com>
Date: Tue, 20 Apr 2010 20:04:17 


Other Threads

1. How to loading images (assets or resources) dynamically?


How do I load the image dynamically through the code? If its unclear,
I mean, I want to load image files by name based on the condition in
the code.

If I use images as resources, the image names have to be hard coded.
This is unacceptable to me.
If I load image in a webview (with image src path dynamically), the
time it takes to load is unacceptable to me.

Can anyone suggest any other way to load the images dynamically?

Thanks much for any pointers,


2. Color Bug?

Hey all,

Before I submit this I just wanted to check it's not a java nuiance.

The Color class can be used to extract rgb values from a pixel (32 bit int).

I implemented a lookup table filter and used a byte to store each individual
r g & b value to save a bit of space.

Long story short;

    public void testColor(){

        int nr = (byte)0; // Simulation of lookup in array of byte values
representing individual bands
        int ng = (byte)0;
        int nb = (byte)0;
        int nc = Color.rgb(nr, ng, nb);


        nr = (byte)0;
        ng = (byte)137;
        nb = (byte)0;
        nc = Color.rgb(nr, ng, nb);

        assertEquals(nr,Color.red(nc));    // FAIL HERE

Failure in testColor:
junit.framework.AssertionFailedError: expected:<0> but was:<255>
    at uk.ac.ic.doc.gea05.miffed.os.ColorTest.testColor(ColorTest.java:44)

Any ideas?

137 is the magic number causing the error in my case, there may be more.




3. Daemon errors while debugging

4. UsbStorageActivity doesn't launch from Notification context menu

5. Widget(s) and Pending intent

6. is there alternative to SimpleCursorAdapter?

7. Not getting more than one GPS fix on Android 1.5 emulator