other developers (MovieDB, Twitter) Wouldn’t it be cool if we started using our own data? Parse allows us to get a backend up and running really fast OUR DATA!
Set core properties user.setUsername("bob"); user.setPassword("bobspassword"); user.signUpInBackground(new SignUpCallback() { public void done(ParseException e) { if (e == null) { // Hooray! Let them use the app now. } else { e.getCode(); e.printStackTrace(); // Sign up didn't succeed. Look at the ParseException // to figure out what went wrong } } });
Set core properties user.setUsername("bob"); user.setPassword("bobspassword"); user.signUpInBackground(new SignUpCallback() { public void done(ParseException e) { if (e == null) { // Hooray! Let them use the app now. } else { e.getCode(); e.printStackTrace(); // Sign up didn't succeed. Look at the ParseException // to figure out what went wrong } } });
Set core properties user.setUsername("bob"); user.setPassword("bobspassword"); user.signUpInBackground(new SignUpCallback() { public void done(ParseException e) { if (e == null) { // Hooray! Let them use the app now. } else { e.getCode(); e.printStackTrace(); // Sign up didn't succeed. Look at the ParseException // to figure out what went wrong } } });
LogInCallback() { public void done(ParseUser user, ParseException e) { if (user != null) { // Hooray! The user is logged in. } else { // Signup failed. Look at the ParseException to see what happened. } } });
LogInCallback() { public void done(ParseUser user, ParseException e) { if (user != null) { // Hooray! The user is logged in. } else { // Signup failed. Look at the ParseException to see what happened. } } });
super(); } // Constructor with core properties public Post(String description) { super(); setDescription(description); } public String getDescription() { return getString("description"); } // Use put to modify field values public void setDescription(String value) { put("description", value); } }
super(); } // Constructor with core properties public Post(String description) { super(); setDescription(description); } public String getDescription() { return getString("description"); } // Use put to modify field values public void setDescription(String value) { put("description", value); } }
super(); } // Constructor with core properties public Post(String description) { super(); setDescription(description); } public String getDescription() { return getString("description"); } // Use put to modify field values public void setDescription(String value) { put("description", value); } }
super(); } // Constructor with core properties public Post(String description) { super(); setDescription(description); } public String getDescription() { return getString("description"); } // Use put to modify field values public void setDescription(String value) { put("description", value); } }
the data asynchronously post.saveInBackground(new SaveCallback() { @Override public void done(ParseException e) { if (e == null) { // the post was saved and uploaded to parse successfully! } else { // the post did not save successfully for some reason e.getCode(); } } });
the data asynchronously post.saveInBackground(new SaveCallback() { @Override public void done(ParseException e) { if (e == null) { // the post was saved and uploaded to parse successfully! } else { // the post did not save successfully for some reason e.getCode(); } } });
the data asynchronously post.saveInBackground(new SaveCallback() { @Override public void done(ParseException e) { if (e == null) { // the post was saved and uploaded to parse successfully! } else { // the post did not save successfully for some reason e.getCode(); } } });
exactly what we want to happen (for example: start a new Activity) Now we want to utilize implicit intents to let the user take a picture - let’s Android search for all apps that are registered for the action we want to take Intents
a picture and return to our app Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // pass in location where we want the image to be saved intent.putExtra(MediaStore.EXTRA_OUTPUT, uriToSaveImage); // Start the image capture intent to take photo startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE); }
a picture and return to our app Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // pass in location where we want the image to be saved intent.putExtra(MediaStore.EXTRA_OUTPUT, uriToSaveImage); // Start the image capture intent to take photo startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE); }
a picture and return to our app Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // pass in location where we want the image to be saved intent.putExtra(MediaStore.EXTRA_OUTPUT, uriToSaveImage); // Start the image capture intent to take photo startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE); }
a picture and return to our app Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // pass in location where we want the image to be saved intent.putExtra(MediaStore.EXTRA_OUTPUT, uriToSaveImage); // Start the image capture intent to take photo startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE); }
a picture and return to our app Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // pass in location where we want the image to be saved intent.putExtra(MediaStore.EXTRA_OUTPUT, uriToSaveImage); // Start the image capture intent to take photo startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE); }