文件名称:Android ApiDemos示例解析
- 所属分类:
- 其它资源
- 资源属性:
- 上传时间:
- 2017-12-30
- 文件大小:
- 121kb
- 下载次数:
- 0次
- 提 供 者:
- water*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
如何使用MediaPlayer类来播放声音或是视频。涉及的Activity有三个:
MediaPlayerDemo:主Activity,显示示例列表。
MediaPlayerDemo_Audio: 子Activity,用于播放声音,在Launcher中没有图标。
MediaPlayerDemo_Video: 子Activity,用于播放视频,在Launcher中没有图标。
其中MediaPlayerDemo 使用四个按钮用于显示例子列表:
点击按钮后,触发子Activity,比如”Play video from local file” 将启动MediaPlayerDemo_Audio(How to use the MediaPlayer class to play the sound or the video. There are three Activity involved:
MediaPlayerDemo: Master Activity, showing a list of examples.
MediaPlayerDemo_Audio: child Activity, used for playing sound, and there is no icon in Launcher.
MediaPlayerDemo_Video: child Activity, used to play video, and there is no icon in Launcher.
In which MediaPlayerDemo uses four buttons to display the list of examples:
Click the button, trigger Activity, such as "Play video from local file" will start MediaPlayerDemo_Audio)
MediaPlayerDemo:主Activity,显示示例列表。
MediaPlayerDemo_Audio: 子Activity,用于播放声音,在Launcher中没有图标。
MediaPlayerDemo_Video: 子Activity,用于播放视频,在Launcher中没有图标。
其中MediaPlayerDemo 使用四个按钮用于显示例子列表:
点击按钮后,触发子Activity,比如”Play video from local file” 将启动MediaPlayerDemo_Audio(How to use the MediaPlayer class to play the sound or the video. There are three Activity involved:
MediaPlayerDemo: Master Activity, showing a list of examples.
MediaPlayerDemo_Audio: child Activity, used for playing sound, and there is no icon in Launcher.
MediaPlayerDemo_Video: child Activity, used to play video, and there is no icon in Launcher.
In which MediaPlayerDemo uses four buttons to display the list of examples:
Click the button, trigger Activity, such as "Play video from local file" will start MediaPlayerDemo_Audio)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
Android ApiDemos示例解析.doc | 974408 | 2017-11-22 |