Maybe create a new Resources object will work .
On May 5, 1:59 pm, Sheado <[email protected]> wrote:
> Thanks for the quick reply Yogini..
>
> unfortunately that doesn't work.. I'm trying to access the string
> resource from a static method:
>
> public static void blah()
> {
> getResources().getString() // doesn't work
>
> }
>
> I also tried Resources.getSystem().getString() with no luck.. but I
> guess I should've expected that.
>
> Any other suggestions?
>
> Thanks!
>
> On May 4, 10:40 pm, Yogini Pimpalgaonkar <[email protected]> wrote:
>
> > getResources().getString(R.string.unknown_num)
>
> > On Tue, May 5, 2009 at 11:06 AM, Sheado <[email protected]> wrote:
>
> > > hello,
>
> > > anybody know if there's anyway way I to access the String values of
> > > String resources statically?
> > > e.g. a static equivalent of Context.getString(...)?
>
> > > thanky in advance!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---