Android Question Clearing serial cache..

Discussion in 'Android Questions' started by Beja, Apr 28, 2015.

  1. Beja

    Beja Expert Licensed User

    Hi all..

    After sending some data using serial1, I have to clear the app manually by using the long-click in the device menu then swipe it away.
    Only after doing this that I can run the app and send again.
    Any hint?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You should provide more information. What happens when you run your app again without killing it?

    What is your app doing with the serial connection? Are you using AsyncStreams?
     
  3. Beja

    Beja Expert Licensed User

    Hi Erel,
    The app sends a line of text through bluetooth.

    Code:
    TextWriter1.WriteLine(DataString.ToString)
            TextWriter1.Flush
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Don't use TextWriter and TextReader with network / serial connections. You should use AsyncStreams instead.
     
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