How do I stop Astreams_NewData Event because the data coming in stopping WheelView (@@klaus class). During the period while the active WheelView not important to me information that I receive. I have tried this but on exit not to be reconnected to Astreams:
B4X:
Code:
Sub lblCustom_Click
astreams.Close
whlCustomSingle.Show(lblCustom, lblCustom.Text)
End Sub
.
.
.Sub whlCustom_Closed(Canceled As Boolean, Selection AsString)
If Canceled = FalseThen
Activity.Title = Selection
Else
EndIf
astreams.Initialize(usb.GetInputStream, usb.GetOutputStream, "astreams")
End Sub