Android Question How do I stop Astreams_NewData Event

freetoair

Member
Licensed User
Longtime User
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
 

freetoair

Member
Licensed User
Longtime User
New values for LED VU meter coming at a speed of 60 ms, only 2 bytes, it seems to be too fast for processing, but there is a compromise between the speed of response of the VU meter and the current sound.
 
Upvote 0
Top