摘要:
代码如下:String cmd = "su -c reboot";//su -c reboot recovery//su -c reboot bootloader try { Runtime.getRuntime().exec(cmd); } catch (IOException e) { // TODO Auto-generated catch block ... 阅读全文
posted @ 2013-08-09 16:54
行云有影
阅读(253)
评论(0)
推荐(0)
摘要:
1、xml添加一个listview控件:composite--->ListView(id:listView1)2、初始化:private ListView listView;listView = (ListView) view.findViewById(R.id.listView);给ListView加入数据(适配器):File file = new File(sDir); final String[] m=file.list();ArrayAdapter adapter = new ArrayAdapter(this.getActivity(), android.R.layout.si 阅读全文
posted @ 2013-08-09 16:47
行云有影
阅读(312)
评论(0)
推荐(0)

浙公网安备 33010602011771号