guyuequan
guyuequan

Reputation: 75

How to get the android APK installation progress?

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

Answers (1)

Bill Carey
Bill Carey

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

Related Questions