You must call Parse.initialize() before using Parse library on Android

后端 未结 1 968
感情败类
感情败类 2021-01-22 13:07

I\'m developing a photo sharing app for Android that uses the Parse.com platform for the backend.

I have a Main Activity where I\'m fetching the photos from the Parse s

相关标签:
1条回答
  • 2021-01-22 13:29
    import com.parse.Parse;
        import android.app.Application;
    
        public class App extends Application {
          @Override
          public void onCreate() {
            super.onCreate();
    
            Parse.enableLocalDatastore(this);
            Parse.initialize(this, PARSE_APPLICATION_ID, PARSE_CLIENT_KEY);
          }
        }
    

    AndroidManifest.xml

    <application
            android:name="yourpackagename.App"
    .
    .
    .
    </application>
    
    0 讨论(0)
提交回复
热议问题