This is the native Android SDK for Cloudmine.
This assumes you already have the Android SDK installed, Eclipse installed, and the ADT Eclipse plug in installed
- Go to File->New->Android Project
- Enter a project name and click next
- Select your SDK; the CloudMine android SDK is built against 2.3.3
- Enter your package name and click Finish
- In Package Explorer, right click your project and select "Properties"
- Select Java Build Path, Libraries
- Select Add External Jars and add the CloudMine android SDK jar
- Copy the CloudMine android SDK jar to a folder called 'libs' in the root directory of your project
This assumes you already have the Android SDK installed and IntelliJ installed
- Go to File->New Project
- Select Create Project from Scratch and click next
- Enter your project name, module name, and select Android Module and hit Next
- Keep hitting next until the project is created
- Right click your module and select "Open Module Settings"
- Select Project Settings -> Modules -> Your Module -> Dependencies
- Click (+) Add, Jars or Directories, and select the CloudMine android SDK jar, and click OK
- Grab a beer and continue on to the "both" section
Open your main activity class and add
private static final String APP_ID = "c1a...." //find this in your developer console
private static final String API_KEY = "3fc..." //find this in your developer console
at the top of the class definition. In onCreate, add calls to
DeviceIdentifier.initialize(getApplicationContext()); //This initializes the unique ID that will be sent with each request to identify this user
CMApiCredentials.initialize(APP_ID, API_KEY); //This will initialize your credentials
and that's it! Enjoy developing without worrying about the backend.