Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Android 工具“adb.exe”将 apk 文件安装到 android 手机。代码是:abd.exe install xxx.apk
abd.exe install xxx.apk
我想使用 C# progressBar 来显示安装进度。我怎样才能获得进展?
如果您从 C# 程序调用 adb.exe,您的选择是有限的,但您正在寻找的是可能的。如果您重定向流程的标准输出,您应该能够观察Process.OutputDataReceived事件并将 adb 的输出与进度条的值相关联。