<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>深蓝的blog &#187; AsyncTask</title>
	<atom:link href="http://www.lanxinbase.com/?feed=rss2&#038;tag=asynctask" rel="self" type="application/rss+xml" />
	<link>http://www.lanxinbase.com</link>
	<description>记录日常生活</description>
	<lastBuildDate>Sat, 18 Apr 2026 07:10:07 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.3</generator>
	<item>
		<title>android开发:AsyncTask深入解析</title>
		<link>http://www.lanxinbase.com/?p=1068</link>
		<comments>http://www.lanxinbase.com/?p=1068#comments</comments>
		<pubDate>Sat, 04 Jun 2016 07:28:33 +0000</pubDate>
		<dc:creator><![CDATA[Alan]]></dc:creator>
				<category><![CDATA[7.android应用开发]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[AsyncTask]]></category>

		<guid isPermaLink="false">http://www.lanxinbase.com/?p=1068</guid>
		<description><![CDATA[AsyncTask介绍
Android的AsyncTask比Handler更轻量级一些，适用于简单的异步处理。
首先明确Android之所以有Handler和AsyncTask，都是为了不阻塞主线程（UI线程），且UI的更新只能在主线程中完成，因此异步处理是不可避免的。
Android为了降低这个开发难度，提供了AsyncTask。AsyncTask就是一个封装过的后台任务类，顾名思义就是异步任务。]]></description>
		<wfw:commentRss>http://www.lanxinbase.com/?feed=rss2&#038;p=1068</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android开发: AsyncTask 任务屏幕旋转处理 ProgressDialog的方法</title>
		<link>http://www.lanxinbase.com/?p=1066</link>
		<comments>http://www.lanxinbase.com/?p=1066#comments</comments>
		<pubDate>Fri, 03 Jun 2016 16:00:32 +0000</pubDate>
		<dc:creator><![CDATA[Alan]]></dc:creator>
				<category><![CDATA[7.android应用开发]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[AsyncTask]]></category>
		<category><![CDATA[ProgressDialog]]></category>
		<category><![CDATA[屏幕旋转]]></category>

		<guid isPermaLink="false">http://www.lanxinbase.com/?p=1066</guid>
		<description><![CDATA[        今天重新研究了一下AsyncTask这个后台任务的代码，发现旋转设备时，ProgressDialog会自动消失，但是后台的工作线程依然在运行中，大大的降低了用户体验；

        书里有说使用弱引用，但是百度了很多帖子，看到的都死废话连篇，]]></description>
		<wfw:commentRss>http://www.lanxinbase.com/?feed=rss2&#038;p=1066</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>android开发AsyncTask异步任务实例</title>
		<link>http://www.lanxinbase.com/?p=1049</link>
		<comments>http://www.lanxinbase.com/?p=1049#comments</comments>
		<pubDate>Thu, 26 May 2016 15:21:17 +0000</pubDate>
		<dc:creator><![CDATA[Alan]]></dc:creator>
				<category><![CDATA[7.android应用开发]]></category>
		<category><![CDATA[AsyncTask]]></category>
		<category><![CDATA[HttpURLConnection]]></category>
		<category><![CDATA[下载文件]]></category>

		<guid isPermaLink="false">http://www.lanxinbase.com/?p=1049</guid>
		<description><![CDATA[今晚无聊，写了个AsyncTask异步下载任务；

继承AsyncTask需要实现几种方法：onPreExecute、doInBackground、onProgressUpdate、onPostExecute

分别是：开始前执行、后台任务执行、进度更新、执行完毕。

以下是MainActivity.java中onCreate()方法中的代码：

Button down = (Button)findViewById(R.id.down);
final ProgressBar pbr = (ProgressBar)findViewById(R.id.progressBar);
]]></description>
		<wfw:commentRss>http://www.lanxinbase.com/?feed=rss2&#038;p=1049</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
