Right now I am using a static boolean to tell when the initialization has occurred. Is there an easier way to know that I have already called initialize?
Thank you!!
Make a Application Class and in onCreate initialize parse.
public class YourApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Parse.initialize(this, "id","key");
}
}
After this it wont be called again and again.
Also declare it in your manifest
EDIT: This is the only place where you initialize it. And not in the Login Activity or anywhere else.