Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I decrease the time of sending the coordinates 30 seconds. (Android) #78

Open
davidaldan opened this issue Jun 5, 2017 · 1 comment

Comments

@davidaldan
Copy link

davidaldan commented Jun 5, 2017

Hi everyone. I want to limit the time to coordinates send. 30 seconds for example.

I change this code line:

        intervalInMinutes = sharedPreferences.getInt("intervalInMinutes", 1);
        alarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP,
                SystemClock.elapsedRealtime(),
                intervalInMinutes * 30000,   // 60000 = 1 minute
                pendingIntent);

But the time is the same. Thanks for help.

@nickfox
Copy link
Owner

nickfox commented Jun 6, 2017

When it is set to 1 minute, is it actually getting coordinates every minute?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants