In code :

getResources().getString(R.string.resourceName);

In xml :

@string/resourceName