Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import android.app.Application;
import android.content.Context;
import androidx.annotation.CallSuper;
import androidx.annotation.NonNull;
public class ProcessAwareApplication extends Application {
@Override
public Context getApplicationContext() {
return this;
}
@Override
public void attachBaseContext(@NonNull Context base) {
super.attachBaseContext(base);
onProcessStarted();
}
@CallSuper
protected void onProcessStarted() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment