l is type of long ...
so you need to extract long instead of String like
videoLong = extras.getLong("videoId");
so the full implementation of second intent is
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final VideoView videoView;
setContentView(R.layout.activity_play_video);
Bundle extras;
Long videoLong;
if (savedInstanceState == null) {
extras = getIntent().getExtras();
if (extras == null) {
videoLong= null;
} else {
videoLong= extras.getLong("videoId");
System.out.println("video id intent 2 = " + videoLong);
}
}