numberformat exception using alarmamanager - crashes before on start

前端 未结 3 429
走了就别回头了
走了就别回头了 2020-12-21 22:15

---------UPDATE -----------------------------------------

When the app starts I receive numberformat exception at line :

final long thetime=Long.par         


        
3条回答
  •  Happy的楠姐
    2020-12-21 22:51

    because I made lonfitude and latitude Strings (I had them as double before). How can I overcome that?
    

    To get String from double use String.valueOf();

    String latitude = String.valueOf(location.getLatitude());
    

    Repeat

    Also,how can I select to send the data in time intervals that the user will define?
    

    To repeat at specific interval use AlarmManager.

提交回复
热议问题