@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); intent = getIntent(); originalPicturePath = intent.getStringExtra(INTENT_ORIGINAL_PICTURE_PATH); cuttedWidth = intent.getIntExtra(INTENT_CUT_WIDTH, 0); cuttedHeight = intent.getIntExtra(INTENT_CUT_HEIGHT, 0); if (cuttedWidth <= 0) { cuttedWidth = cuttedHeight; } if (cuttedHeight <= 0) { cuttedHeight = cuttedWidth; } if (StringUtil.isNotEmpty(originalPicturePath, true) == false || cuttedWidth <= 0) { Log.e( TAG, "onCreate StringUtil.isNotEmpty(originalPicturePath, true)" + " == false || cuttedWidth <= 0 >> finish(); return;"); showShortToast("图片不存在,请先选择图片"); finish(); return; } // 功能归类分区方法,必须调用<<<<<<<<<< initData(); initView(); initEvent(); // 功能归类分区方法,必须调用>>>>>>>>>> }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.demo_main_activity); // 类相关初始化,必须使用<<<<<<<<<<<<<<<< context = this; isAlive = true; // 类相关初始化,必须使用>>>>>>>>>>>>>>>> // 功能归类分区方法,必须调用<<<<<<<<<< initView(); initData(); initListener(); // 功能归类分区方法,必须调用>>>>>>>>>> }