Skip to content

Commit

Permalink
Merge pull request BloomBooks#68 from abhilash2in/master
Browse files Browse the repository at this point in the history
Added android equivalent code of Parse.initialize()
  • Loading branch information
drew-gross committed Feb 19, 2016
2 parents df8e4bb + 289a1b6 commit 5f91eed
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -104,4 +104,20 @@ obj.save().then(function(obj) {
}, function(err) { console.log(err); });
```

Example using it on Android:
```
//in your application class
Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
.applicationId("myAppId")
.clientKey("myClientKey")
.server("http://myServerUrl/parse/") // '/' important after 'parse'
.build());
ParseObject testObject = new ParseObject("TestObject");
testObject.put("foo", "bar");
testObject.saveInBackground();
```

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 comments on commit 5f91eed

Please sign in to comment.