<?xml version="1.0" ?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>Android Resource &#124; 资源 资讯 教程 - All Forums</title>
	<link>http://www.androidres.com/index.php/forum/</link>
	<description><![CDATA[Discuss developing Android applications using the Android framework and Collect android resource]]></description>
	<generator>Simple:Press Forum Version 4.1.2</generator>
	<atom:link href="http://www.androidres.com/index.php/forum/?xfeed=all" rel="self" type="application/rss+xml" />
<item>
	<title>EGGer on 关于本站</title>
	<link>http://www.androidres.com/index.php/forum/general/topic-2/#p3</link>
	<category>General</category>
	<guid isPermaLink="true">http://www.androidres.com/index.php/forum/general/topic-2/#p3</guid>
	<description><![CDATA[<p>没错，的确用的插件！不过这个有点占用系统资源。这里是官方网站：http://www.roytanck.com/</p>
]]></description>
	<pubDate>Wed, 03 Jun 2009 00:45:34 +0000</pubDate>
</item>
<item>
	<title>zerotest on 关于本站</title>
	<link>http://www.androidres.com/index.php/forum/general/topic-2/#p2</link>
	<category>General</category>
	<guid isPermaLink="true">http://www.androidres.com/index.php/forum/general/topic-2/#p2</guid>
	<description><![CDATA[<p>你用什么做的，很漂亮的阿，那个旋转的tag也是个插件马？能否介绍下给，呵呵，多谢</p>
]]></description>
	<pubDate>Tue, 02 Jun 2009 17:29:41 +0000</pubDate>
</item>
<item>
	<title>admin on 关闭键盘或者旋转手机方向时，如何保证当前进程处于运行状态？</title>
	<link>http://www.androidres.com/index.php/forum/general/topic-1/#p1</link>
	<category>General</category>
	<guid isPermaLink="true">http://www.androidres.com/index.php/forum/general/topic-1/#p1</guid>
	<description><![CDATA[<p>I have a Progress Dialog in an extra Thread running. Normally the user<br /> will have the keyboard open, because something is to insert! So when<br /> the Progress Dialog appears and the user close the keyboard, the<br /> dialog dissappears and the application crashes. In the debugger i saw<br /> the exception &#8220;View not attached to window manager&#8221;. May because the<br /> Dialog is not longer shown but the application want to remove it after<br /> the calculation?<br /> Here is the code where i start the dialog and the thread:<br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br /> alert=0;<br /> myProgressDialog = ProgressDialog.show(this,<br /> &#8220;Please wait&#8230;&#8221;, &#8220;Calculating..&#8221;, true);<br /> new Thread()<br /> {<br /> public void run()<br /> {<br /> try<br /> {<br /> //Doing some stuff&#8230;.<br /> }<br /> catch (Exception e)<br /> {<br /> alert=2;<br /> alertText = e.getMessage();<br /> }<br /> myProgressDialog.dismiss();<br /> mHandler.post(mCompleteRunnable);<br /> }<br /> }.start();<br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br /> Does somebody know how to solve this?<br /> == Solution =======================================================================<br /> Override this method:<br /> @Override<br /> public void onConfigurationChanged(Configuration arg0)<br /> {<br /> super.onConfigurationChanged(arg0);<br /> //Toast.makeText(this, &#8220;onConfigurationChanged&#8221;,<br /> Toast.LENGTH_SHORT).show();<br /> }<br /> And in Manifest XML insert this line in the activity tag:<br /> android:configChanges=&#8221;keyboardHidden&#124;orientation&#8221;&#62;<br /> Now you have to handle yourself changes on orientation and<br /> keyboardHidden, and as you can see in the overridden method, i do<br /> nothing. So the onCreate() Method is not called if the orientation<br /> changes or if the keyboard is slided out or in and therefore the<br /> dialog do not dissappear!</p>
]]></description>
	<pubDate>Sun, 26 Apr 2009 13:00:55 +0000</pubDate>
</item>
</channel>
</rss>