-
Android VideoView的控件播放视频简单例子
Android VideoView的控件播放视频简单例子,这是最近在写一个Android项目时,需要用到视频播放的功能,索性直接使用了Android系统内自带的VideoView控件,对功能要求不太多,所以也可以满足应用,压缩包内包括了两个VideoView用法的例子:
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// 获取界面上VideoView组件
videoView = (VideoView) findViewById(R.id.video);
// 创建MediaController对象
mController = new MediaController(this);
File video = new File("/mnt/sdcard/test.mp4");
if(video.exists())
{
videoView.setVideoPath(video.getAbsolutePath());
// 设置videoView与mController建立关联
videoView.setMediaController(mController);
// 设置mController与videoView建立关联
mController.setMediaPlayer(videoView);
// 让VideoView获取焦点
videoView.requestFocus();
}
}
- 2022-05-10 21:43:22下载
- 积分:1
-
Ibeacon室内定位三定位角算法
这是一款室内定位APP,采用最简单的蓝牙定位算法。只是简单的实现了功能,存在误差。仅供初学者测试学习。
从Ibeacon采集RSSI数据。使用前记得把Ibeacon的minor调整为1,2,3,4.
开发平台为Android studio,已经亲测能用。
- 2022-03-02 07:51:39下载
- 积分:1
-
CH06
android开发的一些例子很好用的非常好用真的好用哦(Some examples of good android developer with a very handy and easy to use Oh really)
- 2013-08-27 09:25:35下载
- 积分:1
-
Android简单购物车
首先,众所周知,ListView是Android最常用的控件,可以说是最简单的控件,也可以说是最复杂的控件。
作为一个Android初级开发者,可能会简单的ListView展示图文信息。
- 2023-08-14 05:50:04下载
- 积分:1
-
android 基于xmpp的即时通信APP
简单的即时通讯聊天软件,基于xmpp+openfire+smack。这里只给出了android 的代码,对于openfire直接百度就可以了。
- 2022-02-25 16:14:33下载
- 积分:1
-
在 Android 应用程序中添加 Facebook SDK
如何添加facebook SDK的Android应用程序,与facebook帐号登陆,使用Android应用你的facebook分享地位和形象。希望所有的Android开发者很高兴这样做是因为facebook状态共享是最苛刻的Android应用程序增加了下载 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-07-14 23:17:25下载
- 积分:1
-
Android Settings 6.0源码
Android Settings源码, Settings源码, Android6 源码 Settings, Android6.0 Settings源码 ,Android6.0源码学习,Android6.0.0.r1源码 Settings部分
- 2023-01-19 08:35:06下载
- 积分:1
-
Soduku android
本源码是基于android2.3平台的数独游戏,上层界面采用java语言来写,底层核心算法采用C++,可以实现对数独解法的提示,兼有提示最有可能填出来的空格
- 2022-10-28 06:35:04下载
- 积分:1
-
AutoRingProjectxx_zz_src
I created this app to simulate the ring behavior of the Motorola RAZR which would switch to loud when charging and return to vibrate-only when disconnected (no manual adjustment needed). This app also allows the reverse scenario (silent when connected otherwise ring).
This tutorial assumes you already have the Eclipse environment up and running. If you are new to Eclipse and Android development, I recommend going through the temperature converter tutorial which can be found here.
- 2012-06-20 10:51:20下载
- 积分:1
-
pictureviewer
基于android平台的图片浏览器的应用,实现了缩略图功能。(Based on the pictures of the Android platform, browser applications, a thumbnail function.)
- 2012-04-23 09:47:51下载
- 积分:1