文件名称:Android ApiDemos示例解析
-
所属分类:
- 标签属性:
- 上传时间:2017-12-30
-
文件大小:121kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
如何使用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示例解析
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
Android ApiDemos示例解析.doc | 974408 | 2017-11-22 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.