Saturday, December 3, 2011

[android-developers] Re: getString in a class with no context <- Runtime Error Resource Not Found

public String getString(int Rid, Context passedContext){
Context masterContext = passedContext;
return (String)masterContext.getResources().getText(Rid);
}

Woo, finally got it! Thanks for all the help!

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

No comments:

Post a Comment