简体   繁体   English

在Android中进行调试时,如何将一堆数据传递给计算机?

[英]How can I pass a bunch of data to my computer when debugging in Android?

Log.d isn't sufficient for pushing a bunch of image data. Log.d不足以推送一堆图像数据。 Is there an easy way to do this? 是否有捷径可寻? I could write a file, but then I'd have to switch my phone into USB mode, copy the file over, and then switch it back... 我可以写一个文件,但是然后我必须将手机切换到USB模式,复制文件,然后再将其切换回...

I could write a file, but then I'd have to switch my phone into USB mode, copy the file over, and then switch it back 我可以写一个文件,但是然后我必须将手机切换到USB模式,复制文件,然后再切换回

You can use adb pull or ADT to fetch the file from the phone's file system. 您可以使用adb pull或ADT从手机的文件系统中获取文件。

adb pull <remote> <local>

From ADT, use the File Explorer tab in DDMS perspective. 在ADT中,使用DDMS透视图中的“文件资源管理器”选项卡。

使用ADT提取文件

Having said that, most probably there is a way to debug without having to jump through hoops of creating the file, fetching it on the computer and then analyzing it. 话虽如此,很可能有一种调试方法,而不必跳过创建文件,在计算机上提取文件然后进行分析的麻烦。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 安卓USB调试模式下,USB调试时可以把电脑键盘作为手机输入设备吗? - In Android USB debugging mode, can I make my computer keyboard as input device to my mobile handset while USB debugging? 如何将数据从 Android Studio 实时导出到我的电脑 - How can I export data in real time from Android Studio to my computer 在调试我自己的项目时,如何跳过运行 Android class 代码? - How can I skip runing into Android class code when debugging My own project? 当调用Request.callback onCompleted()方法时,如何将Facebook返回的数据传递给Android中的片段? - How can I pass data returned from Facebook when Request.callback onCompleted() method is called, to my fragment in Android? 调试Android应用程序时如何使用不同的设置? - How can I use different settings when debugging an android app? 如何从我的Android应用程序传递数据并在我的ASP.NET MVC网站上接收它? - How can I pass data from my android application and receive it on my ASP.NET MVC website? 如何将数据传递给 Android 上的 libcore? - How can I pass data to libcore on Android? 如何将我的 android 应用下载到我的电脑上,以便我可以在 Android Studio 中修复它 - How to download my android app to my computer so I can fix it in Android Studio 离线时如何在Android应用程序中保存数据? - How can I save data when offline in my Android app? Android USB调试 - 电脑找不到手机 - Android USB debugging - computer can not find phone
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM