|
@@ -45,6 +45,7 @@ public class SplashActivity extends AppCompatActivity {
|
|
|
if (null != uri) {
|
|
if (null != uri) {
|
|
|
Log.i("APP# SplashActivity | onCreate", "|" + uri.toString());
|
|
Log.i("APP# SplashActivity | onCreate", "|" + uri.toString());
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
final String param = null != uri ? uri.getQueryParameter(ShareKakaoTalk.CONTENTS_KEY) : "";
|
|
final String param = null != uri ? uri.getQueryParameter(ShareKakaoTalk.CONTENTS_KEY) : "";
|
|
|
getIntent().setData(null);
|
|
getIntent().setData(null);
|
|
|
|
|
|
|
@@ -77,7 +78,7 @@ public class SplashActivity extends AppCompatActivity {
|
|
|
Intent intent = new Intent(this, MainActivity.class);
|
|
Intent intent = new Intent(this, MainActivity.class);
|
|
|
intent.putExtra(ScreenStarter.FLAG_FRAGMENT, fragmentFlag);
|
|
intent.putExtra(ScreenStarter.FLAG_FRAGMENT, fragmentFlag);
|
|
|
intent.putExtra(ScreenStarter.SHARE_PARAMETER, param);
|
|
intent.putExtra(ScreenStarter.SHARE_PARAMETER, param);
|
|
|
- intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
|
|
|
|
+ intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
|
|
|
|
|
startActivity(intent);
|
|
startActivity(intent);
|
|
|
}
|
|
}
|
|
@@ -86,6 +87,7 @@ public class SplashActivity extends AppCompatActivity {
|
|
|
Intent intent = new Intent(this, MainActivity.class);
|
|
Intent intent = new Intent(this, MainActivity.class);
|
|
|
intent.putExtra(ScreenStarter.FLAG_FRAGMENT, fragmentFlag);
|
|
intent.putExtra(ScreenStarter.FLAG_FRAGMENT, fragmentFlag);
|
|
|
intent.putExtra(ScreenStarter.SHARE_PARAMETER, param);
|
|
intent.putExtra(ScreenStarter.SHARE_PARAMETER, param);
|
|
|
|
|
+ intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
|
|
|
|
|
startActivity(intent);
|
|
startActivity(intent);
|
|
|
}
|
|
}
|
|
@@ -97,6 +99,42 @@ public class SplashActivity extends AppCompatActivity {
|
|
|
finish();
|
|
finish();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ protected final void onRestoreInstanceState(Bundle savedInstanceState) {
|
|
|
|
|
+ super.onRestoreInstanceState(savedInstanceState);
|
|
|
|
|
+ Log.i("APP# SplashActivity | onRestoreInstanceState", "| >>>>>>>>>>>>>> " + this.getClass().getSimpleName() + " HC: " + this.hashCode());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ protected final void onRestart() {
|
|
|
|
|
+ Log.i("APP# SplashActivity | onRestart", "| >>>>>>>>>>>>>> " + this.getClass().getSimpleName() + " HC: " + this.hashCode());
|
|
|
|
|
+ super.onRestart();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ protected final void onStart() {
|
|
|
|
|
+ Log.i("APP# SplashActivity | onStart", "| >>>>>>>>>>>>>> " + this.getClass().getSimpleName() + " HC: " + this.hashCode());
|
|
|
|
|
+ super.onStart();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ protected final void onResume() {
|
|
|
|
|
+ Log.i("APP# SplashActivity | onResume", "| >>>>>>>>>>>>>> " + this.getClass().getSimpleName() + " HC: " + this.hashCode());
|
|
|
|
|
+ super.onResume();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ protected final void onPause() {
|
|
|
|
|
+ Log.i("APP# SplashActivity | onPause", "| <<<<<<<<<<<<< " + this.getClass().getSimpleName() + " HC: " + this.hashCode());
|
|
|
|
|
+ super.onPause();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ protected final void onStop() {
|
|
|
|
|
+ Log.i("APP# SplashActivity | onStop", "| <<<<<<<<<<<<< " + this.getClass().getSimpleName() + " HC: " + this.hashCode());
|
|
|
|
|
+ super.onStop();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
protected void requestPermissions() {
|
|
protected void requestPermissions() {
|
|
|
PermissionUtil.requestPermissions(this, new String[]{Manifest.permission.READ_PHONE_STATE}, 99);
|
|
PermissionUtil.requestPermissions(this, new String[]{Manifest.permission.READ_PHONE_STATE}, 99);
|
|
|
}
|
|
}
|
|
@@ -121,6 +159,7 @@ public class SplashActivity extends AppCompatActivity {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
protected void onDestroy() {
|
|
protected void onDestroy() {
|
|
|
|
|
+ Log.i("APP# SplashActivity | onDestroy", "| <<<<<<<<<<<<< " + this.getClass().getSimpleName() + " HC: " + this.hashCode());
|
|
|
super.onDestroy();
|
|
super.onDestroy();
|
|
|
|
|
|
|
|
if (null != starter) {
|
|
if (null != starter) {
|