@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();
  }
 @Override
 public void onCreate() {
   super.onCreate();
   // Enable Local Datastore.
   Parse.enableLocalDatastore(this);
   Parse.initialize(this, "KEY for APP", "KEY");
 }
 @Override
 public void onCreate() {
   super.onCreate();
   Parse.enableLocalDatastore(this);
   Parse.initialize(this, GlobalConstants.PARSE_APP_ID, GlobalConstants.PARSE_CLIENT_KEY);
   ParseFacebookUtils.initialize(this);
 }
 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);
 }
  @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);
  }
 public ParseService initialize(Context context) {
   Parse.initialize(
       context,
       Configurations.getInstance().getProperty("PARSE_USER_ID"),
       Configurations.getInstance().getProperty("PARSE_USER_SECRET"));
   return this;
 }
 private void initParse() {
   Parse.enableLocalDatastore(this);
   Parse.initialize(
       this,
       "iYp5DMTOJHG4PRFqwXDG35dfquBL2nCjq0wTnFhQ",
       "OzTIYKiuPtsfyQ0Mzphj7mwAVRf44t55P4nwDWug");
 }
  @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());
  }
  /**
   * Authenticates this client as belonging to your application.
   *
   * <p>You must define {@code com.parse.APPLICATION_ID} and {@code com.parse.CLIENT_KEY} {@code
   * meta-data} in your {@code AndroidManifest.xml}:
   *
   * <pre>
   * &lt;manifest ...&gt;
   *
   * ...
   *
   *   &lt;application ...&gt;
   *     &lt;meta-data
   *       android:name="com.parse.APPLICATION_ID"
   *       android:value="@string/parse_app_id" /&gt;
   *     &lt;meta-data
   *       android:name="com.parse.CLIENT_KEY"
   *       android:value="@string/parse_client_key" /&gt;
   *
   *       ...
   *
   *   &lt;/application&gt;
   * &lt;/manifest&gt;
   * </pre>
   *
   * <p>This must be called before your application can use the Parse library. The recommended way
   * is to put a call to {@code Parse.initialize} in your {@code Application}'s {@code onCreate}
   * method:
   *
   * <p>
   *
   * <pre>
   * public class MyApplication extends Application {
   *   public void onCreate() {
   *     Parse.initialize(this);
   *   }
   * }
   * </pre>
   *
   * @param context The active {@link Context} for your application.
   */
  public static void initialize(Context context) {
    Context applicationContext = context.getApplicationContext();
    String applicationId;
    String clientKey;
    Bundle metaData = ManifestInfo.getApplicationMetadata(applicationContext);
    if (metaData != null) {
      applicationId = metaData.getString(PARSE_APPLICATION_ID);
      clientKey = metaData.getString(PARSE_CLIENT_KEY);

      if (applicationId == null) {
        throw new RuntimeException(
            "ApplicationId not defined. "
                + "You must provide ApplicationId in AndroidManifest.xml.\n"
                + "<meta-data\n"
                + "    android:name=\"com.parse.APPLICATION_ID\"\n"
                + "    android:value=\"<Your Application Id>\" />");
      }
      if (clientKey == null) {
        throw new RuntimeException(
            "ClientKey not defined. "
                + "You must provide ClientKey in AndroidManifest.xml.\n"
                + "<meta-data\n"
                + "    android:name=\"com.parse.CLIENT_KEY\"\n"
                + "    android:value=\"<Your Client Key>\" />");
      }
    } else {
      throw new RuntimeException("Can't get Application Metadata");
    }
    initialize(context, applicationId, clientKey);
  }
Beispiel #10
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();
    }
  }
Beispiel #11
0
  public void onCreate() {
    super.onCreate();

    Parse.initialize(
        this,
        "fXIMjogK4OsawEieTVPv4vjQ67xqoOa67henEG27",
        "plHI5I9bt5RJIgmEoWeOruc203uUOIJHtSrKRsIU");
  }
Beispiel #12
0
 @Override
 public void onCreate() {
   super.onCreate();
   Parse.initialize(
       this,
       "crip4hmJ1EipdkXIAcZKfJo0tRjXq5zteh563sFo",
       "7YoYXvECojOCuk1F6kTGFzpl3pyKxpgJsq7hTIa0");
 }
  @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");
  }
  /**
   * 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);
  }
  @Override
  public void onCreate() {
    super.onCreate();

    Parse.initialize(
        this,
        "MtDKgcvM0QPWi9a5PxOpI7I3K2ZAbWdQfZzuo9sK",
        "rIcDSaJzjQfspENMZxL2cJ7IV8GBEJBUmFYfaG4l");
  }
Beispiel #16
0
 @Override
 public void onCreate() {
   super.onCreate();
   Parse.enableLocalDatastore(this);
   Parse.initialize(
       this,
       "jlsX029F3w8oAtalZNVISW4ePBl4MUcqZdk2Imns",
       "AaIx1BIJQB2tlIxXhNlEgiWOHwIfsOJAlxk8R7kL");
 }
Beispiel #17
0
 @Override
 public void onCreate() {
   super.onCreate();
   Parse.enableLocalDatastore(this);
   Parse.initialize(
       this,
       "Mqklk5SAQ8Ly56ELccHXsHZR0zWO6clNXgVEVJCx",
       "qDIKbeShJJ1aNzy2PDYiifwfiCbxts9IXg5yxF7H");
 }
 @Override
 public void onCreate() {
   super.onCreate();
   Parse.initialize(
       this,
       "IF7m1lvlDcDRueKjYUg8RnfyTNAKVh35tJKyKKHp",
       "uzKrUwoWXNJ6Otb5mdQIlxXc5jmed1cdSB8R15ZX");
   ParseInstallation.getCurrentInstallation().saveInBackground();
 }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_parse_application);

    Parse.initialize(
        this,
        "yPDx8Yg6MmJ2ZCbGvQeGWkWO8Y2gLq5NWodRLAV2",
        "80EhmUpFWIGxwngEWaz42t9cW3FGSKaAaZJhoBUO");
  }
 @Override
 public void onCreate() {
   super.onCreate();
   ParseObject.registerSubclass(Meal.class);
   Parse.initialize(
       this,
       "oVZnwF0tPkfqmKqn0T8q4Qom4hjkvLOYloiSEaZC",
       "P1zUJRDiJfo7L8uo5wY8b02FBTrmWsDGM3O4WYaq");
   singleton = this;
 }
Beispiel #21
0
  @Override
  public void onCreate() {
    // Enable Local Datastore.
    Parse.enableLocalDatastore(this);

    Parse.initialize(
        this,
        "HcI2m7OpUO5NopVxBh5R56MM1AaRAKDP0iRIm3BM",
        "GGmKc7OP4uCpYurOahRY7pWbRC3oIFkdBVsHWunj");
  }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // initialize PARSE
    Parse.initialize(
        getActivity(),
        "TsVbzF7jXzY1C0o86V2xxAxgSxvy4jmbyykOabPl",
        "VzamwWm4WswbDFxrxos2oSerQ2Av4RM6J5mNnNgr");
  }
Beispiel #23
0
 private void initParse() {
   Parse.initialize(this, getString(R.string.parseAppId), getString(R.string.parseAppKey));
   ParseObject.registerSubclass(Tour.class);
   ParseObject.registerSubclass(Node.class);
   CalligraphyConfig.initDefault(
       new CalligraphyConfig.Builder()
           .setDefaultFontPath("fonts/Roboto-Light.ttf")
           .setFontAttrId(R.attr.fontPath)
           .build());
 }
Beispiel #24
0
  @Override
  public void onCreate() {
    super.onCreate();

    Firebase.setAndroidContext(this);

    ParseObject.registerSubclass(ParseLocation.class);

    Parse.initialize(this, getString(R.string.applicationId), getString(R.string.clientId));
  }
Beispiel #25
0
 @Override
 public void onCreate() {
   super.onCreate();
   Log.i("work_flow", new Throwable().getStackTrace()[0].toString());
   Parse.initialize(
       this,
       "gWvyAqYrAzuBjrwLGniyzy0y0he6Eu7npDWr2Y0t",
       "lWyc3V9GCxPLJZkpwem6Z7jcQd3n4tOKcCl7PySp");
   ParseInstallation.getCurrentInstallation().saveInBackground();
 }
  @Override
  public void onCreate() {
    super.onCreate();

    Parse.initialize(
        this,
        "P0zIagKQvEGdopuoLZuucgzC7H4oz64U7GZkGe1n",
        "mT15MV8OFEMTDNQaGU5XdLHTXMsNxnUxJdXVp4O3");
    ParseInstallation.getCurrentInstallation().saveInBackground();
  }
Beispiel #27
0
  @Override
  public void onCreate() {
    // TODO Auto-generated method stub
    super.onCreate();

    Parse.initialize(
        this,
        "3Qz3hZj9GgAU1fyBhBjIpalcrA6IELyE5DJrklKP",
        "Chu6rYAvC997qG7uGK2dF8wNoUHX51Bdb1nFF1mv");
  }
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_login_activity_main);
		Parse.initialize(this, "CSOvHOL2LAGOOeE8qYerrNjH3NI2cVZ5UBOcHlKe",
				"r4XmfDGswmwsZcSjen84pVrwtNgI7nLjxeqjweZH");
		facadeController = FacadeController.getInstance();
		facadeController.registerActivityToController(this);
		init();

	}
  @Override
  public void onCreate() {
    listaImagenes = new ArrayList<Imagen>(); // MainActivity.basedatos.obtenerTodasImagenes();
    adaptador = new AdaptadorImagen(this, listaImagenes);

    Parse.initialize(
        this,
        "QHkRN9N34gKgDVBqLCcJRet0cX8dhuZLAM1vjkOn",
        "UvCUuRd1eOqVlyBnUawogTMNbTjbSKvE8sc9GXMT");
    ParseInstallation.getCurrentInstallation().saveInBackground();
  }
Beispiel #30
0
  @Override
  public void onCreate() {
    super.onCreate();
    // Enable Local Datastore.
    Parse.enableLocalDatastore(this);

    Parse.initialize(
        this,
        "W02sSJLKjOYpfwGvhnoQnCcEBWE9YaUpyiDo9NDk",
        "mZ4MosRswpsWuxQ2MWu0EOQthayTkyNixAlNS9zr");
  }