How to Create Android Video Player: 3. Make App Callable from Other Apps to Run Video

In the previous two parts, you can see how you can create simple video player. But what about, if someone wants to play video in your app from his/her app. That means making your app callable from other apps. See Video Player listed in the below image at last position.

How to Create Android Video Player


Topics Covered

Make App Callable


Warning: Cannot modify header information - headers already sent by (output started at /home/bajayk/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop_class.php:3962) in /home/bajayk/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220

To make you application callable to others you need to simply define intent-filters. Like mimeType attribute of the data, action name and category in the AndroidManifest.xml under the activity node. See the below node.
Add this xml into AndroidManifest.xml.


Now create new Activity named “VideoReceiver.java” and get Uri of the Video file from intent object passed by other app. Now convert Uri into as we required it in our app. In this case we need a string path and send it to VideoActivity using Intent Object.

Download Complete Source

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *