in my app I do a web request that returns some result code, e.g. 105. I have string resources that look like that
O.K.
Try as below, its working for me. Use parent.getApplicationContext() for you.
parent.getApplicationContext()
String str = getString(R.string.r)+resultCode; Toast.makeText(getApplicationContext(), str, Toast.LENGTH_LONG).show();