关系:
java.lang.Object
? android.os.AsyncTask
概述:
AsyncTask是Android提供的轻量级异步类;它在后台线程处理耗时的操作然后可以将处理的结果返回给UI线程处理。由于它不涉及到使用Thread和Handler所以简单易用。
用法:
首先上一段Android Developer的代码:
private ...
分类:
其他好文 时间:
2014-05-10 10:11:00
阅读次数:
317
在前篇
boost::serialization 用基类指针转存派生类(错误多多,一波三折)文中我们都是使用serialize函数来实现序列化,其代码格式如下:
private:
friend class boost::serialization::access;
template
void serialize(Archive& ar, const unsigned int ...
分类:
其他好文 时间:
2014-05-10 09:09:19
阅读次数:
520
#include
using namespace std;
class Base
{
public:
Base(){base = 1; cout
virtual ~Base(){cout
virtual void say(){cout
private:
int base;
static int count;
};...
分类:
编程语言 时间:
2014-05-07 06:59:24
阅读次数:
302
测试结果是private和public两种情况是不同的。...
分类:
其他好文 时间:
2014-05-07 06:20:37
阅读次数:
218
private static void sort1(int x[], int off, int len) {
// Insertion sort on smallest arrays //长度小于7,采用冒泡排序
if (len < 7) {
for (int i=off; ioff && x[j-1]>x[j];...
分类:
其他好文 时间:
2014-05-07 05:14:35
阅读次数:
279
public class IsInteger {
private IsInteger(){};
public static boolean isInteger(String value) {
try {
Integer.parseInt(value);
return true;
} catch (N...
分类:
其他好文 时间:
2014-05-06 23:27:37
阅读次数:
348
实现密件抄送方式有很多种,多数的方法为设置Outlook规则。这里讲尝试使用VBA来实现此功能。
1、打开Outlook 2010 ,使用快捷键 ALT + F11 ,如下图:
2、刚开始左侧 ThisOutlookSession中代码是空的,填入如下代码:
Private Sub Application_ItemSend(ByVal Item As Object, Cancel A...
分类:
其他好文 时间:
2014-05-06 22:02:28
阅读次数:
641
private Color(String name,int index){
this.setName(name); this.setIndex(index);} private Color(String name,int index){
this.setName(name); this.setInd...
分类:
其他好文 时间:
2014-05-06 12:08:59
阅读次数:
242
1 private void w_day_scheduling_Load(object sender,
EventArgs e) 2 { 3 4 if (ls_deptname == string.Empty) 5 ...
分类:
其他好文 时间:
2014-05-06 10:32:53
阅读次数:
326
private ImageInfo CreateImageFile(string fileName)
{ if (!File.Exists(fileName)) return null; Image image =
Image.FromFile(fileName); MemoryStream ms....
分类:
Web程序 时间:
2014-05-06 10:01:43
阅读次数:
313