ruch ruch - 4 months ago 15
Android Question

Where is application class for a project in Android Studio?

I want to integrate my android application with Parse SDK. for that I need to include my parse account credentials in application class onCreate() method.

Answer

Just create another class and extend Application:

public class App extends Application {    
    @Override
    public void onCreate() {
        super.onCreate();
        //Parse SDK stuff goes here
    }
}

Then add extended class name to <application> tag in the manifest file :

android:name=".App"