Reputation: 131
I'm making a kotlin app for android that uses a 7z library to unzip some files, I got the library to work but i would like to add functionality for getting the progress of the unzipping, this is already somewhat implemented into the library because with an argument i can make it print the percentage to the terminal, but now I don't know how to get the stdout into a variable for example.
The library I'm using: https://github.com/hzy3774/AndroidP7zip/tree/master
P7ZipApi.executeCommand("7z x $externalFilesDir/meta.7z -o$externalFilesDir/meta -p$password -bsp2" )
I found documentation on java processes but that only seem to allow commands of sorts, I don't know what other options would be possible.
Upvotes: 0
Views: 40