开发者

How to delete files from DDMS by programmatically?

开发者 https://www.devze.com 2023-04-08 20:27 出处:网络
I\'ve listed the File from DDMS using final String[] files = fileList(); lv = (ListView)findViewById(R.id.list);

I've listed the File from DDMS using

        final String[] files = fileList();
    lv = (ListView)findViewById(R.id.list);
    lv.setC开发者_Go百科hoiceMode(ListView.CHOICE_MODE_MULTIPLE);
    lv.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_multiple_choice, files));

Now, i'm in need to delete a particular file from this list. I've a method on Button for to this deleting process delete_Click(View view) Can anyone know how to do this with this method(). Thanks in Advance.


There is a problem of multiple choice.

You have to look at this

Click here

0

精彩评论

暂无评论...
验证码 换一张
取 消