title: Unable to save data on heroku in android studio
body: <p>I deployed Parse Server example (<a href="https://github.com/ParsePlatform/parse-server-example" rel="nofollow">https://github.com/ParsePlatform/parse-server-example</a>) to Heroku. After following many tutorials, I tried to save a simple data onto the MongoDB add-on in Heroku but I get a Save Failed message according to my code i demanded Save Failed or Save Succeeded. I also checked it on the Parse-Dashboard locally as well as from the MongoDB website, but i got nothing over there.<br>
  Here is my Code:
  MainActivity.java</p>
  
  <pre><code>package com.example.parsedemo;
  
  import android.os.Bundle;
  import android.support.design.widget.FloatingActionButton;
  import android.support.design.widget.Snackbar;
  import android.support.v7.app.AppCompatActivity;
  import android.support.v7.widget.Toolbar;
  import android.view.View;
  import android.view.Menu;
  import android.view.MenuItem;
  import com.parse.ParseAnalytics;
  
  public class MainActivity extends AppCompatActivity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      ParseAnalytics.trackAppOpenedInBackground(getIntent());
  
      Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
  
      FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
      fab.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                      .setAction("Action", null).show();
          }
      });
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.menu_main, menu);
      return true;
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      // Handle action bar item clicks here. The action bar will
      // automatically handle clicks on the Home/Up button, so long
      // as you specify a parent activity in AndroidManifest.xml.
      int id = item.getItemId();
  
      //noinspection SimplifiableIfStatement
      if (id == R.id.action_settings) {
          return true;
      }
  
      return super.onOptionsItemSelected(item);
  }
  }
  </code></pre>
  
  <p>StarterApplication.java:</p>
  
  <pre><code>package com.example.parsedemo;
  
  import android.app.Application;
  import android.util.Log;
  
  import com.parse.Parse;
  import com.parse.ParseACL;
  import com.parse.ParseException;
  import com.parse.ParseObject;
  import com.parse.ParseUser;
  import com.parse.SaveCallback;
  
  public class StarterApplication extends Application {
  
  @Override
  public void onCreate() {
      super.onCreate();
  
      // Enable Local Datastore.
      Parse.enableLocalDatastore(this);
  
      // Add your initialization code here
      Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
                      .applicationId("instagram666666")
                      .clientKey(null)
                      .server("http://instagram666666.herokuapp.com/parse/")
                      .build()
      );
  
      ParseObject gameScore = new ParseObject("GameScore");
      gameScore.put("score", 1337);
      gameScore.put("playerName", "Sean Plott");
      gameScore.put("cheatMode", false);
      gameScore.saveInBackground(new SaveCallback() {
          public void done(ParseException e) {
              if (e == null) {
                  Log.i("Parse", "Save Succeeded");
              } else {
                  Log.i("Parse", "Save Failed");
              }
          }
      });
  
  
      ParseUser.enableAutomaticUser();
      ParseACL defaultACL = new ParseACL();
      // Optionally enable public read access.
      // defaultACL.setPublicReadAccess(true);
      ParseACL.setDefaultACL(defaultACL, true);
  }
  
  }
  </code></pre>
  
  <p>Gradle.build :</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
  compileSdkVersion 23
  buildToolsVersion "23.0.1"
  
  defaultConfig {
      applicationId "com.example.parsedemo"
      minSdkVersion 14
      targetSdkVersion 23
      versionCode 1
      versionName "1.0"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
  }
  
  dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  testCompile 'junit:junit:4.12'
  compile 'com.android.support:appcompat-v7:23.1.1'
  compile 'com.android.support:design:23.1.1'
  compile files('libs/bolts-tasks-1.4.0.jar')
  compile files('libs/parse-android-1.13.1.jar')
  }
  </code></pre>
  
  <p>AndroidManifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.parsedemo"&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"
      android:name= '.StarterApplication'&gt;
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name"
          android:theme="@style/AppTheme.NoActionBar"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>I also imported required libraries as required, but still unable to Save data on the DB. I've been stuck here for around a week!<br>
  I am using version 1.5 of Android Studio.</p>