码迷,mamicode.com
首页 >  
搜索关键字:context switches    ( 11828个结果
动态注册BroadcastReceiver
1. [代码][Java]代码 package com.zjt.innerreceiver;import android.app.Service;import android.content.BroadcastReceiver;import android.content.Context;impo....
分类:其他好文   时间:2014-06-25 17:48:41    阅读次数:174
UIImage 缩放等效果处理
//等比率缩放- (UIImage *)scaleToSize:(UIImage *)img size:(CGSize)size{ // 创建一个bitmap的context // 并把它设置成为当前正在使用的context UIGraphicsBeginImag...
分类:其他好文   时间:2014-06-25 17:41:52    阅读次数:147
android学习笔记--Scanner
private static List getxxxx(Context ctx) { try {Scanner sc = new Scanner( ctx.openFileInput("xxx.txt")); ArrayLis...
分类:移动开发   时间:2014-06-25 16:16:20    阅读次数:197
android学习笔记--检测是否为wifi环境
ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); //获取代表联网状态的NetWorkInfo对象NetworkInfo wifiInfo = c...
分类:移动开发   时间:2014-06-25 16:11:30    阅读次数:194
mybatis配置文件xxxx.xml中缺失返回类型的后果
下面是mybatis配置文件xxxx.xml缺失resultMap的错误: 严重: Servlet.service() for servlet [SpringMVC] in context with path [/ZHDM] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyB...
分类:其他好文   时间:2014-06-25 07:35:36    阅读次数:261
android基础之SurfaceView视图中对画布的3种刷新方法
//MysurfaceView.javapackagecom.example.surfaceview;importandroid.content.Context;importandroid.graphics.Canvas;importandroid.graphics.Color;importandroid.graphics.Paint;importandroid.view.MotionEvent;importandroid.view.SurfaceHolder;importandroid.view.Surfa..
分类:移动开发   时间:2014-06-25 06:25:42    阅读次数:428
Floodlight之 FloodlightContextStore 数据结构
FloodlightContextStore 代表的是一种缓存模型(利用的是ConcurrentHashMap),里面存储的是上下文相关的对象,能够根据相应的key得到具体的 Object,存在的意义是Floodlight中注册监听某个事件的listener可以在被调用的时候直接从中取出上下文信息(context information)。下面是重要的代码片段. 基本数据结构: pub...
分类:其他好文   时间:2014-06-24 23:08:38    阅读次数:210
baseAdapter
public class MyAdapter extends BaseAdapter { Context context; public MyAdapter(Context context) { this.context = context; } private...
分类:其他好文   时间:2014-06-24 22:03:13    阅读次数:189
How Tomcat workd 之第十章 Installing the Authentictor Value 安装校验值
login-config元素在部署描述符中仅仅出现一次,它包含了auth-method元素,指定了Authentiction方法。就这是说context仅仅有LoginConfig的一个实例对象并部署一个校验类的实现。 AuthentictorBase类的哪个子类用作context的校验值取决于部署描述符中auth-method元素的值。auth-method值有一下几种: B...
分类:其他好文   时间:2014-06-24 20:26:39    阅读次数:248
2014-06-23图片上传处理
1. 将字符串转换为Guid的形式System.Guid categoryId = newGuid(context.Request["CategoryId"]);//将字符串转换为Guid的形式2.定义DataRow/*----------------------定义DataRow并赋值------...
分类:其他好文   时间:2014-06-24 11:35:14    阅读次数:156
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!