Skip to content

Commit 5f91eed

Browse files
committed
Merge pull request #68 from abhilash2in/master
Added android equivalent code of Parse.initialize()
2 parents df8e4bb + 289a1b6 commit 5f91eed

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ A detailed tutorial is available here:
6868
* 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`
6969
* Deploy it with: `git push scalingo master`
7070

71-
### Using it
71+
# Using it
7272

7373
You can use the REST API, the JavaScript SDK, and any of our open-source SDKs:
7474

@@ -104,4 +104,20 @@ obj.save().then(function(obj) {
104104
}, function(err) { console.log(err); });
105105
```
106106

107+
Example using it on Android:
108+
```
109+
//in your application class
110+
111+
Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
112+
.applicationId("myAppId")
113+
.clientKey("myClientKey")
114+
.server("http://myServerUrl/parse/") // '/' important after 'parse'
115+
.build());
116+
117+
ParseObject testObject = new ParseObject("TestObject");
118+
testObject.put("foo", "bar");
119+
testObject.saveInBackground();
120+
121+
```
122+
107123
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.

0 commit comments

Comments
 (0)