<?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>FalconIA&#039;s BLOG &#187; 程序相关</title>
	<atom:link href="https://falconia.org/blog/archives/category/technology/programming-tech/feed" rel="self" type="application/rss+xml" />
	<link>https://falconia.org/blog</link>
	<description>FalconIA&#039;s Lazy Blog</description>
	<lastBuildDate>Tue, 02 Dec 2014 01:45:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>How to modify SystemUI.apk to remove volume soft keys in system bar</title>
		<link>https://falconia.org/blog/archives/449</link>
		<comments>https://falconia.org/blog/archives/449#comments</comments>
		<pubDate>Tue, 28 Jan 2014 02:58:29 +0000</pubDate>
		<dc:creator><![CDATA[FalconIA]]></dc:creator>
				<category><![CDATA[程序相关]]></category>
		<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://falconia.org/blog/?p=449</guid>
		<description><![CDATA[Environment: Android with root access. Windows with drivers for Android device. Java(JRE) installed. Prepare: apktool.jar (http://code.google.com/p/android-apktool/downloads/list) adb.exe (android-sdk\platform-tools) notepad++ or similar text editor which supported UTF-8 without BOM, not notepad or wordpad. Steps: 1. Pull SystemUI.apk from your device. CMD&#62;adb pull /system/app/SystemUI.apk . 2. Extract res in apk. CMD&#62;apktool d -b -s SystemUI.apk 3. Edit [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>Environment:</strong><br />
Android with root access.<br />
Windows with drivers for Android device.<br />
Java(JRE) installed.</p>
<p><strong>Prepare:</strong><br />
apktool.jar (<a href="http://code.google.com/p/android-apktool/downloads/list">http://code.google.com/p/android-apktool/downloads/list</a>)<br />
adb.exe (android-sdk\platform-tools)<br />
notepad++ or similar text editor which supported UTF-8 without BOM, not notepad or wordpad.</p>
<p><span id="more-449"></span><br />
<strong>Steps:</strong><br />
1. Pull SystemUI.apk from your device.<br />
<code>CMD&gt;adb pull /system/app/SystemUI.apk .</code></p>
<p>2. Extract res in apk.<br />
<code>CMD&gt;apktool d -b -s SystemUI.apk</code></p>
<p>3. Edit the XML file in 'SystemUI/res/layout/system_bar.xml'.<br />
You can find several KeyButtonView like:<br />
<code>&lt;com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/volume_down" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_volume_down" systemui:keyCode="25" systemui:glowBackground="@drawable/ic_sysbar_highlight" /&gt;</code><br />
Change 'android:layout_width="@dimen/navigation_key_width"' to 'android:layout_width="0.0dp"' in the KeyButtonView which you want to hide.</p>
<p>4. Combine edited apk.<br />
<code>CMD&gt;apktool b SystemUI</code><br />
Now get new dictionary 'build' under SystemUI.</p>
<p>5. Open SystemUI.apk using 7-Zip/WinRar/WinZip.<br />
Extract 'META-INF' and 'AndroidManifest.xml' in apk to path 'SystemUI/build/apk'</p>
<p>4. Recombine apk as step 4.<br />
<code>CMD&gt;apktool b SystemUI</code><br />
Now you can get a new apk under 'SystemUI\dist'.</p>
<p>5. Make '/system' writable in your device.<br />
<code>CMD&gt;adb shell</code><br />
<code>root@android:/ # busybox mount -o remount,rw /system<br />
root@android:/ # exit</code></p>
<p>6. Push new apk to your device.<br />
<code>CMD&gt;adb push SystemUI\dist\SystemUI.apk /system/app/SystemUI.apk</code></p>
<p>7. Reboot you Android device by hand,<br />
or use command.<br />
<code>CMD&gt;adb reboot</code></p>
<p>8. Congratulation!</p>
]]></content:encoded>
			<wfw:commentRss>https://falconia.org/blog/archives/449/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix android exception of Sherlock: unable to pause activity</title>
		<link>https://falconia.org/blog/archives/429</link>
		<comments>https://falconia.org/blog/archives/429#comments</comments>
		<pubDate>Sun, 25 Nov 2012 17:08:55 +0000</pubDate>
		<dc:creator><![CDATA[FalconIA]]></dc:creator>
				<category><![CDATA[程序相关]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[sherlock]]></category>

		<guid isPermaLink="false">http://falconia.org/blog/?p=429</guid>
		<description><![CDATA[How to fix android exception of Sherlock: unable to pause activity Replace the android-support-v4.jar in the libs folder with the latest one from the SDK Manager.]]></description>
				<content:encoded><![CDATA[<p>How to fix android exception of Sherlock: unable to pause activity</p>
<p>Replace the android-support-v4.jar in the libs folder with the latest one from the SDK Manager.</p>
]]></content:encoded>
			<wfw:commentRss>https://falconia.org/blog/archives/429/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[转载]JAVA实现汉字转拼音缩写&#8211;类的静态方法</title>
		<link>https://falconia.org/blog/archives/197</link>
		<comments>https://falconia.org/blog/archives/197#comments</comments>
		<pubDate>Sat, 23 Apr 2011 23:39:44 +0000</pubDate>
		<dc:creator><![CDATA[FalconIA]]></dc:creator>
				<category><![CDATA[程序相关]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[编程]]></category>

		<guid isPermaLink="false">http://falconia.org/blog/?p=197</guid>
		<description><![CDATA[作　者：summerxzg 转载自：http://blog.csdn.net/summerxzg/archive/2009/05/06/4153961.aspx]]></description>
				<content:encoded><![CDATA[<p>作　者：summerxzg<br />
转载自：<a href="http://blog.csdn.net/summerxzg/archive/2009/05/06/4153961.aspx">http://blog.csdn.net/summerxzg/archive/2009/05/06/4153961.aspx</a></p>
<pre class="brush: java; title: ; notranslate">
public class aaaaaaa {
/**
     * 汉字转拼音缩写
     * @param str   //要转换的汉字字符串
     * @return String   //拼音缩写
     */
     public static String getPYString(String str)
     {
             String tempStr = &quot;&quot;;
             for(int i=0; i&lt;str.length(); i++) {
                     char c = str.charAt(i);
                     if((int)c &gt;= 33 &amp;&amp; (int)c &lt;=126) {//字母和符号原样保留
                             tempStr += String.valueOf(c);
                     }
                     else {//累加拼音声母
                             tempStr += getPYChar( String.valueOf(c) );
                     }
             }
             return tempStr;
     }
     /**
     * 取单个字符的拼音声母
     * @param c   //要转换的单个汉字
     * @return String 拼音声母
     */
     public static String getPYChar(String c)
     {
             byte[] array = new byte[2];
             array = String.valueOf(c).getBytes();
             int i = (short)(array[0] - '&#92;&#48;' + 256) * 256 + ((short)(array[1] - '&#92;&#48;' + 256));
             if ( i &lt; 0xB0A1) return &quot;*&quot;;
             if ( i &lt; 0xB0C5) return &quot;a&quot;;
             if ( i &lt; 0xB2C1) return &quot;b&quot;;
             if ( i &lt; 0xB4EE) return &quot;c&quot;;
             if ( i &lt; 0xB6EA) return &quot;d&quot;;
             if ( i &lt; 0xB7A2) return &quot;e&quot;;
             if ( i &lt; 0xB8C1) return &quot;f&quot;;
             if ( i &lt; 0xB9FE) return &quot;g&quot;;
             if ( i &lt; 0xBBF7) return &quot;h&quot;;
             if ( i &lt; 0xBFA6) return &quot;j&quot;;
             if ( i &lt; 0xC0AC) return &quot;k&quot;;
             if ( i &lt; 0xC2E8) return &quot;l&quot;;
             if ( i &lt; 0xC4C3) return &quot;m&quot;;
             if ( i &lt; 0xC5B6) return &quot;n&quot;;
             if ( i &lt; 0xC5BE) return &quot;o&quot;;
             if ( i &lt; 0xC6DA) return &quot;p&quot;;
             if ( i &lt; 0xC8BB) return &quot;q&quot;;
             if ( i &lt; 0xC8F6) return &quot;r&quot;;
             if ( i &lt; 0xCBFA) return &quot;s&quot;;
             if ( i &lt; 0xCDDA) return &quot;t&quot;;
             if ( i &lt; 0xCEF4) return &quot;w&quot;;
             if ( i &lt; 0xD1B9) return &quot;x&quot;;
             if ( i &lt; 0xD4D1) return &quot;y&quot;;
             if ( i &lt; 0xD7FA) return &quot;z&quot;;
             return &quot;*&quot;;
     }
    
     public static void main(String []g){
     System.out.println(getPYString(&quot;中国，,;$#@&amp;avc&quot;));
     }

}
</pre>
]]></content:encoded>
			<wfw:commentRss>https://falconia.org/blog/archives/197/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VB.NET窗体操作技巧两则</title>
		<link>https://falconia.org/blog/archives/10</link>
		<comments>https://falconia.org/blog/archives/10#comments</comments>
		<pubDate>Thu, 26 Jan 2006 05:18:26 +0000</pubDate>
		<dc:creator><![CDATA[FalconIA]]></dc:creator>
				<category><![CDATA[程序相关]]></category>
		<category><![CDATA[vb.net]]></category>
		<category><![CDATA[编程]]></category>

		<guid isPermaLink="false">http://falconia.no-ip.org/blog/?p=10</guid>
		<description><![CDATA[作　者：刘红军 刘乐坤 引用自：http://www.5ivb.net/Info/89/Info31156/ 目录 一、如何拖动没有边框的窗体？ 二、多个窗体之间互相调用 　　一、如何拖动没有边框的窗体？ 　　这个功能在VB6中，需要借助于API函数才能实现。而在VB.NET中，凭自己的功能就能实现。首先设置窗体的FormBorderStyle属性为none以去掉窗体的边框，然后在窗体上添加一个按钮。窗体中的代码如下： Public Class Form1 　Inherits System.Windows.Forms.Form 　Private mouse_offset As Point 　Private Sub form1_MouseDown(ByVal sender As Object, ByVal e As 　System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown 　　mouse_offset = New Point(e.X, e.Y) 　End Sub Private Sub form1_MouseMove(ByVal Sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove 　&#039;&#039;按住鼠标左右键均可拖动窗体 　If e.Button = MouseButtons.Left Or e.Button [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><b>作　者：刘红军 刘乐坤<br />
引用自：<a href="http://www.5ivb.net/Info/89/Info31156/">http://www.5ivb.net/Info/89/Info31156/</a></b></p>
<p>目录<br />
一、如何拖动没有边框的窗体？<br />
二、多个窗体之间互相调用<br />
<span id="more-10"></span><br />
<hr/>
<p>　　一、如何拖动没有边框的窗体？</p>
<p>　　这个功能在VB6中，需要借助于API函数才能实现。而在VB.NET中，凭自己的功能就能实现。首先设置窗体的FormBorderStyle属性为none以去掉窗体的边框，然后在窗体上添加一个按钮。窗体中的代码如下：</p>
<pre class="brush:vb">
Public Class Form1
　Inherits System.Windows.Forms.Form

　Private mouse_offset As Point
　Private Sub form1_MouseDown(ByVal sender As Object, ByVal e As 　System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
　　mouse_offset = New Point(e.X, e.Y)
　End Sub

Private Sub form1_MouseMove(ByVal Sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove
　&#039;&#039;按住鼠标左右键均可拖动窗体
　If e.Button = MouseButtons.Left Or e.Button = MouseButtons.Right Then
　　Dim mousePos As Point = Sender.findform().MousePosition
　　&#039;&#039;获得鼠标偏移量
　　mousePos.Offset(-mouse_offset.X, -mouse_offset.Y)
　　&#039;&#039;设置窗体随鼠标一起移动
　　Sender.findform().Location = mousePos
　End If
End Sub

Private Sub BtnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
　&#039;&#039;关闭窗体
　Me.Close()
End Sub
End Class
</pre>
<p>　　 二、多个窗体之间互相调用</p>
<p>　　在VB6中，多个窗体之间可以很方便地互相调用，如：在Form1中，只需要用一条“Form2.Show” 语句就能显示窗体Form2。然而在VB.NET中窗体处理机制发生了很大的变化：在访问窗体之前，你必须进行窗体实例化；如果在项目中有多处代码访问同一窗体，则你必须把它的同一实例指针传递给这些代码，否则新创建的窗体实例就不再是原先的窗体了。</p>
<p>　　下面的代码实现窗体Form1和Form2之间互相调用,Form1为主窗体。Form1上的按钮BtnShowFrm2的标题为“显示Form2”，Form2上的按钮BtnShowFrm1的标题为“显示Form1”。</p>
<p>　　1、Form1中的代码：</p>
<pre class="brush:vb">
Public Class Form1
Inherits System.Windows.Forms.Form
&#039;&#039;创建Form2的一个新的实例
Dim Frm2 As New Form2()

Public Function Instance2(ByVal frm As Form2)
Frm2 = frm
End Function

Private Sub BtnShowFrm2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnShowFrm2.Click
&#039;&#039;以下语句保证在Form2以及其他窗体中访问Form1时，
&#039;&#039;都将得到Form1的同一个窗体实例。
Frm2.Instance(Me)
Frm2.Show()
Me.Hide()
End Sub

End Class
</pre>
<p>　　2、Form2中的代码：</p>
<pre class="brush:vb">
Public Class Form2
　Inherits System.Windows.Forms.Form
　Dim frm1 As Form1
　&#039;&#039;借助一个新增的Instance属性来生成窗体frm1的实例
　Public Function Instance(ByVal frm As Form1)
　　frm1 = frm
　End Function

　Private Sub BtnShowFrm1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) 　　　Handles BtnShowFrm1.Click
　　Me.Hide()
　　frm1.Show()
　End Sub

　Private Sub Form2_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles 　MyBase.Closed
　　&#039;&#039;如果Form2被关闭，则设置Form1的按钮BtnShowFrm2不可用。
　　frm1.BtnShowFrm2.Enabled = False
　　frm1.Show()
　End Sub
End Class
</pre>
]]></content:encoded>
			<wfw:commentRss>https://falconia.org/blog/archives/10/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
