[Android] Improve make run

Rafaël Carré git at videolan.org
Fri Mar 28 16:53:09 CET 2014


vlc-ports/android | branch: master | Rafaël Carré <funman at videolan.org> | Fri Mar 28 16:52:29 2014 +0100| [cac47ab6b6eb62b6b6c5fa03618de50ee92248c4] | committer: Rafaël Carré

Improve make run

You can now use make run URL=http://example.org/video.webm

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

 Makefile |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 73f4409..8ab1ace 100644
--- a/Makefile
+++ b/Makefile
@@ -120,7 +120,11 @@ uninstall:
 run:
 	@echo "=== Running VLC on device ==="
 	adb wait-for-device
+ifeq ($(URL),)
 	adb shell am start -n org.videolan.vlc/org.videolan.vlc.gui.MainActivity
+else
+	adb shell am start -n org.videolan.vlc/org.videolan.vlc.gui.video.VideoPlayerActivity $(URL)
+endif
 
 build-and-run: install run
 



More information about the Android mailing list