Android Question Activity and Foreground Service

Discussion in 'Android Questions' started by kohle, Mar 12, 2015.

  1. kohle

    kohle Active Member Licensed User

    I have an activity and a foreground service.

    The foreground service checks if a sms was received and write it to a database.
    I receive every hour a sms in the night. This works fine. The modus of the phone is "night mode/sleep"

    In the morning if I activate the home screen, I get an error of my app that the "View" has to be
    initialized before use.

    In my main activity I have created a Listview control in the activity create event and initialized it there.

    Should I initialize again in the RESUME event , what makes no sense.
  2. Erel

    Erel Administrator Staff Member Licensed User

    No. Check the logs (with USB debug mode) when this error happens.
  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