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 ......
一款媲美FLASH的图片交替效果-网页特效-www.qpsh.com
Loading...
m00=document.getElementById("imgsrc").getElementsByTagName("img");m01=m00.length;function images_loading_bar(){m02=0;for(i=0;i ......
第一步:准备你要提取源文件的电子杂志,比如zcom的杂志
第二步:运行这个杂志,在整个提取过程中,不要关闭杂志。
第三步:打开我的电脑——工具——文件夹选项——查看——显示隐藏所有文件和文件夹,确定
第四步:定位到C:\Documents and Settings\username\Application Dat ......
来源:http://club.it.sohu.com/r-it-1350941-0-0-0.html
前言
最近关于HTML5 吵得火热,很多人认为HTML5出现会秒杀Flash,以至于在各大web前端开发论坛吵得不可开交。论坛里三言两语说的不够尽兴,只好在自己一亩三分地里敞开了说说。也当一次神棍,展望一下web前端开发的未来。
首先这里所说的HTML5也不仅指HTML5 ......
今天项目有个需求 要添加Flash ActiveX 到WPF 应用程序. 首先添加ActiveX到Winform控件,.net帮我们自动产生interop的dll,然后再WPF程序中添加引用,添加winformhost控件,添加 托管的AX***控件.这一切都很顺利.运行,麻烦来了,VS告诉我 Flash ActiveX没注册.
我的操作系统是win7 64-bit, 我去了文件夹C:\Windows\SysWOW64\Mac ......