Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Made a minor change

...

To download and start using the SDK, you first need to register your Android application in Dashboard. See Managing Non-Titanium Client Applications in Dashboard for details on registering a new application. After you register the application, a service key is generated that associates your application with all the Platform services. Appcelerator Dashboard also provides full instructions for enabling all Platform Services in your application. This guide will deal specifically with enabling and using MBS in an Android application.

...

Alternatively, you can use the generic APSCloud.sendRequest() method to make REST calls directly against the Cloud APIs. For more information, see Making Generic REST API Calls.

Note

All Cloud API calls must be made on the UI (main) thread, and callbacks are executed on the UI thread.

...

Android Project Requirements for using APSCloud Push

...

  1. In Eclipse, select File > Import > General > Existing Projects into Workspace and click Browse.
  2. Navigate to the appcelerator-sdk-android-<VERSION>/examples/APSCloudPushExample folder and click Open.
  3. Click Finish to import the project.
  4. Add the Google Play services to your project (see Android Project Requirements for instructions).
  5. In MainActivity.java, locate the following line and replace << YOUR APP KEY >> with the application key generated by Dashboard (see instructions):

    Table Cell (td)
    Code Block
    languagejs
    String appKey = "<< YOUR APP KEY >>";
  6. Run the application on an Android device or emulator.