Tickets Sample App, Android
  • 28 Aug 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Tickets Sample App, Android

  • Dark
    Light

Article summary

Android Tickets SDK Application Integration Demo

An example integration of the TicketmasterTickets framework is available for download:

https://github.com/ticketmaster/Android-TicketsDemoApp

Demo App Screenshots

sample_integration_app_1.jpgsample_integration_app_2.jpgsample_integration_app_4.jpg

Getting Started

  1. Open Android-TicketsDemoApp in Android Studio
    1. This will also download all the required libraries
  2. Update local.properties with your own API key
    1. available from https://developer.ticketmaster.com/explore/
  3. Update your Team Name and colors:
config.consumer_key="consumer_key"
config.team_name="team_name"
config.branding_color="#color"
  1. For Modern Accounts Login
    1. Open the Android Manifest.xml and add the following ModernAccountsLoginScreen:
<activity
    android:name="com.ticketmaster.authenticationsdk.internal.modernaccounts.presentation.ModernAccountsLoginScreen"
    android:screenOrientation="portrait"
    android:exported="true"
    android:launchMode="singleTop">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <!-- YOUR SCHEME will be provided in your app settings, copy it to this location -->
        <data android:scheme="psdkscheme[client scheme name]" />
    </intent-filter>
</activity>
  1. Build and Run

Configuration

Update your API key, team name and branding colors in local.properties
Authentication SDK is configured using the settings in local.properties.


Tickets SDK inherits it's configuration from Authentication SDK

For Modern Accounts, add the ModernAccountsLoginScreen activity into the AndroidManifest.xml file and add inside your scheme.

Presentation

There is one way to present the Tickets SDK:

  • Generate the EventsFragment from TicketsSDKClient and add it to your view.

Basic example in TicketsSDKHostActivity.kt

Authentication

While not required, your application may want to control login-related processes directly.

  • Login
  • Member Info
  • Logout
    Tickets SDK handles Login/Logout on it's own, so there is no need for you to manually call any of these methods.

Information

While not required, your application may want to be informed of operations and use behavior with Authentication and Tickets SDKs.

Custom Modules

While not required, your application may want to use Prebuilt Modules or even create your Custom Modules to display underneath the Tickets on the Tickets Listing page.

see Modules Overview


Was this article helpful?