May be a very silly but i am not able to figured it out.
requirement is to print Malayalam text.. I am able to achieve in following way.
class MainActivity extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
JSONObject j = new JSONObject();
TextView tv=(TextView) findViewById(R.id.textview);
j.put("contain", "മലയാളം");
tv.setText(j.getString("contain"));
}
}
the above is working great..but if I am trying as below the text view prints only question marks like --> "?????"
public class Language_Mapping{
String appName = "മലയാളം";
public String get_Data(){
return appName;
}
}
class MainActivity extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
Language_Mapping obj = new Language_Mapping();
TextView tv=(TextView) findViewById(R.id.textview);
tv.setText(obj.get_Data());
}
}
Why??