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

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -