¡@

Home 

2014/10/16 ¤W¤È 08:18:01

android Programming Glossary: loccounter

How to time out GPS signal acquisition

http://stackoverflow.com/questions/5725338/how-to-time-out-gps-signal-acquisition

So this is what I ended up doing. This is what i added to the LocationListener note the global variables timertest and loccounter public class MyLocationListener implements LocationListener public void onStart if timertest false timertest true serviceHandler.. new Handler serviceHandler.postDelayed new timer 1000L class timer implements Runnable public void run loccounter x loccounter if runtest true loccounter 8 dt 200 runtest false stoplistening serviceHandler.postDelayed this 1000L .. new Handler serviceHandler.postDelayed new timer 1000L class timer implements Runnable public void run loccounter x loccounter if runtest true loccounter 8 dt 200 runtest false stoplistening serviceHandler.postDelayed this 1000L I start the timer..