码迷,mamicode.com
首页 >  
搜索关键字:context    ( 11739个结果
Hibernate:initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.bea...
分类:编程语言   时间:2014-10-10 21:54:44    阅读次数:192
3、应用设置之界面标注
转载请注明出处:http://blog.csdn.net/droyon/article/details/39891355一、所有、正在执行、已停用、USB存储设备、已下载TAB页界面元素标注。1、图标。boolean ensureIconLocked(Context context, Package...
分类:其他好文   时间:2014-10-10 21:38:34    阅读次数:251
android获得屏幕高度和宽度
android获取屏幕的高度和宽度用到WindowManager这个类,两种方法: 1、WindowManager wm = (WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE);int width = wm.ge...
分类:移动开发   时间:2014-10-10 21:01:54    阅读次数:166
this.requestWindowFeature(Window.FEATURE_NO_TITLE)相关
requestWindowFeature(featrueId),它的功能是启用窗体的扩展特性。参数是Window类中定义的常量。一、枚举常量1.DEFAULT_FEATURES:系统默认状态,一般不需要指定2.FEATURE_CONTEXT_MENU:启用ContextMenu,默认该项已启用,一般...
分类:Windows程序   时间:2014-10-10 20:23:24    阅读次数:296
Android Service 服务(三)—— bindService与remoteService
(转自:http://blog.csdn.net/ithomer/article/details/7366396)一、bindService简介bindService是绑定Service服务,执行service服务中的逻辑流程。service通过Context.startService()方法开始,...
分类:移动开发   时间:2014-10-10 18:37:54    阅读次数:240
Android Service 服务(二)—— BroadcastReceiver
(转自:http://blog.csdn.net/ithomer/article/details/7365147)一、 BroadcastReceiver简介BroadcastReceiver,用于异步接收广播Intent,广播Intent是通过调用Context.sendBroadcast()发送...
分类:移动开发   时间:2014-10-10 18:21:55    阅读次数:239
获取android 手机mac与device_id
public static String getDeviceInfo(Context context) { try{ org.json.JSONObject json = new org.json.JSONObject(); android.telephony.Teleph...
分类:移动开发   时间:2014-10-10 17:49:44    阅读次数:215
JS与一般处理程序之间传值乱码
好久没用到,突然遇到此问题还用了点时间.在JS里面通过URL向Handler传中文值的时候,在Handler里面取值出来后会发现是乱码的~~.这就需要个编码解码过程.JS:编码 escape(中文值)Handler:context.Server.UrlDecode(context.Request["...
分类:Web程序   时间:2014-10-10 16:43:14    阅读次数:238
CGContextSetFillColorWithColor: invalid context 0x0错误
在真机调试ios6的时候有出现如下的错误:: CGContextSetFillColorWithColor: invalid context 0x0: CGContextSetStrokeColorWithColor: invalid context 0x0经过查找发现这是iOS的系统bug,不会产...
分类:其他好文   时间:2014-10-10 15:17:10    阅读次数:476
策略模式——MFC样例
Context(应用场景):1、须要使用ConcreteStrategy提供的算法。2、内部维护一个Strategy的实例。3、 负责动态设置执行时Strategy详细的实现算法。4、负责跟Strategy之间的交互和数据传递。Strategy(抽象策略类):1、 定义了一个公共接口,各种不同的算法...
分类:编程语言   时间:2014-10-10 14:53:00    阅读次数:243
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!