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 - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -