From 0501a93dcd844e889cdf98ea9717ad610028512f Mon Sep 17 00:00:00 2001 From: abhilash2in Date: Fri, 19 Feb 2016 20:44:49 +0530 Subject: [PATCH 1/5] Added android code --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index ab9a6bcfd1..0b9238e681 100644 --- a/README.md +++ b/README.md @@ -104,4 +104,14 @@ obj.save().then(function(obj) { }, function(err) { console.log(err); }); ``` +Example using it on Android: +``` +Parse.initialize(new Parse.Configuration.Builder(getApplicationContext()) + .applicationId("myAppId") + .clientKey("myClientKey") + .server("http://myServerUrl/parse/") // '/' important after 'parse' + .build()); + +``` + You can change the server URL in all of the open-source SDKs, but we're releasing new builds which provide initialization time configuration of this property. From 0a55fa185783edd0fc2c718e3260d6a8e9c1fb7c Mon Sep 17 00:00:00 2001 From: abhilash2in Date: Fri, 19 Feb 2016 20:47:43 +0530 Subject: [PATCH 2/5] Added android code equivalent of Parse.initialize() --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0b9238e681..542664f238 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,10 @@ Parse.initialize(new Parse.Configuration.Builder(getApplicationContext()) .clientKey("myClientKey") .server("http://myServerUrl/parse/") // '/' important after 'parse' .build()); + + ParseObject testObject = new ParseObject("TestObject"); + testObject.put("foo", "bar"); + testObject.saveInBackground(); ``` From 8418987689c874f7a32c87b40d11cecb3ca34553 Mon Sep 17 00:00:00 2001 From: abhilash2in Date: Fri, 19 Feb 2016 20:48:52 +0530 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 542664f238..a46c1775c3 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ A detailed tutorial is available here: * By default it will use a path of /parse for the API routes. To change this, or use older client SDKs, run `scalingo env-set PARSE_MOUNT=/1` * Deploy it with: `git push scalingo master` -### Using it +##### Using it You can use the REST API, the JavaScript SDK, and any of our open-source SDKs: From bf0e656bc59fea57c9ffb91f30bf09b356f70a52 Mon Sep 17 00:00:00 2001 From: abhilash2in Date: Fri, 19 Feb 2016 20:49:56 +0530 Subject: [PATCH 4/5] highlight 'using it' to separate it from deploying it --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a46c1775c3..6a9c9ddeba 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ A detailed tutorial is available here: * By default it will use a path of /parse for the API routes. To change this, or use older client SDKs, run `scalingo env-set PARSE_MOUNT=/1` * Deploy it with: `git push scalingo master` -##### Using it +# Using it You can use the REST API, the JavaScript SDK, and any of our open-source SDKs: From 289a1b6315476a32e3e74cb01801983dbdfe84d0 Mon Sep 17 00:00:00 2001 From: abhilash2in Date: Fri, 19 Feb 2016 20:56:40 +0530 Subject: [PATCH 5/5] application class comment --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6a9c9ddeba..2c18358642 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,8 @@ obj.save().then(function(obj) { Example using it on Android: ``` +//in your application class + Parse.initialize(new Parse.Configuration.Builder(getApplicationContext()) .applicationId("myAppId") .clientKey("myClientKey")