@@ -0,0 +1,1451 @@
+%0Aimport android.app.ActivityOptions;%0Aimport android.content.Intent;%0Aimport android.os.Build;%0Aimport android.support.annotation.Nullable;%0Aimport android.support.v7.app.AppCompatActivity;%0Aimport android.util.Pair;%0Aimport android.view.View;%0A%0Aimport com.umeng.analytics.MobclickAgent;%0A%0Apublic class BaseActivity extends AppCompatActivity %7B%0A%0A%0A    @Override%0A    protected void onResume() %7B%0A        super.onResume();%0A        MobclickAgent.onResume(this);%0A    %7D%0A%0A    @Override%0A    protected void onPause() %7B%0A        super.onPause();%0A        MobclickAgent.onPause(this);%0A    %7D%0A%0A%0A    public void startActivityTrans(Intent intent, @Nullable Pair%3CView, String%3E... sharedElements) %7B%0A        if (sharedElements != null && Build.VERSION.SDK_INT %3E= Build.VERSION_CODES.JELLY_BEAN) %7B%0A            ActivityOptions options = null;%0A%0A            if (Build.VERSION.SDK_INT %3E= Build.VERSION_CODES.LOLLIPOP) %7B%0A                options = ActivityOptions%0A                        .makeSceneTransitionAnimation(this, sharedElements);%0A%0A            %7D%0A            if (options == null) %7B%0A                startActivity(intent);%0A            %7D else %7B%0A                startActivity(intent, options.toBundle());%0A            %7D%0A%0A        %7D else %7B%0A            startActivity(intent);%0A        %7D%0A    %7D%0A%0A    public void finishThis() %7B%0A        if (Build.VERSION.SDK_INT %3E= Build.VERSION_CODES.LOLLIPOP) %7B%0A            finishAfterTransition();%0A        %7D else %7B%0A            finish();%0A        %7D%0A    %7D%0A%7D%0A

Create BaseActivity.java