Skip to content
Browse files

Merge branch 'master' of https://github.com/stackmob/StackMob_Android

Conflicts:
	Demo/.classpath
  • Loading branch information...
2 parents fb2fb73 + d8fcc8a commit 7b3eff93e018ae0b65699fd77d0a02cd33940807 @arschles arschles committed Nov 3, 2011
Showing with 25 additions and 38 deletions.
  1. +1 −2 Demo/.classpath
  2. +0 −13 Demo/.project
  3. +0 −5 Demo/.settings/org.eclipse.m2e.core.prefs
  4. +3 −3 SDK/default.properties → Demo/project.properties
  5. +21 −3 README.md
  6. +0 −12 SDK/.project
View
3 Demo/.classpath
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="src" output="target/android-classes" path="gen">
<attributes>
@@ -20,5 +19,5 @@
<classpathentry kind="lib" path="assets/signpost-commonshttp4-1.2.1.1.jar"/>
<classpathentry kind="lib" path="assets/signpost-core-1.2.1.1.jar"/>
<classpathentry kind="lib" path="assets/stackmob-java-client-sdk-0.2.0.jar"/>
- <classpathentry kind="output" path="target/classes"/>
+ <classpathentry kind="output" path="bin/classes"/>
</classpath>
View
13 Demo/.project
@@ -25,22 +25,9 @@
<arguments>
</arguments>
</buildCommand>
- <buildCommand>
- <name>org.eclipse.m2e.core.maven2Builder</name>
- <arguments>
- </arguments>
- </buildCommand>
</buildSpec>
<natures>
- <nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
- <linkedResources>
- <link>
- <name>SDK_src</name>
- <type>2</type>
- <location>/Users/aaron/code/StackMob_Android/SDK/src</location>
- </link>
- </linkedResources>
</projectDescription>
View
5 Demo/.settings/org.eclipse.m2e.core.prefs
@@ -1,5 +0,0 @@
-#Wed Oct 12 18:19:34 PDT 2011
-activeProfiles=
-eclipse.preferences.version=1
-resolveWorkspaceProjects=true
-version=1
View
6 SDK/default.properties → Demo/project.properties
@@ -4,9 +4,9 @@
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
-# "build.properties", and override values to adapt the script to your
+# "ant.properties", and override values to adapt the script to your
# project structure.
+android.library.reference.1=../SDK
# Project target.
-target=android-4
-android.library=true
+target=android-8
View
24 README.md
@@ -1,5 +1,5 @@
# Stackmob Android SDK
-This is the Official Stackmob Android SDK. This SDK builds on top of the [StackMob Java Client SDK](https://www.stackmob.com/platform/stackmob/help/topics/Getting-Started:-Java-Client-SDK) to provide various convenience components for Android apps.
+This is the Official Stackmob Android SDK. It builds on top of the [StackMob Java Client SDK](https://www.stackmob.com/platform/stackmob/help/topics/Getting-Started:-Java-Client-SDK) to provide various convenience components specifically for Android apps. The SDK aims to provide compatability for Android 2.2 and above.
# Getting Started - New App
@@ -23,6 +23,25 @@ Here's how to get set up with the SDK. These instructions assume you're using Ec
10. Click browse and select StackMob_Android/SDK/assets as the root directory.
11. Click on assets, select all of the *.jar files, and click Finish
+If you instead wish to use IntelliJ IDEA for Android development, follow these steps:
+
+1. Clone or download git://github.com/stackmob/StackMob_Android.git
+2. In IntelliJ, open your Android application project, or create a new one.
+3. Select File -> New Module -> Create new module from scratch
+4. For the location of the project files, enter the path to StackMob_Android/SDK, which you downloaded earlier.
+5. Click next. IntelliJ should find the source directories.
+6. Click next, and Uncheck "Create default Android application structure"
+7. Select Finish
+8. Right click on the new SDK module and select "Module settings", and go to the dependencies tab
+9. Select Add... -> Library -> New Library... -> Attach Jar Files
+10. Choose the assets folder in the SDK directory and apply changes
+11. In the same dialog, go to the module for your application, and select the dependencies tab
+12. Select Add... -> Module Dependency and select the SDK Module
+13. Save your changes
+
+Please note that IntelliJ support is currently experimental. Please let us know if you encounter any issues using IntelliJ with the StackMob Android SDK.
+
+
## Manifest Setup
After you've installed the SDK & installed all of its dependencies, make sure that you've enabled the INTERNET permission. Ensure that this xml is at
the top level of AndroidManifest.xml:
@@ -70,7 +89,6 @@ import java.util.ArrayList;
StackMobCommon.API_KEY = …;
StackMobCommon.API_SECRET = …;
-StackMobCommon.API_SECRET = …;
StackMobCommon.USER_OBJECT_NAME = …; //change this if you have a user object in your object model of a different name
StackMobCommon.API_VERSION = …; //0 for Sandbox, >0 for deployed
StackMob stackmob = StackMobCommon.getStackMobInstance();
@@ -109,7 +127,7 @@ stackmob.post("game", game, new StackMobCallback() {
@Override
public void success(String responseBody) {}
@Override
- public void failure(StackMobException) {}
+ public void failure(StackMobException e) {}
});
```
View
12 SDK/.project
@@ -25,21 +25,9 @@
<arguments>
</arguments>
</buildCommand>
- <buildCommand>
- <name>org.maven.ide.eclipse.maven2Builder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.m2e.core.maven2Builder</name>
- <arguments>
- </arguments>
- </buildCommand>
</buildSpec>
<natures>
- <nature>org.maven.ide.eclipse.maven2Nature</nature>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
- <nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

0 comments on commit 7b3eff9

Please sign in to comment.
Something went wrong with that request. Please try again.