Hello
I have developed a program where the customer can view some videos, and with this source it works very well:
When the program run, it ask to the customer wich player he wants to use and it works !!
Now I want to develop my player and I need to know:
1) how can I tell to the OS that my program is for "video/*" ?? (so it appeare on list of players)
2) how can read receive parameters (file name of the video) when it is called ???
Many thanks
Sergio
Edit:
I try to insert this in "manifest editor" but my player don't appeare on the list
I have developed a program where the customer can view some videos, and with this source it works very well:
B4X:
Dim ii As Intent
ii.Initialize(ii.ACTION_VIEW, "http://www.sample-videos.com/video/mp4/240/big_buck_bunny_240p_2mb.mp4")
ii.SetType("video/*")
StartActivity(ii)
When the program run, it ask to the customer wich player he wants to use and it works !!
Now I want to develop my player and I need to know:
1) how can I tell to the OS that my program is for "video/*" ?? (so it appeare on list of players)
2) how can read receive parameters (file name of the video) when it is called ???
Many thanks
Sergio
Edit:
I try to insert this in "manifest editor" but my player don't appeare on the list
B4X:
AddActivityText(Main,
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="video/*" />
</intent-filter>)
Last edited: