![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
noob
文章平均质量分 72
csdn_meiyouid
这个作者很懒,什么都没留下…
展开
-
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 · 1541 阅读 · 1 评论 -
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 · 2810 阅读 · 1 评论 -
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 · 1638 阅读 · 0 评论