I am beginner in learning android java. I learning the java android tutorial from Youtube and I follow exactly the coding from the video, but my coding showing "cannot resolve symbol 'tag' " on the android studio. May I know what is the problem? and hope to get explanation from all the master here.
package com.NewApplicationLifeCycle;
import ...
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Log.i( tag: "State", msg: "onCreate" );
}
@Override
protected void onStart() {
super.onStart();
Log.i( tag: "State", msg: "onStart" );
}
@Override
protected void onResume() {
super.onResume();
Log.i( tag: "State", msg: "onResume" );
}
@Override
protected void onPause() {
super.onPause();
Log.i( tag: "State", msg: "onPause" );
}
@Override
protected void onStop() {
super.onStop();
Log.i( tag: "State", msg: "onStop" );
}
@Override
protected void onRestart() {
super.onRestart();
Log.i( tag: "State", msg: "onRestart" );
}
@Override
protected void onDestroy() {
super.onDestroy();
Log.i( tag: "State", msg: "onDestroy" );
}
}