- 博客(3)
- 收藏
- 关注
原创 android各种格式文件的打开(代码)
public Intent getIntent(File file, String str) { Intent intent; Uri uri; intent = new Intent("android.intent.action.VIEW"); intent.addCategory("android.intent.category.DEFAULT"); i
2016-12-08 14:08:26 1614
原创 android私有存储目录下的文件如何让其他程序有权限打开
解决方法:1这段代码是关键:public void shell() { Process p; int status = -1; try { p = Runtime.getRuntime().exec("chmod 777 " + file); status = p.waitFor(); } catch (IOException
2016-11-30 10:42:29 2788 1
原创 Context-Menu.Android库的使用(修改显示位置)
这个库ios版可以直接调用系统api,android需要修改相关源码,我是修改为右下显示,解决方法:1.修改fragment_menu:LinearLayout android:id="@+id/wrapper_buttons" android:layout_width="wrap_content" android:layout_height="wrap_con
2016-11-30 10:20:37 1521 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人