Getting Started with Parse

  • Register and get started with the basic plan
  • Create an application – just requires the name
  • Go to the Data Browser, choose the application and create a Class – this is equivalent to the Table in the DB
  • There are standard fields that come with every class and add additional columns you need – i just created a Name column
  • Start creating rows and add data to them – all the default columns will be auto filled, add values to the custom columns

Creating Table and Data in Parse

  • Copy the Application Id and Client Key from the Overview Page – you will need these to initialize in your android application java code

Keys required for Parse Application

  • In your main activity for the application that uses parse call the following initializeParse method from your onCreate method

              onCreate()

                    public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
initializeParse();
}

initializeParse()

private void initializeParse() {
Parse.initialize(this, “NDUawcm7DwXAkkSnuLMMiG6waq7l2RgOOu6YOpZB”,
“z3OdV85A5Dvr3tj49M06nZ1GdvQFa4nJLzxxW6Ct”);
ParseUser.enableAutomaticUser();
ParseACL defaultACL = new ParseACL();
ParseACL.setDefaultACL(defaultACL, true);
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: