Parse SDK


 

  1. Push Notification
  2. Back-end Database

 

Steps to do before:

  1. Sign up for Parse SDK at here.
  2. On your dashboard, Create new App and enter details for your app.
  3. Once your App is created, you’ll land up in key sections, where you need to copy both Application ID & Client Key.
  4. On Android Studio use compile 'com.parse:parse-android:1.10.2'

 

1. Push Notification

Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.

Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open src -> package -> Create new class, CustomPushReceiver.java and add following code :

Step 5 : Open src -> package -> Create new class, MyApplication.java and add following code :

Step 6 : Open AndroidManifest.xml and add following code :

Step 7 : Open build.gradle(Module: app) and add following code :

ScreenShot:

new push

push_recipients

push_plaintext

push_testparse_pushnotification parse_pushnotification_text push_recipients_custom

push_recipients_custom_cannel

push_custom_message

parse_pushnotification_channel parse_pushnotification_jsonpush_analytics

Download SourceCode

 

 

2. Back-end Database

Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.

Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open res -> layout -> Create new xml, feeds_list.xml and add following code :

Step 4 : Open res -> layout ->Create new xml, new_feed_entry.xml and add following code :

Step 5 : Open res -> layout ->Create new xml, user_list_item.xml and add following code :

Step 6 : Open src -> package -> MainActivity.java and add following code :

Step 7 : Open src -> package -> Create new class, FeedListActivity.java and add following code :

Step 8 : Open src -> package -> Create new class, FollowUserActivity.java and add following code :

Step 9 : Open src -> package -> Create new class, UsersAdapter.java and add following code :

Step 10 : Open src -> package -> Create new class, MyApplication.java and add following code :

Step 11 : Open AndroidManifest.xml and add following code :

Step 12 : Open build.gradle(Module: app) and add following code :

ScreenShot:

Download SourceCode