In my java class I want to use a string resource from strings.xml.
for that I have to use like below,
getString(R.string.address)
i
You can pass the context of the Activity class to the java class and access the resources.
From your Activity Class
Helper helper = new Helper(this);
Your Java class
public class Helper { Helper(Context c){ c.getString(R.string.address); } }