What is the correct way to use repeating alarms for short intervals in Android 5.0+?
<p>So I need to send coordinates from my current location to a server, in very short frequences (30 seconds). Right now I am doing it with AlarmManager <code>setRepeating()</code>, but Android 5.0+ allows intervals from up to 1 minute to save battery. </p>

<p>My question would be:</p>

<p>Is my way really efficient? I need to run this repeating alarm in the background, even when the device is off. Currently I am executing <code>pendingintent</code> which leads to a <code>broadcastreceiver</code> which in turn executes to <code>asynctasks</code>, one for server authentication, one for posting the coordinates.</p>