如何在 Android 中创建浏览文件按钮功能

发布于 2024-09-26 21:08:19 字数 224 浏览 0 评论 0原文

我有一个单选按钮,单击时会弹出一个窗口。 目前,我计划使弹出窗口包含一个浏览按钮,其左侧带有文本编辑。

它的作用是,当用户单击浏览按钮时,会出现一个窗口资源管理器(类似的东西),让用户遍历手机的主/辅助内存。选择文件后(单击两次),文本编辑将包含指定文件的整个目录地址。

我不知道如何实现这个实现,我用谷歌搜索了它,但找不到任何答案。 你们有机会知道这方面的教程或信息吗?

提前非常感谢

I have a RadioButton that is when clicked, it will bring to a popup window.
Currently, I am planning to make the popup window to contain a browse Button with TextEdit left of it.

What it does is, when a user click on browse Button, a window explorer (something like that) will appear and let the user to traverse the phone's primary/secondary memory. When a file has been selected (clicked twice), the TextEdit will contain the whole directory address for the specified file.

I am not sure how to do this implementation, and I have google it and can't find any answer.
Do you guys by any chance know any tutorial or information about this?

Thank you so much in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文