[Android] video: handle MMS intents

Felix Abecassis git at videolan.org
Wed Feb 19 18:39:57 CET 2014


vlc-ports/android | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Wed Feb 19 18:14:23 2014 +0100| [3a892c62a6ce5768d317f0e40b72898218c90d23] | committer: Felix Abecassis

video: handle MMS intents

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=3a892c62a6ce5768d317f0e40b72898218c90d23
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 8a1c84a..0b33afe 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1660,7 +1660,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
             if (getIntent().getData() != null
                     && getIntent().getData().getScheme() != null
                     && getIntent().getData().getScheme().equals("content")) {
-                if(getIntent().getData().getHost().equals("media")) {
+                if(getIntent().getData().getHost().equals("media") || getIntent().getData().getHost().equals("mms")) {
                     // Media URI
                     Cursor cursor = managedQuery(getIntent().getData(), new String[]{ MediaStore.Video.Media.DATA }, null, null, null);
                     int column_index = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATA);



More information about the Android mailing list