Back to project page android-accelerometer-gps.
The source code is released under:
MIT License
If you think the Android project android-accelerometer-gps listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.szlosek.whenmoving; //from w w w. j a v a 2s . c o m import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; // Receives AlarmManager RTC_WAKEUPs ... stops GPS polling public class TimeoutReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { MainApplication.mServiceInstance.gpsTimeout(); } }