开发者

Get string value in Android

开发者 https://www.devze.com 2023-01-21 12:39 出处:网络
There are some string resources in my android application and some helper-classes, which are only java-classes (no android classes).

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 st开发者_Go百科ring value of string resource variable from an java class?!

Mur


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

0

精彩评论

暂无评论...
验证码 换一张
取 消