raw resources in worker thread

by Bob » Fri, 13 Mar 2009 13:35:45 GMT

Sponsored Links
How do I access raw resources in a worker thread?   I have been trying
to use Context.getResources but this seems to create some type of
handler error.


Other Threads

1. Why can't my update be installed by users?

I did an app called "Hello Yahoo" and today I made an update. But
users said it can't be installed because the package is not signed
correctly. And after that the old version can't even be uninstalled
because the device thinks it is uninstalled already...... I never
experience that, but it is reported by many users.

I do use a different keystore to sign it with the update. Is this the
case?  How can I fix this?

2. openGL colors

I'm writing some 3D rendering code, having started from the API demos
to get the SurfaceHolder and openGL initialization/refresh logic. The
actual rendering after that is not a problem.

However, it seems that openGL does not create a surface properly. You
can see the problem in the API demo. Both the GLSurfaceView and
Translucent GLSurfaceView demos use the same Cube class to draw the
mesh, and so have the same color. But the result on screen has
inverted color channels in the translucent case.

To make it obvious, change the colors in the Cube.java color array to
be 0x10000, 0, 0, 0x10000 on each line. In the non-translucent demo,
the cube will appear red. In the translucent demo, it will show blue.

If the format set on the SurfaceHolder does not match the one
requested from openGL, it's obvious the phone does not do any
conversion, and simply copies the bits to the surface. That's
expected, except there seems to be no way to define them to be the
same if we want better then 565 quality.

The non-translucent demo uses a RGB 565 format, whereas the
translucent one uses RGBA 8888. But it seems open GL creates a BGRA
8888 instead.

Am I missing a call somewhere to specify the channel order?


3. Dev Phone -- unable to see paid app on market

4. Is it a timer_settime runtine's problem ?

5. Why my gallery on real device behave so oddly?

6. How do you get the local time zone?

7. TERRIBLE BUG IN MARKET APPLICATION (was Paid apps related questions discussion list?)