Chinaunix首页 | 论坛 | 博客
  • 博客访问: 822351
  • 博文数量: 244
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 2420
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-29 09:07
文章分类

全部博文(244)

文章存档

2011年(4)

2010年(3)

2009年(72)

2008年(119)

2007年(46)

我的朋友

分类: LINUX

2009-04-28 09:12:35

语言设置:
protected void onListItemClick(ListView l, View v, int position, long id) {
    try {
            IActivityManager am = ActivityManagerNative.getDefault();
            Configuration config = am.getConfiguration();
 
            Loc loc = mLocales[position];
            config.locale = loc.locale;
 
            // indicate this isn't some passing default - the user wants this remembered
            config.userSetLocale = true;
 
            am.updateConfiguration(config);
        } catch (RemoteException e) {
            // Intentionally left blank
        }
        finish();
    }
 
阅读(604) | 评论(0) | 转发(0) |
0

上一篇:窗口管理器

下一篇:JNI 机制分析

给主人留下些什么吧!~~