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. Handling Orientation Changes in AppWidgets

We have created an AppWidget that takes user inputted text into an
EditText and displays a calculated amount of text inside a TextView on
the Home Screen. We calculate the amount of text based on the
AppWidgetInfo.minWidth, minHeight attributes. We do this to simulate
scrolling; we cut up the user-inputted text into chunks that will fit
into the widget and swap them based on button clicks.

When we save the widget with the device in Landscape mode, it
calculates the appropriate amount of text for Landscape mode and
displays it in the widget. The problem is when the user changes
orientation of the device to Portrait mode (without opening the widget
and resaving the text), the calculated amount of text for Landscape
mode is still displayed. This also happens in the vice versa case (the
user is in Portrait and saves, etc.)

How can we tell our AppWidget to recalculate the amount of text
displayed on screen orientation change? Is this possible? How would
you solve this problem?


2. Building app outside android source tree

I'd like to have a separate android project outside the android source
tree for my application but would like to be included as part of the
android platform build. The idea is to replace the built-in contacts
app with my custom contacts application which is outside the android
src tree.

When I try to build my app outside using the "mm" function, it gives
this error

"Couldn't locate the top of the tree.  Try setting TOP."

Anyway to fix this issue? or any other suggestions on how to build
application outside the android src tree (I dont want to use eclipse
though) ?


unsubscribe: android-porting+unsubscr...@googlegroups.com

3. Overclock milestone ke 1200 Mhz

4. Fwd: [WTA] Desire Virgin

5. (JUAL RUGI) Perdana XL Internet Unlimited 150rb/bulan brand new

6. rooting eris

7. Android Camera Flash in 1.5 and 1.6 Please Help