1、 singletask 不 singletask
转:http://blog.csdn.net/luoshengyang/article/details/6714543
2、点击EditText外部隐藏键盘
转:http://stackoverflow.com/questions/4828636/edittext-clear-focus-on-touch-outside
@Override
public boolean dispatchTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
View v = getCurrentFocus();
if ( v instanceof EditText) {
Rect outRect = new Rect();
v.getGlobalVisibleRect(outRect);
//v.getLocationInWindow(l);
//int left = l[0],
//top = l[1],
//bottom = top + v.getHeight(),
//right = left + v.getWidth();
if (!outRect.contains((int)event.getRawX(), (int)event.getRawY())) {
v.clearFocus();
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(v.getWindowToken(), 0);
}
}
}
return super.dispatchTouchEvent( event );
}
3、/etc/udev/rules.d/51-android.rules 设备号获取方法
:可以通过lsusb命令查看当前连接设备的idProduct
4、ubuntu搜狗输入法安装姿势
转:http://blog.csdn.net/qq_21792169/article/details/53152700