Guys i am playing an video with a video view .
So far it is cool and video plays nice but the media Controller which
comes at the bottom of the screen appears
only on touch and i want that it should be there permanently.
I googled and i thot the following code should be fine :-
Uri path = Uri.parse("android.resource://com.vid1/" + R.raw.p1);
vv=(VideoView)findViewById(R.id.vv);
getWindow().setFormat(PixelFormat.TRANSLUCENT);
MediaController mc = new MediaController(this);
mc.setAnchorView(vv);
mc.show(0);
mc.requestFocus();
vv.setMediaController(mc);
vv.setVideoURI(path);
and this gives me a force close and a Null Pointer in log cat.
i am sorry this may be a duplicate post but this one has detailed code
and more clear understanding of situation.
Thanks in advance
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en