error not found
Lurker
Hi, I hire a freelancer to make an Android program for me and when I asked him about putting callback or anything else related to it, he said he did.
Can someone tell me what this script will do? He said it will send crash report, crash detail, device detail, and application version. I'm afraid it will cause problem in the future.
Can someone tell me what this script will do? He said it will send crash report, crash detail, device detail, and application version. I'm afraid it will cause problem in the future.
Code:
package com.xxxxxxx;
import android.app.Application;
import com.crashlytics.android.Crashlytics;
import com.xxxxxxx.api.ApiClient;
import com.xxxxxxx.util.ConfigUtils;
import com.parse.Parse;
import com.parse.ParseInstallation;
import io.fabric.sdk.android.Fabric;
public class MainApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Fabric.with(this, new Crashlytics());
String clientId = getString(R.string.client_id);
String clientSecret = getString(R.string.client_secret);
ApiClient.getInstance(this).setClientCredentials(clientId, clientSecret);
String applicationId = getString(R.string.parse_application_id);
String clientKey = getString(R.string.parse_client_key);
Parse.initialize(this, applicationId, clientKey);
ParseInstallation parseInstallation = ParseInstallation.getCurrentInstallation();
parseInstallation.add(Constants.ID, ConfigUtils.get(this, Constants.ID));
parseInstallation.saveInBackground();
}
}