添加新的键盘apk并设置为默认键盘
来源:互联网 发布:淘宝衣服尺码对照表 编辑:程序博客网 时间:2024/05/01 03:00
1.将新的键盘apk push到system/app
2.修改com.android.provision包中的DdfaultActivity.java文件
private void settingLargeSysFont() {
try {
Configuration mCurConfig = new Configuration();
try {
mCurConfig.updateFrom(ActivityManagerNative.getDefault().getConfiguration());
} catch (RemoteException re) {
/* ignore */
}
int i = SystemProperties.getInt("ro.default.size",100);
mCurConfig.fontScale=(i*0.01f);
ActivityManagerNative.getDefault().updatePersistentConfiguration(mCurConfig);
} catch (RemoteException re) {
/* ignore */
}
//lsd add
//InputMethodManager mImm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
IInputMethodManager mImm = IInputMethodManager.Stub.asInterface(ServiceManager.getService("input_method"));
String temp1= "com.x2android.ArabicSKeyboard/.ArabicSoftKeyboard";
//String temp2 = "com.googlecode.tcimeforpk/.ZhuyinIME";
try{
if(isInputMethodlist(temp1))
{
mImm.setInputMethodEnabled(temp1, true);
mImm.setInputMethodAndSubtype(null ,temp1, null);
}
/*
if(isInputMethodlist(temp2))
mImm.setInputMethodEnabled(temp2, true);
*/
}
catch (RemoteException e) {
System.err.println(e.toString());
return;
}
//mImm.setInputMethodEnabled(temp, true);
//android.util.Log.d("lsd", temp);
}
- 添加新的键盘apk并设置为默认键盘
- WIN8.1添加中文美式键盘并改成默认输入
- android 设置默认切换键盘
- android 设置默认切换键盘
- textView 弹出键盘上面添加完成按钮,并设置输入内容的格式。
- 键盘的相关设置
- 虚拟键盘的设置
- 键盘的相关设置
- 键盘风格 及设置键盘的inputView
- Android EditText 设置默认键盘类型
- 新键盘
- Android 系统添加输入法并设置为默认输入法
- Android如何添加3G的APN并设置为默认APN
- 设置窗体响应键盘的优先级设为最高
- C# winform 为按钮添加键盘快捷键
- html5获取键盘并设置触发事件,通过指定键添加事件
- 键盘设置
- 键盘设置
- hdu - 4268 - Alice and Bob
- Ubuntu 12.10设置root用户登录图形界面
- 什么叫网关的精解
- C++的两种构造函数
- 动态SQL与绑定变量
- 添加新的键盘apk并设置为默认键盘
- Tomcat启动报Error listenerStart错误
- ORA-12154: TNS: 无法解析指定的连接标识符
- Android联系人读取操作笔记
- BW370 Study Note
- 最具创新力公司50强:耐克居首
- “马主任吗?去机场的车来了没有?
- Android 获取通讯录联系人信息(上)
- FFMPEG解码流程