Tima
Tima

Reputation: 12905

Get string value in Android

There are some string resources in my android application and some helper-classes, which are only java-classes (no android classes).

Is it possible to get string value of string resource variable from an java class?!

Mur

Upvotes: 0

Views: 752

Answers (1)

DavGin
DavGin

Reputation: 8355

You need a Context to access any resource string value. It can be either an activity context or the Application context.

Upvotes: 1

Related Questions