Reputation: 75
I am using Android Tool "adb.exe" to install apk files to android phone.
The code is: abd.exe install xxx.apk
I want to use a C# progressBar to show the progress of installation. How can I get the progress?
Upvotes: 0
Views: 2453
Reputation: 1415
If you're calling adb.exe from a C# program, your options are limited, but what you're looking for is possible. If you redirect the standard output of the process, you should be able to observe the Process.OutputDataReceived event and associate the output of adb with values of your progress bar.
Upvotes: 1