My program is finished already, and i am using it perfectly. I just want to add
progressbar so that i can see the progress running to make it more beautiful
i create an apps which is capable of installing apk file on android phones.
we can install apk on command prompt using adb install commandThis is base on ADB command "adb install applcationname.apk"
The scenario of my program is like this:
all the command on cmd will appear on my form (This is all OKey)
the apk's name is on my listbox1, if I select the items on listbox1, the name of this item will be written on my txtCommandInput (my textbox)
this is my sample codes
Code:Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged Dim _items As String = ListBox1.Text Dim _adb As String = "Adb install" Dim myspace As Object = Space(1) If ListBox1.Text = ListBox1.Text Then txtCommandInput.Text = _adb & myspace + _items End If End Sub
if you press the button it will throw the command from txtCommandInput.Text and the result will displayed on cmd, so the "adb install command" will run.Code:Private Sub InstallButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InstallButton.Click StreamInput(Me.txtCommandInput.Text) Me.txtCommandInput.Clear() End Sub
all of this thing is working fine, except the progressbar
Now im reading this book about progressbar and backgroundworker sad to say i really cannot make it work, that while the installation of this apk the progressbar value is exactly 100% after the installtion finished
can anyone please enlighten me about this thing?
Just give me a hint how the progress on progressbar will be the exact value and result of this apk installation
thanks in advance




Reply With Quote