Android Question Problem with a Service

Discussion in 'Android Questions' started by Alberto Michelis, May 29, 2015.

  1. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    Hi,
    I have a CustomListView which shows rows stored in an Sql databse.
    This database is saved by a Service which reads an http page, parse it and save the rows.
    The service has a timer of 5 secondsa and the reading/parsing last 2 or 3 seconds.
    Problem is than when I am in the List, and, the service reading is activated by the timer, I cant scroll the view.
    Any idea?
    thanks
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    The service code is executed on the same thread that all other code is executed.

    Are you testing it in Release mode?
     
  3. Peter Simpson

    Peter Simpson Expert Licensed User

    Hello Alberto, have you tried using the Threading library?
     
    lemonisdead likes this.
  4. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    Erel... Release mode works better, Thanks
    Peter... thanks, will see, any advise?
     
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