android - Mp4 video not playing in Galaxy Tab and in MyTouch? -


i m trying t play mp4 video file url in galaxy tab using both video , web view.

but it's not working in both mod in tab , in mytouch mob,]

for video view using following way :

        @override     public void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.web_main);          try {             videoview = (videoview)findviewbyid(r.id.videoview);              mediacontroller mediacontroller = new mediacontroller(this);             mediacontroller.setanchorview(videoview);             // set video link (mp4 format )             uri video = uri.parse("http://pbkweb.pbkennelclub.com/mobile/62320111a.mp4");         videoview.setmediacontroller(mediacontroller);         videoview.setvideouri(video);         videoview.requestfocus();         videoview.start();        } catch (exception e) {         // todo auto-generated catch block          log.e("exception durin videoview video view ",e.tostring());         e.printstacktrace();     } 

but returning mew nullpointer exception.

pls let me if solution.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -