public class WeatherAsyncTask extends AsyncTask { public TextView t1=null; public WeatherAsyncTask(TextView t) { t1=t; } @Override protected String...
分类:
移动开发 时间:
2014-12-18 18:25:16
阅读次数:
168
/// /// 将可序列化对象转成Byte数组 /// /// 对象(对象不能为空) /// 返回相关数组 protected static byte[] ObjectToByteArray(T obj) wh...
分类:
编程语言 时间:
2014-12-18 16:30:39
阅读次数:
152
接上篇点击打开链接
LeftNavGroupTemplate.cs
internal class LeftNavGroupTemplate : ITemplate
{
// Fields
private int index;
private string xml;
// Methods
public ...
分类:
其他好文 时间:
2014-12-18 15:12:32
阅读次数:
121
//定义结构体 internal struct LASTINPUTINFO { public uint cbSize; public uint dwTime; } //引入系统API ...
分类:
其他好文 时间:
2014-12-18 13:27:31
阅读次数:
235
asp.net web api使用默认路由
1. put、delete动作在IIS中受限(可通过remove
WebDAV,方法见上一篇)
2.每个controller可写action有限,在单个业务操作较多的情况下需要建立多个controller
使用新路由,仅使用Get、Post动作
protected void Application_Start(object sende...
前言 无论是在平时学习中还是还做项目之时,主要用到的继承都是 public 公有继承,因此,对protected private两者继承都不大了解! 今天,在看《Effective C++ 3e》 Item6 时,发现下面这个私有继承:class Uncopyable{protected: ...
分类:
编程语言 时间:
2014-12-18 11:36:27
阅读次数:
151
自定义控件都会去重写View的onMeasure方法,因为该方法指定该控件在屏幕上的大小。protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)onMeasure传入的两个参数是由上一层控件传入的大小,有多种情况,...
分类:
移动开发 时间:
2014-12-18 00:10:04
阅读次数:
206
Timer的局限性:一般用于短间隔的重复任务,如果你的任务是以天、月、年等为间隔,Timer误差较大。Timer成功使用方法:1、在Global.asax中写入 1 protected void Application_Start() 2 { 3 4 ...
分类:
其他好文 时间:
2014-12-17 20:18:49
阅读次数:
185
Yii如何使用memcache缓存在文件/protected/main.php里添加‘components‘=>array(‘CMemCache‘=>array(‘class‘=>‘CMemCache‘,‘servers‘=>array(array(‘host‘=>‘127.0.0.1‘,‘port‘=>11211,‘weight‘=>60,),array(‘host‘=>‘127.0.0.1‘,‘port‘=>11211,‘wei..
分类:
系统相关 时间:
2014-12-17 18:45:00
阅读次数:
270
下面就是在提交按钮的单击事件中填写代码(代码区)(前提是把省市县的数据库建好) protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { getddlProvinceDataBind...
分类:
其他好文 时间:
2014-12-17 18:16:08
阅读次数:
234