Developers Zone

Add Mobility/Driving Detection to Your App

Anagog’s SDK lets you easily add mobility detection to your app, and benefit from high performance and low resource requirements.

1Invoke your app automatically when a user starts driving (driving detection, parking detection)
2Change app behavior in driving mode
3Increase users engagement in your app and boost ad revenues

Sample Code

browser

Add this code to your manifest file:

<!– register a receiver to get driving events –>
<receiver android:name=”com.anagog.android.LocationReceiver” android:exported=”false”>
<intent-filter>
<action android:name=”anagog.pd.service.intent.DRIVING_EVENT”></action>
</intent-filter>
</receiver>

javascript-outlined-file-type-interface-symbol

Add this Java class to your source files:

public class LocationReceiver extends BroadcastReceiver {
public static final String ANAGOG_DRIVING = “anagog.pd.service.intent.DRIVING_EVENT”;
@Override
public void onReceive(Context context, Intent intent) {
//get the event from the intent
if (intent.getAction().equals(ANAGOG_DRIVING)) {
// Insert your code for handling the driving event
}
}
}

Join CrowdPark™ Realtime Parking Network

Join the largest network of parking data in the world. Integrate parking databases and real-time parking network events (millions a day), or add street rules and driving reminders to augment your Android navigation, driving experience.Join the world’s largest parking network.

  • Join the world’s largest parking network
  • Get real time parking availability
  • Enjoy the industry’s best battery efficiency – 0.1%
  • Harness location and points of interest in a way that’s simple and fast
  • Integrate parking lot databases
  • Add real-time parking data with driving detection and parking detection
  • Access historical parking data
  • Add points of interest and geo-fencing
  • Incorporate street rules and parking restrictions
  • Incorporate last mile navigation
  • Take advantage of an Android SDK that’s easy to integrate (iPhone coming soon)
' ^

Pin It on Pinterest