Tuesday, January 28, 2014

android homemade software how to add to the Open? ?


            
Recently made a simple video player, two activity, the first activity is to list all of the videos can be played on the sd card, the second activity is the player interface. Now click on the first activity of video files, you can go to the second activity for playback.

Sd card files in the browser, such as using ES file browser, and when browsing the directory below mp4 video player, etc., when clicked opens up a way to select the interface, there are three options: ES player, QQ video, movies. I want the players to produce their own now open in this way, to how to do it. . .
Reply:
In the manifest file -> activity Add











This put the current program is registered as can open / view files of all types.
Or to view jpeg, mimeType should be changed: image / jpeg
Default open the picture: android: mimeType = "image / *"
Default Open Audio: android: mimeType = "audio / *"
Default Open Video: android: mimeType = "video / *"
You can also specify some specific types of files, such as software only open mp3 files, then:. Android: mimeType = "audio/mp3"
When the file manager click on any file, the system will try to execute your program.

Try it landlord! !


Reply:
Learn. . . Thank you
Reply:
sis_ying solved the problem yet
Reply:
Results are posted, and certainly solved
Reply:
cited a floor lizhengjun2010 reply:
in the manifest file - activity to add
>










This put the current program is registered as can open / view files of all types.
Or to view jpeg, mimeType should be changed: image / jpeg
Default open the picture: android: mimeType = "image / *"
Default Open Audio: android: mimeType = "audio / *"
Default Open Video: android: mimeType = "video / *"
You can also specify some specific types of files, such as software only open mp3 files, then:. Android: mimeType = "audio/mp3"
When the file manager click on any file, the system will try to execute your program.

Try it landlord! !

How to get the path and pass the video of it? ? ?
Reply:
Thank learn

No comments:

Post a Comment