原文地址:https://blog.csdn.net/MikoGodZd/article/details/50979653 在Android 编程中经常会用到uri转化为文件路径 下面是4.4后通过Uri获取路径以及文件名一种方法 public static String getRealFilePath( final Context context, final Uri uri ) { if ( null == uri ) return null; final String scheme = u
1.获取光标位置 int index = editText.getSelectionStart(); 2.在光标处插入字符 int index = editText.getSelectionStart(); Editable editable = editText.getText(); editable.insert(index, "aaaa"); 3.删除光标前字符 int index = editText.getSelectionStart(); Editable editable