Android Tutorial cannot find symbol after #StartCommandReturnValue: android.app.Service.START_STICK

Discussion in 'Libraries developers questions' started by Mark Ryan Penafiel, Aug 23, 2015.

  1. Mark Ryan Penafiel

    Mark Ryan Penafiel Member Licensed User

    hi after adding #StartCommandReturnValue: android.app.Service.START_STICK in a service


    i have an error

    javac 1.8.0_60
    src\team\box\gps_save.java:51: error: cannot find symbol
    return android.app.Service.START_STICK;
    ^
    symbol: variable START_STICK
    location: class Service
    1 error


    how can i fixed this.


    Thanks
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    It should be:
    #StartCommandReturnValue: android.app.Service.START_STICKY
     
    DonManfred likes this.
  3. Mark Ryan Penafiel

    Mark Ryan Penafiel Member Licensed User

    Hehe , Thanks Erel,

    Already spent all day searching for the answer just to find out its a typo error.

    Thanks alot :)
     
    DonManfred likes this.
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