package com.gnidoc.pre_training;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.PersistableBundle;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.webkit.WebView;
import android.widget.TextView;

public class Splash extends Activity {
    static final String TAG = Splash.class.getSimpleName();

    TextView start, notice, exercise;
    WebView webView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Log.i(TAG, "onCreate");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        start = (TextView) findViewById(R.id.start);
        notice = (TextView) findViewById(R.id.ex);
        exercise = (TextView) findViewById(R.id.notice);

        webView = (WebView) findViewById(R.id.web_view);
    }

    public void goToWiki(View v){
        Intent intent = new Intent(Intent.ACTION_VIEW);
        Uri uri = Uri.parse("https://github.com/kimhs327/mobile_pre_training/wiki");
        intent.setData(uri);
        startActivity(intent);
    }

    public void goToMain(View v){
        Intent intent = new Intent(Splash.this, MainActivity.class);
        startActivity(intent);
    }

    public void goToGithub(View v){
        webView.loadUrl("https://github.com/kimhs327/mobile_pre_training");
    }

    @Override
    protected void onStart() {
        Log.i(TAG, "onStart");
        super.onStart();
    }

    @Override
    protected void onRestart() {
        Log.i(TAG, "onRestart");
        super.onRestart();
    }

    @Override
    protected void onResume() {
        Log.i(TAG, "onResume");
        super.onResume();
    }

    @Override
    protected void onPause() {
        Log.i(TAG, "onPause");
        super.onPause();
    }

    @Override
    protected void onStop() {
        Log.i(TAG, "onStop");
        super.onStop();
    }

    @Override
    protected void onDestroy() {
        Log.i(TAG, "onDestroy");
        super.onDestroy();
    }
}

@@ -498,16 +498,32 @@
 bView;%0A%0A
+    int count;%0A%0A
     @Ove
@@ -708,24 +708,44 @@
 y_splash);%0A%0A
+        count = 0;%0A%0A
         star
@@ -1724,24 +1724,66 @@
 nResume() %7B%0A
+        //TODO %ED%99%94%EB%A9%B4%EC%9D%84 %EB%8B%AB%EC%9D%84%EB%95%8C%EB%A7%88%EB%8B%A4 count %EC%88%AB%EC%9E%90%EB%A5%BC %EC%A6%9D%EA%B0%80%EC%8B%9C%EC%BC%9C%EB%B3%B4%EC%9E%90%0A
         Log.
@@ -1798,17 +1798,33 @@
 onResume
-%22
+, count = %22+count
 );%0A     

add quest for activity life cycle