Sample applications that show case the Urban Airship SDK.
-
Update the Android SDK Manager
- Verify Android Support Repository and Google Repository (under Extras) are installed and up-to-date
-
Download the Android/Amazon library from http://urbanairship.com/resources/developer-resources
-
Copy the urbanairship-lib-*.aar file into RichPushSample/aars/ and PushSample/aars/
-
Import the project into Android Studio
- Open Android Studio to welcome screen
- Import project, select the
samplesroot directory, not the individual samples directories.
-
Update each sample's AirshipConfig.properties file with your application's configuration
- Amazon setup docs http://docs.urbanairship.com/build/push/android.html#adm-setup
- GCM setup docs http://docs.urbanairship.com/build/push/android.html#gcm-setup
Push Sample:
1) Update the Android SDK Manager
- Verify Android Support Library and Google Play Services (under Extras) are installed and up-to-date
2) Download the Android/Amazon library from http://urbanairship.com/resources/developer-resources
3) Import projects
- Eclipse -> Import Android Project -> Samples/PushSample
- Eclipse -> Import Android Project -> urbanairship-lib (from download)
4) Add the Urban Airship library project as a dependency
- Follow http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject
5) Add the v4 support library as a dependency
- Follow http://developer.android.com/tools/support-library/setup.html
6) (GCM Only) Set up Google Play services
- http://developer.android.com/google/play-services/setup.html#Setup
7) Update AirshipConfig.properties file with your application's configuration
- Amazon setup docs http://docs.urbanairship.com/build/push/android.html#adm-setup
- GCM setup docs http://docs.urbanairship.com/build/push/android.html#gcm-setup
Rich Push Sample:
1) Update the Android SDK Manager
- Verify Android Support Library and Google Play Services (under Extras) are installed and up-to-date
2) Download the Android/Amazon library from http://urbanairship.com/resources/developer-resources
3) Import projects
- Eclipse -> Import Android Project -> Samples/RichPushSample
- Eclipse -> Import Android Project -> urbanairship-lib (from download)
4) Add the Urban Airship library project as a dependency
- Follow http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject
5) Add the v4 and v7 Support library as dependencies
- Follow http://developer.android.com/tools/support-library/setup.html
6) (GCM Only) Set up Google Play services
- http://developer.android.com/google/play-services/setup.html#Setup
7) Update AirshipConfig.properties file with your application's configuration
- Amazon setup docs http://docs.urbanairship.com/build/push/android.html#adm-setup
- GCM setup docs http://docs.urbanairship.com/build/push/android.html#gcm-setup
For more information on using Rich Push for Android see our documentation_ site.
.. _documentation: http://docs.urbanairship.com