package com.ldimitrov.burnmessenger;

import android.app.Application;

import com.ldimitrov.burnmessenger.activities.MainActivity;
import com.ldimitrov.burnmessenger.activities.R;
import com.ldimitrov.burnmessenger.util.ParseConstants;
import com.parse.Parse;
import com.parse.ParseInstallation;
import com.parse.ParseUser;
import com.parse.PushService;

public class BurnMessengerApplication extends Application{
	
	@Override
	public void onCreate() {
		super.onCreate();
		Parse.initialize(this, "EgWS4wnqEX5hxmMTOEBp5axx9GcczodBR02CPORM", "nAXp60HEL4Suk3roA5tNmviuLihTCAyujGeXY5Sn");
        PushService.setDefaultPushCallback(this, MainActivity.class, R.drawable.ic_stat_ic_launcher);
        ParseInstallation.getCurrentInstallation().saveInBackground();
	}

    public static void updateParseInstallation(ParseUser user) {
        ParseInstallation installation = ParseInstallation.getCurrentInstallation();
        installation.put(ParseConstants.KEY_USER_ID, user.getObjectId());
        installation.saveInBackground();
    }
}
@@ -489,116 +489,212 @@
 %0D%0A%09%09
-Parse.initialize(this, %22EgWS4wnqEX5hxmMTOEBp5axx9GcczodBR02CPORM%22, %22nAXp60HEL4Suk3roA5tNmviuLihTCAyujGeXY5Sn
+// make sure to change the %22#..#%22 with the actualy keys obtained from Parse.com after registration!%0D%0A%09%09Parse.initialize(this, %22####################################%22, %22#####################################
 %22);%0D
@@ -1152,8 +1152,10 @@
     %7D%0D%0A%7D
+%0D%0A

Update BurnMessengerApplication.java