2012年11月28日

摘要: StringADD_SHORTCUT_ACTION动作:在系统中添加一个快捷方式。."android.intent.action.ADD_SHORTCUT"StringALL_APPS_ACTION动作:列举所有可用的应用。输入:无。"android.intent.action.ALL_APPS"StringALTERNATIVE_CATEGORY类别:说明 activity 是用户正在浏览的数据的一个可选操作。"android.intent.category.ALTERNATIVE"StringANSWER_ACTION动作:处理拨 阅读全文
posted @ 2012-11-28 15:38 Binarys 阅读(198) 评论(0) 推荐(0) 编辑

2012年11月27日

摘要: ContentResolver resolver = mActivity.getAndroidContext().getContentResolver();String[] cols = {"_id","_data"};Cursor cursor=resolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, cols, "_data='"+name+"'", null, "_display_name");图片:Media 阅读全文
posted @ 2012-11-27 10:35 Binarys 阅读(286) 评论(0) 推荐(0) 编辑

2012年11月15日

摘要: String[] CMD = new String[3];CMD[0] ="/system/bin/sh"; CMD[1] = "-c";CMD[2] = "busybox cat /sys/test";Process proc = Runtime.getRuntime().exec(CMD); //执行linux命令DataInputStream dis =new DataInputStream(proc.getInputStream()); //返回之后命令后的数据String result = dis.readLine(); 阅读全文
posted @ 2012-11-15 14:31 Binarys 阅读(157) 评论(0) 推荐(0) 编辑

导航