Ejemplo n.º 1
0
 public static void initializeParseWithApplication(Application app) {
   String appId = getStringByKey(app, "parse_app_id");
   String clientKey = getStringByKey(app, "parse_client_key");
   Parse.enableLocalDatastore(app);
   Log.d(TAG, "Initializing with parse_app_id: " + appId + " and parse_client_key:" + clientKey);
   Parse.initialize(app, appId, clientKey);
 }
Ejemplo n.º 2
0
 @Override
 public void onCreate() {
   super.onCreate();
   // Enable Local Datastore.
   Parse.enableLocalDatastore(this);
   Parse.initialize(this, "KEY for APP", "KEY");
 }
Ejemplo n.º 3
0
 private void initParse() {
   Parse.enableLocalDatastore(this);
   Parse.initialize(
       this,
       "iYp5DMTOJHG4PRFqwXDG35dfquBL2nCjq0wTnFhQ",
       "OzTIYKiuPtsfyQ0Mzphj7mwAVRf44t55P4nwDWug");
 }
Ejemplo n.º 4
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_splash_screen);

    Parse.enableLocalDatastore(this);
    Parse.initialize(
        this,
        "7vSyv24nR2necel9ZHAQhWHkYkRhqTcEZ7jIzBHM",
        "XoFRVbEFvjAlElvdoWJMdEu8TziEb5JXcLulpwti");
    ParseUser.enableRevocableSessionInBackground();
    ParseObject.registerSubclass(Message.class);

    new Handler()
        .postDelayed(
            new Runnable() {
              @Override
              public void run() {
                Intent i = new Intent(SplashScreen.this, MainActivity.class);
                startActivity(i);
                finish();
              }
            },
            SPLASH_TIME_OUT);
  }
  @Override
  public void onCreate() {
    super.onCreate();
    // Register your parse models here
    ParseObject.registerSubclass(Address.class);
    ParseObject.registerSubclass(Gym.class);
    ParseObject.registerSubclass(Message.class);
    ParseObject.registerSubclass(SimpleUser.class);
    ParseObject.registerSubclass(Trainer.class);
    ParseObject.registerSubclass(Review.class);
    ParseObject.registerSubclass(TrainerSlots.class);
    ParseObject.registerSubclass(BlockedSlots.class);
    Parse.enableLocalDatastore(this);
    Parse.initialize(this, APPLICATION_ID, CLIENT_KEY);

    ParsePush.subscribeInBackground(
        "",
        new SaveCallback() {
          @Override
          public void done(ParseException e) {
            if (e == null) {
              Log.d("com.parse.push", "successfully subscribed to the broadcast channel.");
              PushService.setDefaultPushCallback(
                  getBaseContext(),
                  ChatActivity.class); // change the class where u want to go after clicking on noti
              ParseInstallation.getCurrentInstallation().saveInBackground();
            } else {
              Log.e("com.parse.push", "failed to subscribe for push", e);
            }
          }
        });

    FacebookSdk.sdkInitialize(getApplicationContext());
  }
 @Override
 public void onCreate() {
   super.onCreate();
   Parse.enableLocalDatastore(this);
   Parse.initialize(this, GlobalConstants.PARSE_APP_ID, GlobalConstants.PARSE_CLIENT_KEY);
   ParseFacebookUtils.initialize(this);
 }
  /**
   * Called when the application is starting, before any activity, service, or receiver objects
   * (excluding content providers) have been created. Implementations should be as quick as possible
   * (for example using lazy initialization of state) since the time spent in this function directly
   * impacts the performance of starting the first activity, service, or receiver in a process. If
   * you override this method, be sure to call super.onCreate().
   */
  @Override
  public void onCreate() {
    super.onCreate();

    // Enable Local Datastore.
    Parse.enableLocalDatastore(this);

    Parse.initialize(this, APPLICATION_ID, CLIENT_KEY);
  }
Ejemplo n.º 8
0
 @Override
 public void onCreate() {
   super.onCreate();
   Parse.enableLocalDatastore(this);
   Parse.initialize(
       this,
       "Mqklk5SAQ8Ly56ELccHXsHZR0zWO6clNXgVEVJCx",
       "qDIKbeShJJ1aNzy2PDYiifwfiCbxts9IXg5yxF7H");
 }
Ejemplo n.º 9
0
 @Override
 public void onCreate() {
   super.onCreate();
   Parse.enableLocalDatastore(this);
   Parse.initialize(
       this,
       "jlsX029F3w8oAtalZNVISW4ePBl4MUcqZdk2Imns",
       "AaIx1BIJQB2tlIxXhNlEgiWOHwIfsOJAlxk8R7kL");
 }
Ejemplo n.º 10
0
  @Override
  public void onCreate() {
    // Enable Local Datastore.
    Parse.enableLocalDatastore(this);

    Parse.initialize(
        this,
        "HcI2m7OpUO5NopVxBh5R56MM1AaRAKDP0iRIm3BM",
        "GGmKc7OP4uCpYurOahRY7pWbRC3oIFkdBVsHWunj");
  }
Ejemplo n.º 11
0
  @Override
  public void onCreate() {
    super.onCreate();
    // Enable Local Datastore.
    Parse.enableLocalDatastore(this);

    Parse.initialize(
        this,
        "W02sSJLKjOYpfwGvhnoQnCcEBWE9YaUpyiDo9NDk",
        "mZ4MosRswpsWuxQ2MWu0EOQthayTkyNixAlNS9zr");
  }
Ejemplo n.º 12
0
 @Override
 public void onCreate() {
   super.onCreate();
   Parse.enableLocalDatastore(this);
   // Parse.initialize(this, "cSsOJ7LrGXXp06GTCLErgrIcbDZO9FatypbVh6jN",
   // "gZrJlTlNjOJ4qsRYYrluqtkEWCbdto0j64PPvT3I");
   Parse.initialize(
       this,
       "gIpNJkEksy2Z4OAoEnHYLglRtK1tvRBeqllMUO7v",
       "m4tFy2KfZXS53avmSlWbGplhAf6D472k5AA17Tx1");
 }
Ejemplo n.º 13
0
  @Override
  public void onCreate() {
    super.onCreate();
    // Enable Local Datastore.
    Parse.enableLocalDatastore(this);

    Parse.initialize(
        this,
        "hiN9EO2DV0yHWLoBevqB3ROD4g8V25wwFi4h0uXe",
        "R1UN9xkqW9eUQDBbTRdU6j1JUn3hroWwACem7jjG");

    ParseInstallation.getCurrentInstallation().saveInBackground();
  }
Ejemplo n.º 14
0
  @Override
  public void onCreate() {
    super.onCreate();
    // Enable Local Datastore.
    Parse.enableLocalDatastore(this);

    Parse.initialize(
        this,
        "VfjkTB5LnYj46Pb38sWrwun6o5jTOJfC2iKAG3Uf",
        "ZwXix5SI8p93s3FlBZegLMEytb73ma6zKR3oGE51");

    ParseInstallation.getCurrentInstallation().saveInBackground();
  }
 @Override
 public void onCreate() {
   super.onCreate();
   Parse.enableLocalDatastore(this);
   ParseObject.registerSubclass(Circle.class);
   ParseObject.registerSubclass(UserCircle.class);
   ParseObject.registerSubclass(Friend.class);
   FacebookSdk.sdkInitialize(getApplicationContext());
   Parse.initialize(
       this,
       "Bugsei9yjtBNjH51JSerSEniB895r1zLA3NwFDUO",
       "ilswrJMAc26LQCRptGaMn5XiH5uVTIHrkfLP82W3");
   ParseFacebookUtils.initialize(this);
 }
Ejemplo n.º 16
0
  @Override
  public void onCreate() {
    super.onCreate();

    // Enable Local Datastore.
    Parse.enableLocalDatastore(this);

    Parse.initialize(
        this,
        "lbCQLdZ8rXghMiZGCuEpIxvj88Pt5HhXqJ4D4PU0",
        "Yr8YMze4dltTmGbDTwBJ01iByOiaHC7OBnGHIz2e");
    //		 PushService.setDefaultPushCallback(this, ChatListActivity.class
    //		    		);
    ParseInstallation.getCurrentInstallation().saveInBackground();
  }
Ejemplo n.º 17
0
  @Override
  public void onCreate() {
    super.onCreate();

    // Initialize Parse SDK
    Log.d(TAG, "Initializing Parse SDK");
    // Enable Local Datastore.
    Parse.enableLocalDatastore(this);
    Parse.initialize(
        this,
        "q7kS8LbOzzkfTmwWHm7W2I2F6Ly0fYQtNyOvlwR1",
        "4D5RIxEj9OcXQw38uNjbxORvlMI6yZ1cSTsBvEKx");

    GuidTool GT = new GuidTool(ZionBobApp.this);
  }
 public LocalIdManager getLocalIdManager() {
   if (this.localIdManager.get() == null) {
     LocalIdManager localLocalIdManager = new LocalIdManager(Parse.getParseDir());
     this.localIdManager.compareAndSet(null, localLocalIdManager);
   }
   return (LocalIdManager) this.localIdManager.get();
 }
Ejemplo n.º 19
0
  // See: http://stackoverflow.com/q/30135858
  @Override
  public void onCreate() {
    super.onCreate();

    ParseObject.registerSubclass(Album.class);
    ParseObject.registerSubclass(Photo.class);
    ParseObject.registerSubclass(Comment.class);
    ParseObject.registerSubclass(Feed.class);

    Parse.enableLocalDatastore(this);
    Parse.initialize(
        this,
        "JKF0NbqkkyhUFhelLkqQhjbUMeMeqveLPwfcpbvv",
        "90ig345UBcaoriqawpM7iYfrnRueWqNlLYYGL70C");
    ParseFacebookUtils.initialize(this);
  }
 public ParseAnalyticsController getAnalyticsController() {
   if (this.analyticsController.get() == null) {
     this.analyticsController.compareAndSet(
         null, new ParseAnalyticsController(Parse.getEventuallyQueue()));
   }
   return (ParseAnalyticsController) this.analyticsController.get();
 }
  @Override
  public void onCreate() {
    super.onCreate();

    // Enable Local Datastore.
    Parse.enableLocalDatastore(this);

    // Initialization code here
    Parse.initialize(this);

    ParseUser.enableAutomaticUser();
    ParseACL defaultACL = new ParseACL();
    // Optionally enable public read access.
    // defaultACL.setPublicReadAccess(true);
    ParseACL.setDefaultACL(defaultACL, true);
  }
Ejemplo n.º 22
0
 public ParseService initialize(Context context) {
   Parse.initialize(
       context,
       Configurations.getInstance().getProperty("PARSE_USER_ID"),
       Configurations.getInstance().getProperty("PARSE_USER_SECRET"));
   return this;
 }
Ejemplo n.º 23
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    ConnectivityManager connec =
        (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
    if (connec != null && (connec.getNetworkInfo(1).isAvailable() == true)
        || (connec.getNetworkInfo(0).isAvailable() == true)) {
      this.setTitle("New Friend..");

      Parse.initialize(
          this,
          "PV07xPdLpxzJKBKUS2UP6iJ0W9GbEHvmfPMMQovz",
          "OPxrcJKt4Pe26WHvCAeuI86hnGzXjOlO1NmyfJyP");

      WebView myWebView = (WebView) findViewById(R.id.webView1);
      myWebView.loadUrl("http://www.markevansjr.com/AndroidApp/index.html");

      WebSettings webSettings = myWebView.getSettings();
      webSettings.setJavaScriptEnabled(true);
      myWebView.addJavascriptInterface(new WebAppInterface(this), "Android");

      myWebView.setWebViewClient(new WebViewClient());
    } else {
      Toast toast = Toast.makeText(this, "NO CONNECTION", Toast.LENGTH_SHORT);
      toast.show();
    }
  }
Ejemplo n.º 24
0
  @Override
  public void onCreate() {
    super.onCreate();
    mInstance = this;

    FlowManager.init(getApplicationContext());
    Parse.initialize(
        this,
        getResources().getString(R.string.parse_application_id),
        getResources().getString(R.string.parse_client_key));
    ParseObject.registerSubclass(CustomUser.class);
    ParseInstallation.getCurrentInstallation().saveInBackground();

    Boolean isFirstRun =
        getSharedPreferences("PREFERENCE", MODE_PRIVATE).getBoolean("isFirstRun", true);

    if (isFirstRun) {

      Intent myIntent = new Intent(MyVolleySingleton.this, ConfiguracionActivity.class);
      myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
      MyVolleySingleton.this.startActivity(myIntent);
    }

    getSharedPreferences("PREFERENCE", MODE_PRIVATE)
        .edit()
        .putBoolean("isFirstRun", false)
        .commit();
  }
Ejemplo n.º 25
0
  @Override
  public void onCreate() {
    super.onCreate();
    ParseCrashReporting.enable(this);
    Parse.enableLocalDatastore(this);
    Parse.initialize(this, getString(R.string.ApplicationID), getString(R.string.Client_ID));
    // This allows read access to all objects
    PushService.setDefaultPushCallback(this, LoginActivity.class);
    ParseUser.enableAutomaticUser();
    ParseACL defaultACL = new ParseACL();

    // If you would like all objects to be private by default, remove this line.
    defaultACL.setPublicReadAccess(true);

    ParseACL.setDefaultACL(defaultACL, true);
  }
Ejemplo n.º 26
0
  public void onCreate() {
    super.onCreate();

    Parse.initialize(
        this,
        "fXIMjogK4OsawEieTVPv4vjQ67xqoOa67henEG27",
        "plHI5I9bt5RJIgmEoWeOruc203uUOIJHtSrKRsIU");
  }
 public ParseQueryController getQueryController() {
   if (this.queryController.get() == null) {
     localObject = new NetworkQueryController(ParsePlugins.get().restClient());
     if (!Parse.isLocalDatastoreEnabled()) {
       break label63;
     }
   }
   label63:
   for (Object localObject =
           new OfflineQueryController(
               Parse.getLocalDatastore(), (ParseQueryController) localObject);
       ;
       localObject = new CacheQueryController((NetworkQueryController) localObject)) {
     this.queryController.compareAndSet(null, localObject);
     return (ParseQueryController) this.queryController.get();
   }
 }
Ejemplo n.º 28
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    Parse.enableLocalDatastore(this);
    Parse.initialize(
        this,
        "BOiMs1Hj1bSLyLb1p3IHAtRtjQpE4wvOHUtUjnyX",
        "DCYjcPjkyyHg21qN0MOsrKjso0dTVkdB1Gf8AcEH");

    DataOperator dataOperator = DataOperator.getDataOperator();
    dataOperator.loadRestaurantLists();
    // dataOperator.cleanAllLocalData();
    // dataOperator.createTestData();

  }
Ejemplo n.º 29
0
 @Override
 public void onCreate() {
   super.onCreate();
   Parse.initialize(
       this,
       "crip4hmJ1EipdkXIAcZKfJo0tRjXq5zteh563sFo",
       "7YoYXvECojOCuk1F6kTGFzpl3pyKxpgJsq7hTIa0");
 }
Ejemplo n.º 30
0
  @Override
  public void onCreate() {
    super.onCreate();

    Parse.initialize(this, YOUR_APPLICATION_ID, YOUR_CLIENT_KEY);
    ParseUser.enableAutomaticUser();
    TestFlight.takeOff(this, "1d9c1f09-332d-40b5-8b7d-024529b4a2c5");
  }