<?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>My Never</title>
	<atom:link href="http://blog.mynever.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mynever.com</link>
	<description>Ever, Never, My Never</description>
	<lastBuildDate>Thu, 13 Jan 2011 10:31:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WindowManagerDemo</title>
		<link>http://blog.mynever.com/mynever/windowmanagerdemo.html</link>
		<comments>http://blog.mynever.com/mynever/windowmanagerdemo.html#comments</comments>
		<pubDate>Sun, 09 Jan 2011 16:37:10 +0000</pubDate>
		<dc:creator>My Never</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[WindowManager]]></category>

		<guid isPermaLink="false">http://blog.mynever.com/?p=38</guid>
		<description><![CDATA[WindowManager
译者署名：逝憶流緣
译者链接：http://t.qq.com/pansonphy
版本：Android 2.3 r1
结构 
继承关系
public interface WindowManager extends android.view.ViewManager
android.view.WindowManager
类概述 
该接口用于与窗口管理器交互。通过 Context.getSystemService(Context.WINDOW_SERVICE)可以获取到WindowManager的实例。（译者注：如：WindowManager wm = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE);）
参见
getSystemService(String)
 WINDOW_SERVICE
内部类 
public static class  WindowManager.LayoutParams
（译者注：继承自android.view.ViewGroup.LayoutParams）
public static class   WindowManager.BadTokenException
添加view时，如果该view的WindowManager.LayoutParams的令牌(token)无效，则会抛出该异常
公共方法 
public abstract Display  getDefaultDisplay()
获取默认的显示对象
返回值
默认的Display对象
public abstract void removeViewImmediate (View view)
是removeView(View) 的一个特殊扩展，在方法返回前能够立即调用该视图的View.onDetachedFromWindow() 方法。 不适用于一般的程序；如果您要正确无误的使用它，那您就需要格外小心了。
参数
view 需要移除的视图
示例代码：

?View Code JAVApackage com.cnAndroid.apidemo;
&#160;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.WindowManager;
import android.widget.TextView;
&#160;
public class WindowManagerDemo extends Activity &#123;
	/** Called when the activity is first created. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>WindowManager</strong></p>
<p>译者署名：逝憶流緣</p>
<p>译者链接：<a href="http://t.qq.com/pansonphy">http://t.qq.com/pansonphy</a></p>
<p>版本：Android 2.3 r1</p>
<p><strong>结构</strong><strong> </strong></p>
<p>继承关系</p>
<p><strong><em>public interface WindowManager extends android.view.ViewManager</em></strong></p>
<p>android.view.WindowManager</p>
<p><strong>类概述</strong><strong> </strong></p>
<p>该接口用于与窗口管理器交互。通过 <code>Context.getSystemService(Context.WINDOW_SERVICE)</code>可以获取到WindowManager的实例。（译者注：如：WindowManager wm = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE);）</p>
<p>参见</p>
<p><code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService%28java.lang.String%29">getSystemService(String)</a></code></p>
<p><code> <a href="http://developer.android.com/reference/android/content/Context.html#WINDOW_SERVICE">WINDOW_SERVICE</a></code></p>
<p><strong>内部类</strong><strong> </strong></p>
<p>public static class  <strong>WindowManager.LayoutParams</strong></p>
<p>（译者注：继承自android.view.ViewGroup.LayoutParams）</p>
<p>public static class   <strong>WindowManager.BadTokenException</strong></p>
<p>添加view时，如果该view的WindowManager.LayoutParams的令牌(token)无效，则会抛出该异常</p>
<p><strong>公共方法</strong><strong> </strong></p>
<p>public abstract Display  <strong>getDefaultDisplay</strong>()</p>
<p>获取默认的显示对象</p>
<p>返回值</p>
<p>默认的Display对象</p>
<p>public abstract void <strong>removeViewImmediate </strong>(View view)</p>
<p>是<a href="http://developer.android.com/reference/android/view/ViewManager.html#removeView%28android.view.View%29">removeView(View)</a> 的一个特殊扩展，在方法返回前能够立即调用该视图的<a href="http://developer.android.com/reference/android/view/View.html#onDetachedFromWindow%28%29">View.onDetachedFromWindow()</a> 方法。 不适用于一般的程序；如果您要正确无误的使用它，那您就需要格外小心了。</p>
<p>参数</p>
<p>view 需要移除的视图</p>
<p>示例代码：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p38code2'); return false;">View Code</a> JAVA</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p382"><td class="code" id="p38code2"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.cnAndroid.apidemo</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.app.Activity</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.content.Context</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.os.Bundle</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.view.WindowManager</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.TextView</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> WindowManagerDemo <span style="color: #000000; font-weight: bold;">extends</span> Activity <span style="color: #009900;">&#123;</span>
	<span style="color: #008000; font-style: italic; font-weight: bold;">/** Called when the activity is first created. */</span>
	@Override
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onCreate<span style="color: #009900;">&#40;</span>Bundle savedInstanceState<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">onCreate</span><span style="color: #009900;">&#40;</span>savedInstanceState<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		setContentView<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">layout</span>.<span style="color: #006633;">main</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		TextView textView <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>TextView<span style="color: #009900;">&#41;</span> findViewById<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">label</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				WindowManager windowManager <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>WindowManager<span style="color: #009900;">&#41;</span>
		getSystemService<span style="color: #009900;">&#40;</span><span style="color: #003399;">Context</span>.<span style="color: #006633;">WINDOW_SERVICE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// print the current window's width and height on the title, eg: 320*480</span>
&nbsp;
		setTitle<span style="color: #009900;">&#40;</span>windowManager.<span style="color: #006633;">getDefaultDisplay</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getWidth</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;*&quot;</span>
				<span style="color: #339933;">+</span> windowManager.<span style="color: #006633;">getDefaultDisplay</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getHeight</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		textView.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;See the Title&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Source:<a href="http://blog.mynever.com/wp-content/uploads/2011/01/WindowManagerDemo.zip">WindowManagerDemo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mynever.com/mynever/windowmanagerdemo.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flex and BlazeDS with RemoteObject example</title>
		<link>http://blog.mynever.com/mynever/flex-and-blazeds-with-remote-objects-example.html</link>
		<comments>http://blog.mynever.com/mynever/flex-and-blazeds-with-remote-objects-example.html#comments</comments>
		<pubDate>Mon, 18 Jan 2010 15:58:43 +0000</pubDate>
		<dc:creator>My Never</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.mynever.com/?p=23</guid>
		<description><![CDATA[These days, I studied the Flex and BlazeDS. Installed the Flex Builder 3.0, and the Flex Builder 3 Plug-in for Eclipse, studied the Action Script, and Flex Integration with J2EE. BlazeDS is a series of data services that provide your Flex applications with additional data connectivity options: Remoting Service, Message Service, Proxy Service.
  Remoting Service allows [...]]]></description>
			<content:encoded><![CDATA[<p>These days, I studied the Flex and BlazeDS. Installed the Flex Builder 3.0, and the Flex Builder 3 Plug-in for Eclipse, studied the Action Script, and Flex Integration with J2EE. BlazeDS is a series of data services that provide your Flex applications with additional data connectivity options:<strong> Remoting Service, Message Service, Proxy Service.</strong></p>
<p><strong>  Remoting Service</strong> allows your Flex application to directly invoke methods of Java objects deployed in your application server.</p>
<p>  <strong>Message Service</strong> provides a publish/subscribe infrastructure that allows your Flex application to publish messages and subscribe to a messaging destination, enabling the development of real-time data push and collaborative applications. For example, JMS.</p>
<p>  <strong>Proxy Service</strong> allows your Flex application to make cross-domain service requests in a secure and controlled manner. In other words, it allows your Flex application to access a service available on a domain other than the domain from which the application was downloaded (without having to deploy a crossdomain.xml policy file on the target domain).</p>
<p>There are many instances on the net, where someone justonly received data from data set. The following example application shows the way to get data push with the <strong>Remote Service</strong> way. And also save, update, and delete.</p>
<p><a href="http://blog.mynever.com/wp-content/uploads/2010/01/FlexBlazeDSIntegration.jpg"><img class="size-full wp-image-29 alignnone" title="Example" src="http://blog.mynever.com/wp-content/uploads/2010/01/FlexBlazeDSIntegration.jpg" alt="" width="601" height="289" /></a></p>
<p>Get the source here:<a href="http://blog.mynever.com/wp-content/uploads/2010/01/FlexMessages.zip">FlexMessages</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mynever.com/mynever/flex-and-blazeds-with-remote-objects-example.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Name.com Promo Code January 2010</title>
		<link>http://blog.mynever.com/mynever/name-com-promo-code-january-2010.html</link>
		<comments>http://blog.mynever.com/mynever/name-com-promo-code-january-2010.html#comments</comments>
		<pubDate>Fri, 08 Jan 2010 03:01:06 +0000</pubDate>
		<dc:creator>My Never</dc:creator>
				<category><![CDATA[Domains]]></category>
		<category><![CDATA[Name.com]]></category>
		<category><![CDATA[Promo Code]]></category>

		<guid isPermaLink="false">http://blog.mynever.com/?p=17</guid>
		<description><![CDATA[Promo Code &#124; January
PROMO19735 &#124; $8.25 COM Registration
PROMO71403 &#124; $8.20 COM/NET Renewal
PROMO04582 &#124; $8.15 INFO/ORG Renewal
Promo Code &#124; December 2009
KILLIGREW &#124; $14.99 Domain Nabber
CRICKETT &#124; $8.25 COM/NET Renewal
OMALLEY &#124; $8.20 COM Registration
]]></description>
			<content:encoded><![CDATA[<p>Promo Code | January<br />
PROMO19735 | $8.25 COM Registration<br />
PROMO71403 | $8.20 COM/NET Renewal<br />
PROMO04582 | $8.15 INFO/ORG Renewal</p>
<p>Promo Code | December 2009<br />
KILLIGREW | $14.99 Domain Nabber<br />
CRICKETT | $8.25 COM/NET Renewal<br />
OMALLEY | $8.20 COM Registration</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mynever.com/mynever/name-com-promo-code-january-2010.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Saltwater Room</title>
		<link>http://blog.mynever.com/mynever/the-saltwater-room.html</link>
		<comments>http://blog.mynever.com/mynever/the-saltwater-room.html#comments</comments>
		<pubDate>Thu, 31 Dec 2009 13:43:03 +0000</pubDate>
		<dc:creator>My Never</dc:creator>
				<category><![CDATA[My Never]]></category>

		<guid isPermaLink="false">http://blog.mynever.com/?p=10</guid>
		<description><![CDATA[Download The Saltwater Room.mp3
I opened my eyes last night and saw you in the low light
Walking down by the bay, on the shore,
Staring up at the planes that aren&#8217;t there anymore
I was feeling the night grow old and you were looking so cold
Like an introvert, I drew my over shirt
Around my arms and began to [...]]]></description>
			<content:encoded><![CDATA[<p>Download <a href="http://blog.mynever.com/wp-content/uploads/2009/12/The-Saltwater-Room.mp3">The Saltwater Room.mp3</a></p>
<p>I opened my eyes last night and saw you in the low light<br />
Walking down by the bay, on the shore,<br />
Staring up at the planes that aren&#8217;t there anymore<br />
I was feeling the night grow old and you were looking so cold<br />
Like an introvert, I drew my over shirt<br />
Around my arms and began to shiver violently before<br />
You happened to look and see the tunnels all around me<br />
Running into the dark underground<br />
All the subways around create a great sound<br />
To my motion fatigue: farewell<br />
With your ear to a seashell<br />
You can hear the waves in underwater caves<br />
As if you actually were inside a saltwater room<br />
Time together is just never quite enough<br />
When you and I are alone, I&#8217;ve never felt so at home<br />
What will it take to make or break this hint of love?<br />
We need time, only time<br />
When we&#8217;re apart whatever are you thinking of?<br />
If this is what I call home, why does it feel so alone?<br />
So tell me darling, do you wish we&#8217;d fall in love?<br />
All the time, all the time<br />
Can you believe that the crew has gone<br />
And wouldn&#8217;t let me sign on?<br />
All my islands have sunk in the deep,<br />
So I can hardly relax or even oversleep<br />
I feel as if I were home some nights<br />
When we count all the ship lights<br />
I guess I&#8217;ll never know why sparrows love the snow<br />
We&#8217;ll turn off all of the lights and set this ballroom aglow<br />
So tell me darling, do you wish we&#8217;d fall in love?<br />
Time together is just never quite enough<br />
When you and I are alone, I&#8217;ve never felt so at home<br />
What will it take to make or break this hint of love?<br />
We need time, only time<br />
When we&#8217;re apart whatever are you thinking of?<br />
If this is what I call home, why does it feel so alone?<br />
So tell me darling, do you wish we&#8217;d fall in love?<br />
All the time, all the time<br />
Time together is just never quite enough<br />
When we&#8217;re apart whatever are you thinking of?<br />
What will it take to make or break this hint of love?<br />
So tell me darling, do you wish we&#8217;d fall in love?<br />
All the time<br />
The end</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mynever.com/mynever/the-saltwater-room.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
<enclosure url="http://blog.mynever.com/wp-content/uploads/2009/12/The-Saltwater-Room.mp3" length="5825423" type="audio/mpeg" />
		</item>
		<item>
		<title>Test</title>
		<link>http://blog.mynever.com/mynever/test.html</link>
		<comments>http://blog.mynever.com/mynever/test.html#comments</comments>
		<pubDate>Wed, 30 Dec 2009 18:47:24 +0000</pubDate>
		<dc:creator>My Never</dc:creator>
				<category><![CDATA[My Never]]></category>

		<guid isPermaLink="false">http://blog.mynever.com/?p=7</guid>
		<description><![CDATA[
?Download download.txt1
2
3
4
5
public class A&#123;
  public static void main&#40; String&#91;&#93; args &#41;&#123;
    System.out.println&#40;&#34;test&#34;&#41;;
  &#125;
&#125;

]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://blog.mynever.com/wp-content/plugins/wp-codebox/wp-codebox.php?p=7&amp;download=download.txt">download.txt</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p74"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p7code4"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> A<span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span> <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;test&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.mynever.com/mynever/test.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enjoy the beauty of the process</title>
		<link>http://blog.mynever.com/mynever/enjoy-the-beauty-of-the-process.html</link>
		<comments>http://blog.mynever.com/mynever/enjoy-the-beauty-of-the-process.html#comments</comments>
		<pubDate>Wed, 30 Dec 2009 17:36:17 +0000</pubDate>
		<dc:creator>My Never</dc:creator>
				<category><![CDATA[My Never]]></category>

		<guid isPermaLink="false">http://blog.mynever.com/?p=3</guid>
		<description><![CDATA[If you have ever been discouraged because of failure, please read on. 
For often, achieving what you set out to do is not the important thing. Let me explain. 
Two brothers decided to dig a deep hole behind their house. As they were working, a couple of older boys stopped by to watch. 
&#8220;What are [...]]]></description>
			<content:encoded><![CDATA[<p>If you have ever been discouraged because of failure, please read on. </p>
<p>For often, achieving what you set out to do is not the important thing. Let me explain. </p>
<p>Two brothers decided to dig a deep hole behind their house. As they were working, a couple of older boys stopped by to watch. </p>
<p>&#8220;What are you doing?&#8221; asked one of the visitors. </p>
<p>&#8220;We plan to dig a hole all the way through the earth!&#8221; one of the brothers volunteered excitedly. </p>
<p>The older boys began to laugh, telling the younger ones that digging a hole all the way through the earth was impossible. </p>
<p>After a long silence, one of the diggers picked up a jar full of spiders, worms and a wide assortment of insects. He removed the lid and showed the wonderful contents to the scoffing visitors. </p>
<p>Then he said quietly and confidently, &#8220;Even if we don&#8217;t dig all the way through the earth, look what we found along the way!&#8221; </p>
<p>Their goal was far too ambitious, but it did cause them to dig. And that is what a goal is for-to cause us to move in the direction we have chosen; in other words, to set us to digging! </p>
<p>But not every goal will be fully achieved. Not every job will end successfully. Not every relationship will endure. Not every hope will come to pass. Not every love will last. Not every endeavor will be completed. Not every dream will be realized. </p>
<p>But when you fall short of your aim, perhaps you can say, &#8220;Yes, but look at what I found along the way! Look at the wonderful things which have come into my life because I tried to do something!&#8221; </p>
<p>It is in the digging that life is lived. And I believe it is joy in the journey, in the end, that truly matters.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mynever.com/mynever/enjoy-the-beauty-of-the-process.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://blog.mynever.com/mynever/hello-world.html</link>
		<comments>http://blog.mynever.com/mynever/hello-world.html#comments</comments>
		<pubDate>Wed, 30 Dec 2009 03:24:44 +0000</pubDate>
		<dc:creator>My Never</dc:creator>
				<category><![CDATA[My Never]]></category>

		<guid isPermaLink="false">http://mynever.com/blog/?p=1</guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mynever.com/mynever/hello-world.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

