Also note that enableForegroundTracking(getApplication) is still safe to call for Android API level 13 and below even though it's not available. Note that you can define your own session expiration time here as well by calling setSessionTimeoutMillis(timeout), where the timeout input is in milliseconds. If another event is logged within 30 minutes, it will extend the current session. Note that you can define your own session expiration time by calling setMinTimeBetweenSessionsMillis(timeout), where the timeout input is in milliseconds.įor Android API level 13 and below, foreground tracking is not available so a new session is automatically started when an event is logged 30 minutes or more after the last logged event. Otherwise, the background event logged is part of the current session.
For Google Play Billing Library public class MyBillingImpl implements PurchasesUpdatedListener Amazon Store revenue verification ¶įor purchases on the Amazon store, you first need to set up Amazon as a data source in Amplitude. groupType is a string, and groupName can be either a string or an array of strings to indicate that a user is in multiple groups. Setting a group also sets the groupType:groupName as a user property, and overwrites any existing groupName value set for that user's groupType, and the corresponding user property value. Another example of a groupType could be 'sport' with groupName values like 'tennis' and 'baseball'. In the previous example, 'orgId' is the groupType and '10' and '15' are the values for groupName.
Maximize API consumption with customizable portals that host multi-language documentation, SDKs, API Code Playground and more.
When setting groups, define a groupType and groupName. Learn how to integrate Java SDKs into your Android applications. Click on Run - Debug and select your device to deploy this code to your Android Things devices. Open gradle.properties file, and replace 'Deviceconnectionstring' with your device connection string noted earlier. You can query their organizations in the Event Segmentation Chart. In Android Studio, open the Android Project in located in 'azure-iot-samples-javaiot-hubSamplesdeviceAndroidSample'. Sue and Joe both perform a certain event.
Joe is in 'orgId' '10', and Sue is in 'orgId' '15'. If at least one member of the group has performed the specific event, then the count includes the group.įor example, you want to group your users based on what organization they're in by using an 'orgId'. observeOn(AndroidSchedulers.mainThread())įor (CDAResource resource : result.This feature is available in accounts with a Growth or Enterprise plan with the Accounts add-on.Īmplitude supports assigning users to groups and performing queries, such as Count by Distinct, on those groups. To fetch all entries, create a new observable that watches for changes, in this case, fetching all entries from the specified space with the all method and content type with the where method: client.observe(CDAEntry.class) To include the CDA client library, add the following lines to the adle file: dependencies Fetching all data from a space This guide uses RXAndroid in the examples, which allows you to fetch results without tying up the main Android thread. Create a new Android projectĬreate a new project in Android Studio using the 'Blank Activity' template, and name it whatever you wish. You can create an access token using the Contentful web app or the Content Management API. Authenticationįor every request, clients need to provide an API key, which is created per space and used to delimit applications and content classes. This tutorial assumes that you understand the Contentful data model. We publish client libraries for various languages to make developing applications easier.
All content, both JSON and binary, is fetched from the server closest to a user's location by using our global CDN. This guide will show you how to get started using our Android client library to consume content.Ĭontentful's Content Delivery API (CDA) is a read-only API for retrieving content from Contentful.