VideoView cannot be resolved or is not a field
import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.view.Menu; import android.widget.VideoView; public class StudentLife extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_student_life); VideoView videoview = (VideoView) findViewById(R.id.VideoView); Uri uri = Uri.parse("android.resource://"+getPackageName()+"/"+R.raw.learningatgmit); videoview.setVideoURI(uri); videoview.start(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)