if u jus need resources, have a static Context instance in ur launcher
activity to which u assign the getApplicationContext() in the onCreate
method. Now u hv access to ur app Context from any where in ur application.
"m not sure if this is the best method.
But this is wat i could think of..

On Fri, Jul 3, 2009 at 2:59 PM, Lex <[email protected]> wrote:

>
> Hi,
>
> I have a method in my ItemizedOverlay class which takes an object as a
> parameter and depending on it's certain values returns an appropriate
> icon. What's the best way to access the drawable resource from within
> ItemizedOverlay as you can't access it directly like in an activity?
> The only idea I have for now is to pass the resources as a second
> argument...
> >
>


-- 
Regards,
Sujay
Fred Allen <http://www.brainyquote.com/quotes/authors/f/fred_allen.html>  -
"California is a fine place to live - if you happen to be an orange."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to