android上拔出sd卡导致flash上媒体也消失问题解决方法
机器内部有一部分flash供客户使用,同时机器支持sd卡。当插入sd卡时候flash内部和sd卡内部的多媒体都可以被播放器识别,一旦拔掉sd卡,则flash内的媒体对播放器也不见了。
解决方法:
修改frameworks/base/services/java/com/android/server/MountService.java文件的函数:notifyMediaBadRemoval如下,红色为添加。
mContext.sendBroadcast(intent);
intent = new
Intent(Intent.ACTION_MEDIA_REMOVED,
Uri.parse("file://" +
path));
mContext.sendBroadcast(intent);
//添加下面几行
intent = new
Intent(Intent.ACTION_MEDIA_MOUNTED,Uri.parse("file://" +
"flash"));
intent.putExtra("read-only",
false);
mContext.sendBroadcast(intent);
}
同时也修改notifyMediaUnmounted(),在最后也加入上面几行
Intent intent = new Intent(Intent.ACTION_MEDIA_UNMOUNTED,
Uri.parse("file://" + path));
mContext.sendBroadcast(intent);
//添加开始
intent = new Intent(Intent.ACTION_MEDIA_MOUNTED,Uri.parse("file://" + "flash"));
intent.putExtra("read-only", false);
mContext.sendBroadcast(intent);
//添加结束
相关文档:
方法一:
1.下载64位的Flash插件,地址:http://labs.adobe.com/technologies/flashplayer10/64bit.html
2.下载好后是个tar.gz的压缩包,右键解压缩,得到.so文件
3.将此文件复制到firefox的插件目录,打开终端,获得管理员权限,执行下面语句
cp libflashplayer.so /usr/lib64/mozilla/plugin ......
个人觉得这是标准与私有标准的PK, 就像微软的office和其他office软件,如金山wps,openoffice的竞争类似。
从用户角度看PK越多越好,呵呵。
http://www.javaeye.com/news/15856-apple-flash
http://www.w3school.com.cn/html5/index.asp
http://www.w3.org/TR/html5/
http://html5.org/ ......
苹果和Adobe有很深的渊源。实际上,我们很早就在车库里与Adobe创始人有过一面之缘。苹果是Adobe第一个大客户,我们新的Laserwriter打印机就使用了它们的Postscript语言。苹果还投资Adobe,并多年持有它20%的股份。两家公司精诚合作,开发桌面出版系统,并多次合作良好。经过一段黄金年代后,两家公司渐行渐远。苹果经历了濒 ......
1,FLASH是什么?
FLASH电影是专为网页服务的画像或动画(当然,也可用于其它用途)。主要含有矢量图形,但是也可以包含导入的位图和音效,还可以把浏览者输入的信息同交互性联系起来,从而产生交互效果,也可以生成非线性电影动画。该动画可以同其它的WEB程序产生交互作用。网页设计师可以利用FLASH来创建导航控制器、动态LOG ......