ANDROID编码以复制文件 [英] ANdroid coding to copy a file

查看:89
本文介绍了ANDROID编码以复制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一种编码,通过浏览卡中的文件将文件从一个文件夹复制到另一个文件夹,并选择一些所需的文件,然后按OK,它应该复制到另一个文件夹,该文件夹可以是某些名称下的新文件夹. ..

i need a coding to copy a file from one folder to another folder by browsing the files in the card and to select some needed files then on pressing ok it should copy to other folder that can be a new folder under some names ...

推荐答案

好,如果我正确理解,您必须:

1.列出SD卡文件夹中的可用文件
2.允许用户选择文件
3.允许他指定一个文件夹(这些选定的文件必须复制到的文件夹)
4.将它们复制到该文件夹​​中

您可以在
找到第1点的答案 http://stackoverflow.com/questions/4895104/file-browser-in-android [ ^ ]

接下来的两个步骤涉及处理UI事件.

最后一点的帮助可以从此链接中列出的参数中获取.
http://stackoverflow.com/questions/5715104/copy-files-from-a-folder-of-sd-card-into-another-folder-of-sd-card [
Ok, if I understood correctly you have to :

1. List up the available files in a folder of SD card
2. Allow the user to pick files
3. Allow him to specify a folder (to where these selected files have to be copied)
4. Copy them into that folder

You can find answer to point 1 at
http://stackoverflow.com/questions/4895104/file-browser-in-android[^]

The next two steps involves handling UI events.

The help for last point can derived from the arguments listed at this link
http://stackoverflow.com/questions/5715104/copy-files-from-a-folder-of-sd-card-into-another-folder-of-sd-card[^]


这篇关于ANDROID编码以复制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆