从访问设备数据Android Studio中 [英] Accessing data from device in Android Studio

查看:144
本文介绍了从访问设备数据Android Studio中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的第一个问题在这里。我搜索网站上的很多,但没有找到我的问题的任何答案。

it's my first question here. I searched a lot on the site but didn't find any answer for my question.

基本上,我想加载包含JPEG和MP3在平板目录和检索这些文件的路径,并把他们在一个SQLite数据库。我使用的数据库不麻烦,但我不知道如何检索的文件的路径,甚至以验证目录的存在。关于如何访问这些文件,而无需将它们在应用程序绘制和声音文件夹中的任何暗示将AP preciated。谢谢!

Basically, I want to load a directory containing jpeg and mp3 in the tablet and retrieve the path from these files and put them in a SQLite database. I have no trouble using the database but I don't know how to retrieve the paths of the files or even to verify the existence of the directory. Any hint on how to access these files without putting them in the application drawable and sound folder would be appreciated. Thanks!

推荐答案

转到在 Android设备监控在Android工作室和新poup窗口将在设备打开名单在左窗格中,并在右平移选中文件浏览器选项卡这就是它

Goto the Android Device Monitor in the android studio and new poup window will open with the devices list in the left pane and in the right pan select the File Explorer Tab and that's it

这篇关于从访问设备数据Android Studio中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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