实现免提开启和关闭需要添加的权限网站模板【】01/**02*免提03*04*@paramcontext05*/06privatevoidtoggleSpeaker(Contextcontext)07{08 AudioManageram=(AudioManager)context.getSystem....
分类:
移动开发 时间:
2014-06-21 13:34:41
阅读次数:
219
转:http://blog.csdn.net/littlebo01/article/details/17554953[python] view plaincopyprint? 使用OpenERP自定义模块开发的时候,你会发现,有一个uid(当前登录用户id)特别好用,不管是在xml的domain.....
分类:
其他好文 时间:
2014-06-21 10:11:16
阅读次数:
270
读写函数分别例如以下:import java.io.FileInputStream;import java.io.FileOutputStream;import java.util.Properties;public Properties loadConfig(Context context, St...
分类:
移动开发 时间:
2014-06-21 08:54:22
阅读次数:
323
转自:http://hi.baidu.com/ittdt/item/d932cf37f486f886c3cf29eanew AlertDialog.Builder(MainEngine.context)//.setTitle("提示").setMessage("确定要退出游戏吗?").setPosi...
分类:
移动开发 时间:
2014-06-21 07:08:44
阅读次数:
210
BFC是啥?BFC(Block Formatting Context),“块状格式化上下文”。简单地说,它提供一个独立的布局环境。在同一个BFC中,盒子会一个挨一个地排列,margin边距还会在垂直方向上叠加。float和clear:float也只会在同一个BFC内有效。产生BFC的情况有?W3C标...
分类:
Web程序 时间:
2014-06-21 00:44:30
阅读次数:
345
eclipse Server 没有成功启动Eclipse3.x中热部署项目[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server...
分类:
系统相关 时间:
2014-06-20 18:52:10
阅读次数:
285
Default.aspx 页面代码:引用了: 导入EXCEL:导入js代码: DiryExcel.ashx 页面: public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/plai...
分类:
数据库 时间:
2014-06-20 18:34:19
阅读次数:
390
源码学习第一天:
org.springframework.beans 和org.springframework.context 包是ioc 容器的基础包。
BeanFactory 接口 :负责通过配置机制管理任何类型对象。
ApplicationContext 接口: 继承BeanFactory
可以和aop ,消息资源处理(国际化),事件发布集成。
webApplicat...
分类:
编程语言 时间:
2014-06-18 07:59:23
阅读次数:
195
在练习spring项目的过程中,出现了如下异常信息:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.context.support.AbstractApplicationContext.(Abstrac...
分类:
编程语言 时间:
2014-06-18 07:15:20
阅读次数:
236
/**
* 获取设备采用的时间制式(12小时制式或者24小时制式)
* 注意:
* 在模拟器上获取的时间制式为空
*/
private void getTime_12_24(Context context){
ContentResolver contentResolver = context.getContentResolver();
String time_12_24 ...
分类:
移动开发 时间:
2014-06-18 06:25:10
阅读次数:
216