for some reason i cant get the string that are inside the strings.xml. this is my code:
public class SDK_Referrer extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
String srt = context.getResources().getString(R.string.master);
its not recognising the "master" string. when i check for what options i get in R.string... i get things like R.string.copy, or R.string.cancel, or R.string.ok... and not the strings that i have in the xml file. why is that?
You might be import
ing android.R
instead the one from your own app;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With