开发者

How to show text in blackberry in other languages?

I want to show malayalam script in my application in blackberry 5.0.i tried with following code. but it shows text in english only.

      try {
         alphaSerifFamily = FontFamily.forName("BBAlpha Serif");
    } catch (ClassNotFoundException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } 

     Font appFont = alphaSerifFamily.getFont(Font.MALAYALAM_SCRIPT, 9, Ui.U开发者_高级运维NITS_pt); 
     setFont(appFont); 


Check the following links:

http://yamspog.wordpress.com/2009/08/30/how-to-use-resource-files-in-your-blackberry-app/

http://docs.blackberry.com/en/developers/deliverables/12002/Create_resource_file_for_BlackBerry_Application_655978_11.jsp

When done with creating the ressource files, use the following code to retrieve the KEY value:

public static ResourceBundle _res = ResourceBundle.getBundle(BUNDLE_ID, BUNDLE_NAME);
_res.getString(yourKey)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜