Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 15332a1 commit 2e2e39d1cdb6000be1ee1e32946dfa93337408ed @cmorgner cmorgner committed Mar 19, 2012
Showing with 23 additions and 3 deletions.
  1. +23 −3 README.md
View
@@ -15,10 +15,30 @@ Please note that this software is early alpha status. Use carefully at your own
## Step 1: Build structr-android-client
- Clone this repository
-- Build JAR file: run "mvn install"
-- Create javadocs: run "mvn generate-sources javadoc:javadoc"
+- mvn package
+- mvn generate-sources javadoc:javadoc
## Step 2: Integrate structr-android-client in your Android app
- Copy target/structr-android-client-0.1-SNAPSHOT from step 1 into the libs/ directory of your android app
- Call StructrConnector.initialize() in the onCreate() method of your main activity
-- Use
+
+## Step 3: Map your structr entities to POJOs
+ public class MyEntitiy extends StructrObject {
+ @Expose private String id;
+ @Expose private String name;
+ @Expose private Date timestamp;
+ @Expose private String location;
+ }
+
+## Step 4: Use one of the various connectors to access the REST server
+ new IdEntityLoader(new EntityHandler() {
+
+ public void handleProgress(Progress... progress) {
+ // handle progress / exception
+ }
+
+ public void handleResults(StructrObject result) {
+ // handle result
+ }
+
+ }).execute(Example.class, id");

0 comments on commit 2e2e39d

Please sign in to comment.