¡@

Home 

2014/10/16 ¤W¤È 08:26:21

android Programming Glossary: thetime

numberformat exception using alarmamanager - crashes before on start

http://stackoverflow.com/questions/15665113/numberformat-exception-using-alarmamanager-crashes-before-on-start

crashes before on start UPDATE When the app starts I receive numberformat exception at line final long thetime Long.parseLong time_value But the above aren't in the main activity... In the xml file I have in the edittex android inputType.. class in which I have the alarmamanager note I can't use catch because below alarm.setRepeating it doesn't recognize thetime value. protected void onHandleIntent Intent intent try String time_value time_value String intent.getStringExtra time_value.. void onHandleIntent Intent intent try String time_value time_value String intent.getStringExtra time_value final long thetime Long.parseLong time_value catch NumberFormatException e mContext getApplicationContext mHandler.post new Runnable @Override..

GPS myservice doesn't update in time intervals

http://stackoverflow.com/questions/15701463/gps-myservice-doesnt-update-in-time-intervals

void onHandleIntent Intent intent String time_value time_value String intent.getStringExtra time_value final long thetime Long.parseLong time_value mContext getApplicationContext mHandler.post new Runnable @Override public void run Start service.. AlarmManager getSystemService Context.ALARM_SERVICE alarm.setRepeating AlarmManager.RTC_WAKEUP cal.getTimeInMillis thetime 1000 pintent Tell the user about what we did. Toast.makeText myservice.this Configured time interval Toast.LENGTH_LONG..