/** * When created, the application fires an intent to create the AllJoyn service. This acts as sort * of a combined view/controller in the overall architecture. */ public void onCreate() { Log.i(TAG, "onCreate()"); // setup parse ParseObject.registerSubclass(Device.class); ParseObject.registerSubclass(Group.class); ParseObject.registerSubclass(Media.class); Parse.initialize( this, "nrXYlTqKzxmp0mSynnblthvX5HcwdNykXTNoekWs", "lNCLSapoIIUCVylghKSR0lT4Gvb78FEo7kjHToSd"); Parse.setLogLevel(Parse.LOG_LEVEL_VERBOSE); PushService.startServiceIfRequired(getBaseContext()); ParseACL defaultACL = new ParseACL(); defaultACL.setPublicReadAccess(true); ParseACL.setDefaultACL(defaultACL, true); PACKAGE_NAME = getApplicationContext().getPackageName(); Intent intent = new Intent(this, AllJoynService.class); mRunningService = startService(intent); if (mRunningService == null) { Log.i(TAG, "onCreate(): failed to startService()"); } }