android - how to get string value using this code -


how string values using this,right return integer value.

 getapplicationcontext(),getresources().getidentifier("please_try_again_"+nativelocalesymbol, "string", getpackagename()); 

getidentifier returns resource identifier why int. using id can resource

 int resid = getapplicationcontext().getresources().getidentifier("please_try_again_"+nativelocalesymbol, "string", getpackagename());  getapplicationcontext().getresources().getstring(resid) 

Comments

Popular posts from this blog

html - Cut text on left side inside button while centering -

plugins - CodeIgniter support on netbeans 8.0 -

php - Selecting items from MySQL for a status update feed efficiently while accounting for possible spam -