---------UPDATE -----------------------------------------
When the app starts I receive numberformat exception at line :
final long thetime=Long.par
Ok, I had forgot the :
startService() im my main activity. I had to put it in myservice activity.
Thanks to all