|
发表于 2011-10-22 18:12:28
|
显示全部楼层
Re:Q
你做文件夹管理器是不需要root权限的,你加了root权限就相当于用户有了root。。。
有一个Listview的长按事件,代码如下 ArrayList<HashMap<String, Object>> list = FileHelper.convertCodeAndGetText(urlPath);
if(list.size() == 0 || list==null)
{
Toast.makeText(ProgrameActivity.this,"此频道暂无节目!", 2).show();
return ;
}
adapter = new SimpleAdapter(ProgrameActivity.this, list,R.layout.programe_item, new String[]
{ "time", "pr" },
new int[] { R.id.programeTime, R.id.programeName });
listView.setAdapter(adapter);
listView.setOnItemLongClickListener(new OnItemLongClickListener() {
public boolean onItemLongClick(AdapterView<?> parent, View view,int position, long
id) {
HashMap<String,String> map = (HashMap<String,String>)parent.getAdapter().getItem(position);
return true;
}
});
[/code]有些内容需要改变,有问题可以联系我,QQ454680816 |
|