@@ -0,0 +1,1178 @@
+package com.example.avjindersinghsekhon.minimaltodo.AppDefault;%0A%0Aimport android.os.Bundle;%0Aimport android.support.annotation.LayoutRes;%0Aimport android.support.annotation.NonNull;%0Aimport android.support.annotation.Nullable;%0Aimport android.support.annotation.StringRes;%0Aimport android.support.v4.app.Fragment;%0Aimport android.support.v7.app.AppCompatActivity;%0A%0Aimport com.example.avjindersinghsekhon.minimaltodo.R;%0A%0Apublic abstract class AppDefaultActivity extends AppCompatActivity %7B%0A    @Override%0A    protected void onCreate(@Nullable Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(contentViewLayoutRes());%0A        setUpInitialFragment(savedInstanceState);%0A%0A    %7D%0A%0A    private void setUpInitialFragment(@Nullable Bundle savedInstanceState) %7B%0A        if (savedInstanceState == null) %7B%0A            getSupportFragmentManager()%0A                    .beginTransaction()%0A                    .replace(R.id.fragment_container, createInitialFragment())%0A                    .commit();%0A        %7D%0A    %7D%0A%0A    @LayoutRes%0A    protected abstract int contentViewLayoutRes();%0A%0A    @NonNull%0A    protected abstract Fragment createInitialFragment();%0A%7D%0A

Create AppDefaultActivity