This is Phunware's Android SDK for the Analytics module. Visit http://maas.phunware.com/ for more details and to sign up.
MaaS Analytics documentation is included in the Documents folder in the repository as both HTML and as a .jar. You can also find the latest documentation here: Analytics API Reference (iOS)
The MaaS Analytics SDK provides the ability to generate custom analytic events. Events can be created at a single point in time or with duration data for timed events.
- Android SDK 2.2+ (API level 8) or above
- latest MaaS Core
The following libraries are required:
MaaS Analytics depends on MaaSCore.jar, which is available here: Core SDK
It's recommended that you add the MaaS libraries to the 'libs' directory. This directory should contain MaaSCore.jar and MaaSAnalytics.jar, as well as any other MaaS libraries that you are using.
AndroidManifest.xml to include the following permissions:
See AndroidManifest.xml for an example manifest file.
The MaaS Analytics SDK requires the latest
MaaS Core SDK.
Be sure to install the module in the
onCreate method before registering keys. For example:
To add events with MaaS Analytics:
All event names must be alphanumeric strings.
MaaS Analytics supports timed analytics:
Pausing and Resuming Timed Events
MaaS Analytics allows you to pause and resume timed events. If an event is in a paused state when
endTimedEvent is called on it, then the paused timestamp will be used to calculate an event's duration.
MaaS Analytics allows you to paramaterize all of your events with up to 10 string key / value pairs. All parameter keys and values must be alphanumeric strings.
ON THIS PAGE