Android Question How do I stop Astreams_NewData Event

Discussion in 'Android Questions' started by freetoair, Sep 21, 2015.

  1. freetoair

    freetoair Member Licensed 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:
    Code:
    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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Don't try to stop AsyncStreams. You should instead ignore the incoming data. Check it in release mode. It shouldn't slow down the WheelView.
     
  3. freetoair

    freetoair Member Licensed User

    And after a few attempts I was unable to restart processing incoming data.
     
  4. freetoair

    freetoair Member Licensed 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.
     
  5. freetoair

    freetoair Member Licensed User

    Can anyone help me how can I check whether or not activated Wheelview (@klaus class ) ?
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice