tag:blogger.com,1999:blog-2084886488667928973.post2647885459776040571..comments2024-03-20T05:01:28.883-07:00Comments on Android Tutorials: Play Video From raw Folder In Androidsawanhttp://www.blogger.com/profile/05869050216134132748noreply@blogger.comBlogger41125tag:blogger.com,1999:blog-2084886488667928973.post-14510656374955406882016-05-26T09:46:11.078-07:002016-05-26T09:46:11.078-07:00getWindow().setFormat(PixelFormat.TRANSLUCENT);
Vi...getWindow().setFormat(PixelFormat.TRANSLUCENT);<br />VideoView videoHolder = new VideoView(this);<br />//if you want the controls to appear<br />videoHolder.setMediaController(new MediaController(this));<br />Uri video = Uri.parse("android.resource://" + getPackageName() + "/" <br />+ R.raw.your_raw_file); //do not add any extension<br />//if your file is named sherif.mp4 and Anonymoushttps://www.blogger.com/profile/06266814360528762339noreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-65675548060435966762015-11-05T15:11:04.044-08:002015-11-05T15:11:04.044-08:00it worked few days ago but suddenly it says that&q...it worked few days ago but suddenly it says that"can't play video" i checked everything but can't seem to find the problem.what do you guys think the problem is?i badly need to fix this thank you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-17439181026162281072014-03-05T17:19:39.754-08:002014-03-05T17:19:39.754-08:00Thanks!Thanks!Anonymoushttps://www.blogger.com/profile/02145404024775781726noreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-32824316892041844122014-02-24T04:56:46.463-08:002014-02-24T04:56:46.463-08:00how does the video view become full screen. I kee...how does the video view become full screen. I keep getting a half screen video view.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-52607949514358926312013-12-28T06:27:55.774-08:002013-12-28T06:27:55.774-08:00hi I tried everything that is written but I can...hi I tried everything that is written but I can't find the application when playing it in the emulator it says, [2013-12-28 22:23:30 - Video Testing] emulator-5554 disconnected! Cancelling 'com.android.image.Image activity launch'! and the emulator disconnects<br /><br />I don't know what the problem is, can you guys help me :(Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-44299329756852959952013-11-05T05:21:41.769-08:002013-11-05T05:21:41.769-08:00hihiAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-49046156763835511452013-08-31T08:23:33.612-07:002013-08-31T08:23:33.612-07:00Post is nicely written and it contains many good t...Post is nicely written and it contains many good things for me. I am glad to find your impressive way of writing the post. learn more about <a href="http://www.ivideotool.com/how-to/convert-mts-to-mov-mac.html" rel="nofollow">convert mts to mov on mac</a> at http://www.ivideotool.com/videotoolhttp://www.ivideotool.comnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-30122503336694010932013-08-12T20:22:00.280-07:002013-08-12T20:22:00.280-07:00The method is great, but I think you can convert t...The method is great, but I think you can convert the raw video to other formats to replay. I have been using abettersoft to convert <a href="http://www.abettersoft.com/how-to/convert-avi-to-mov-mac.html" rel="nofollow">avi to mov on Mac</a> for enjoy on pc, here is detailed guide:http://www.abettersoft.com/how-to/convert-avi-to-mov-mac.html. It can rip DVD to AVI, MP4, MOV, MKV, WMV, DivX, XviD, abettersofthttp://www.abettersoft.com/noreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-10667759898388271582013-07-18T00:19:13.358-07:002013-07-18T00:19:13.358-07:00Thanks! this tutorial helps a lot. had a problem i...Thanks! this tutorial helps a lot. had a problem in playing video it says "can't play video" but I realized I saved a zipped .mp4 file in raw :P .. so I extracted it and save unzipped file.. and it works .. thanks!Anonymoushttps://www.blogger.com/profile/17613716667676003098noreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-54106179306621062042013-07-04T03:36:49.445-07:002013-07-04T03:36:49.445-07:00Thanks for u r valuable tutorial......
its working...Thanks for u r valuable tutorial......<br />its working<br />Anonymoushttps://www.blogger.com/profile/07844928843432345851noreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-68838324367096279582013-07-01T19:50:51.801-07:002013-07-01T19:50:51.801-07:00how to play videos if the video view is on another...how to play videos if the video view is on another activity?Anonymoushttps://www.blogger.com/profile/12488510194934364436noreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-23658362913880675952013-06-21T08:17:11.492-07:002013-06-21T08:17:11.492-07:00Your code it working but i can't see the video...Your code it working but i can't see the video only listing the audio.<br />please sir help meAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-24764992380246818222013-06-21T07:57:09.594-07:002013-06-21T07:57:09.594-07:00why my vidio only sound and the screen only black ...why my vidio only sound and the screen only black not a picture???Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-5560477342078516462013-05-31T00:56:20.766-07:002013-05-31T00:56:20.766-07:00hi there, there are many free video converters on ...hi there, there are many free video converters on the web. just google it you will find many great result. best keylogger softwarehttp://www.anykeylogger.comnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-86624651672189242192013-01-16T06:06:13.045-08:002013-01-16T06:06:13.045-08:00IT WORK FOR ME BUT THE VIDEO PLAY VERY SLOW
IT WORK FOR ME BUT THE VIDEO PLAY VERY SLOW<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-10868555113419881522012-10-14T04:52:22.755-07:002012-10-14T04:52:22.755-07:00I just solved the "Sorry, this video cannot b...I just solved the "Sorry, this video cannot be played" by a simple stupid mistake I had not looked at keenly. I had left the R.raw.video in double qoutes. so "R.raw.video" doesnt work. Problem of just copying and pastig....lolest.....Popenoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-57629421182669884232012-10-03T06:13:54.871-07:002012-10-03T06:13:54.871-07:00Not working!!! I have error "Sorry, this vide...Not working!!! I have error "Sorry, this video cannot be played". Please, help me!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-63310602617683445622012-09-26T08:04:47.417-07:002012-09-26T08:04:47.417-07:00not workingnot workingAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-75751517855821032852012-09-10T06:58:29.778-07:002012-09-10T06:58:29.778-07:00Hi, I'm still facing a problem and it is that ...Hi, I'm still facing a problem and it is that the audio is working fine but not the video. Its an mp4 file.mp4 format to mov machttp://www.ilikemall.com/how-to/convert-mp4-to-mov-mac.htmlnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-66703817940130978192012-03-05T04:16:01.730-08:002012-03-05T04:16:01.730-08:00Hello Sir,
Your code it working but i can't se...Hello Sir,<br />Your code it working but i can't see the video only listing the audio.<br />please sir help meNikunjhttps://www.blogger.com/profile/03664556868195643894noreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-20503614618717034622011-11-14T23:11:30.658-08:002011-11-14T23:11:30.658-08:00can the owner of the post incorporate the comments...can the owner of the post incorporate the comments and make the original post error free?<br />also i can hear audio, but cannot see video for mp4 file, with above code.<br />same file plays fine on windows with vlc.MKMAhttps://www.blogger.com/profile/01295629972825039714noreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-84249480937474360702011-11-09T19:50:26.178-08:002011-11-09T19:50:26.178-08:00yes, it's working fine for me... Thank for th...yes, it's working fine for me... Thank for this post, it was very helpful...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-87977385748713300282011-11-03T22:42:56.689-07:002011-11-03T22:42:56.689-07:00Uri uri = Uri.parse("android.resource://"...Uri uri = Uri.parse("android.resource://"+getPackageName() + "/"+R.raw.video);<br />hey this is not working for me....<br />its giving file can not play again and again...<br />i have created raw folder inside res and saved the video having file extension mp4. please tell me the fault...sujalnoreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-41899053037064140802011-10-30T02:26:14.540-07:002011-10-30T02:26:14.540-07:00Thanks a bunch. It worked when I used
Uri uri = U...Thanks a bunch. It worked when I used <br />Uri uri = Uri.parse("android.resource://"+getPackageName() + "/"+R.raw.video);viru5detectedhttps://www.blogger.com/profile/18201306216921022286noreply@blogger.comtag:blogger.com,1999:blog-2084886488667928973.post-51144941437818970912011-09-09T22:52:48.385-07:002011-09-09T22:52:48.385-07:00Thank you. This was the missing link for me. Reall...Thank you. This was the missing link for me. Really helpful code sample.<br /><br /><br />Uri uri = Uri.parse("android.resource://"+getPackageName() + "/"+R.raw.video);Anonymousnoreply@blogger.com