关系:
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 StringHandleExampleActivity extends
Activity { /** Called when the activity is first created. */ private TextView
textView; ...
分类:
移动开发 时间:
2014-05-06 14:39:57
阅读次数:
350
一、C++继承(1)继承方式public公有继承protected保护继承private私有继承只要是父类private的,就是父类自己的东西了,不管以何种方式继承,都不能继承父类的private东西。可以继承protect和public的东西。protect在父类中相当于private,只有内部成...
分类:
编程语言 时间:
2014-05-06 12:51:14
阅读次数:
515
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