锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲日韩精品无码一区二区三区,亚洲色少妇熟女11p,国产亚洲一区二区精品http://m.tkk7.com/TiGERTiAN/category/2176.html----TiGERTiANzh-cnMon, 23 Feb 2015 14:02:48 GMTMon, 23 Feb 2015 14:02:48 GMT60OSGi and Hadoop and Node.jshttp://m.tkk7.com/TiGERTiAN/archive/2015/02/23/422997.htmlTiGERTiANTiGERTiANMon, 23 Feb 2015 02:12:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2015/02/23/422997.htmlhttp://m.tkk7.com/TiGERTiAN/comments/422997.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2015/02/23/422997.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/422997.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/422997.htmlOpen Service Gateway initiative(寮鏀炬湇鍔$綉鍏沖崗璁?span style="color: #545454; font-family: arial, sans-serif; font-size: small; font-weight: bold; line-height: 18.2000007629395px; background-color: #ffffff;">)
http://www.osgi.org/Technology/HomePage

Hadoop
http://hadoop.apache.org/

Node.js
https://cnodejs.org/
http://nodejs.org/


TiGERTiAN 2015-02-23 10:12 鍙戣〃璇勮
]]>
javacc宸ュ叿灝忚http://m.tkk7.com/TiGERTiAN/archive/2015/01/31/422602.htmlTiGERTiANTiGERTiANSat, 31 Jan 2015 05:12:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2015/01/31/422602.htmlhttp://m.tkk7.com/TiGERTiAN/comments/422602.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2015/01/31/422602.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/422602.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/422602.htmlhttps://javacc.java.net/

Java Compiler Compiler tm (JavaCC tm) is the most popular parser generator for use with Java tm applications. A parser generator is a tool that reads a grammar specification and converts it to a Java program that can recognize matches to the grammar. In addition to the parser generator itself, JavaCC provides other standard capabilities related to parser generation such as tree building (via a tool called JJTree included with JavaCC), actions, debugging, etc.

涓嬭澆鍚庣殑浣跨敤鏂瑰紡錛圡ac&Linux錛夛細

echo 'java -cp /path/to/javacc.jar $(basename $0) "$@"' > javacc

chmod 755 javacc

ln -s javacc jjtree

ln -s javacc jjdoc





TiGERTiAN 2015-01-31 13:12 鍙戣〃璇勮
]]>
MyEclipse 6.5鏂板簭鍒楀彿錛屽埌2013騫?/title><link>http://m.tkk7.com/TiGERTiAN/archive/2010/10/07/333906.html</link><dc:creator>TiGERTiAN</dc:creator><author>TiGERTiAN</author><pubDate>Thu, 07 Oct 2010 08:43:00 GMT</pubDate><guid>http://m.tkk7.com/TiGERTiAN/archive/2010/10/07/333906.html</guid><wfw:comment>http://m.tkk7.com/TiGERTiAN/comments/333906.html</wfw:comment><comments>http://m.tkk7.com/TiGERTiAN/archive/2010/10/07/333906.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/TiGERTiAN/comments/commentRss/333906.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/TiGERTiAN/services/trackbacks/333906.html</trackback:ping><description><![CDATA[<div id="ykgrmun" class="f14 p90 pl10 answer_content" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; font-size: 14px; line-height: 22px; font-family: Arial; width: 572px; color: #5e6a72; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #000000; font-family: Arial; line-height: 18px; "><span id="reply_content_435508175" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><cn style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> <pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 14px; font-weight: normal; font-style: normal; zoom: 1; white-space: pre-wrap; word-wrap: break-word; line-height: 22px; font-family: Arial; ">Administrator NLR8ZC-855550-68587856625436280 </pre> </cn></span></span></div> <div id="kyebltk" class="f14 p90 pl10 answer_content" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; font-size: 14px; line-height: 22px; font-family: Arial; width: 572px; color: #5e6a72; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #000000; font-family: Arial; line-height: 18px; "><span id="reply_content_435833289" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><cn style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> <pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 14px; font-weight: normal; font-style: normal; zoom: 1; white-space: pre-wrap; word-wrap: break-word; line-height: 22px; font-family: Arial; ">yddcode Serial: lLR8ZC-855550-6858795439845000</pre> </cn></span></span></div> 鍒?013騫磋繃鏈? <img src ="http://m.tkk7.com/TiGERTiAN/aggbug/333906.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/TiGERTiAN/" target="_blank">TiGERTiAN</a> 2010-10-07 16:43 <a href="http://m.tkk7.com/TiGERTiAN/archive/2010/10/07/333906.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>OtaNotifier.javahttp://m.tkk7.com/TiGERTiAN/archive/2010/05/10/320492.htmlTiGERTiANTiGERTiANMon, 10 May 2010 08:33:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2010/05/10/320492.htmlhttp://m.tkk7.com/TiGERTiAN/comments/320492.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2010/05/10/320492.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/320492.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/320492.htmlOtaNotifier.java /*  *  *  * Copyright  1990-2007 Sun&n...  闃呰鍏ㄦ枃

TiGERTiAN 2010-05-10 16:33 鍙戣〃璇勮
]]>
Java涓棤絎﹀彿鏁存暟http://m.tkk7.com/TiGERTiAN/archive/2010/05/03/319913.htmlTiGERTiANTiGERTiANMon, 03 May 2010 01:18:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2010/05/03/319913.htmlhttp://m.tkk7.com/TiGERTiAN/comments/319913.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2010/05/03/319913.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/319913.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/319913.html
/**
     * 閫嗚漿瀛楄妭鏁扮粍
     * 
     * 
@param b
     * 
@return
     
*/
    
private static byte[] reverse(byte[] b) {

        
byte[] temp = new byte[b.length];
        
for (int i = 0; i < b.length; i++) {
            temp[i] 
= b[b.length - 1 - i];
        }
        
return temp;
    }

    
/**
     * 璇誨彇鏃犵鍙蜂綅鐨凷hort鏁幫紝16浣?br />      * 
     * 
@param readBuffer
     * 
@return
     * 
@throws IOException
     
*/
    
private static final BigInteger readUnsignedShort(byte[] readBuffer)
            
throws IOException {
        
if (readBuffer == null || readBuffer.length < 2)
            
return new BigInteger("0");
        
// 澶勭悊鎴愭棤絎﹀彿鏁?/span>
        byte[] uint64 = new byte[3];
        uint64[
2= 0;
        System.arraycopy(readBuffer, 
0, uint64, 02);
        
return new BigInteger(reverse(uint64));
    }

    
/**
     * 璇誨彇鏃犵鍙蜂綅鐨勯暱鏁存暟錛?4浣?br />      * 
     * 
@param readBuffer
     * 
@return
     * 
@throws IOException
     
*/
    
private static final BigInteger readUnsignedInt64(byte[] readBuffer)
            
throws IOException {
        
if (readBuffer == null || readBuffer.length < 8)
            
return new BigInteger("0");
        
// 澶勭悊鎴愭棤絎﹀彿鏁?/span>
        byte[] uint64 = new byte[9];
        uint64[
8= 0;
        System.arraycopy(readBuffer, 
0, uint64, 08);
        
return new BigInteger(reverse(uint64));
    }


TiGERTiAN 2010-05-03 09:18 鍙戣〃璇勮
]]>
C#鐨凚inaryWriter鍜孞ava鐨凞ataInputStream涔嬮棿鐨勬暟鎹浉浜掕漿鎹?/title><link>http://m.tkk7.com/TiGERTiAN/archive/2010/05/02/319902.html</link><dc:creator>TiGERTiAN</dc:creator><author>TiGERTiAN</author><pubDate>Sun, 02 May 2010 14:25:00 GMT</pubDate><guid>http://m.tkk7.com/TiGERTiAN/archive/2010/05/02/319902.html</guid><wfw:comment>http://m.tkk7.com/TiGERTiAN/comments/319902.html</wfw:comment><comments>http://m.tkk7.com/TiGERTiAN/archive/2010/05/02/319902.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/TiGERTiAN/comments/commentRss/319902.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/TiGERTiAN/services/trackbacks/319902.html</trackback:ping><description><![CDATA[寮鍙戠殑鏃跺欏彂鐜幫紝C#鍐欏叆鐨勫瓧鑺傞『搴忔槸浠庝綆鍒伴珮錛堝乏浣庡埌鍙抽珮錛夛紝鑰孞ava鐨凞ataInputStream璇誨彇鐨勬暟鎹槸浠庨珮鍒頒綆錛堝乏楂樺埌鍙充綆錛夛紝鎵浠ュ綋鎴戜滑瑕佺敤Java璇誨彇C#鐢熸垚鐨勪簩榪涘埗鏂囦歡鐨勬椂鍊欙紝闇瑕佸皢DataInputStream閲岄潰鐨勫嚑涓柟娉曢噸鍐欐垨鑰呭啓涓浜涜緟鍔╂柟娉曪紝渚嬪涓嬮潰涓や釜鍑芥暟鏄敤鏉ヨ鍙朇#鍐欏叆鐨勬棤絎﹀彿Short鍨嬪拰鏃犵鍙烽暱鏁村瀷鏁版嵁銆?nbsp;<br /> <div style="background-color: #eeeeee; font-size: 13px; border-left-color: #cccccc; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; "><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #008000; ">/**</span><span style="color: #008000; "><br />      * 閫嗚漿瀛楄妭鏁扮粍<br />      * <br />      * </span><span style="color: #808080; ">@param</span><span style="color: #008000; "> b<br />      * </span><span style="color: #808080; ">@return</span><span style="color: #008000; "><br />      </span><span style="color: #008000; ">*/</span><span style="color: #000000; "><br />     </span><span style="color: #0000FF; ">private</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">static</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">byte</span><span style="color: #000000; ">[] reverse(</span><span style="color: #0000FF; ">byte</span><span style="color: #000000; ">[] b) {<br /> <br />         </span><span style="color: #0000FF; ">byte</span><span style="color: #000000; ">[] temp </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">new</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">byte</span><span style="color: #000000; ">[b.length];<br />         </span><span style="color: #0000FF; ">for</span><span style="color: #000000; "> (</span><span style="color: #0000FF; ">int</span><span style="color: #000000; "> i </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; ">; i </span><span style="color: #000000; "><</span><span style="color: #000000; "> b.length; i</span><span style="color: #000000; ">++</span><span style="color: #000000; ">) {<br />             temp[i] </span><span style="color: #000000; ">=</span><span style="color: #000000; "> b[b.length </span><span style="color: #000000; ">-</span><span style="color: #000000; "> </span><span style="color: #000000; ">1</span><span style="color: #000000; "> </span><span style="color: #000000; ">-</span><span style="color: #000000; "> i];<br />         }<br />         </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> temp;<br />     }<br /> <br />     </span><span style="color: #008000; ">/**</span><span style="color: #008000; "><br />      * 璇誨彇鏃犵鍙蜂綅鐨凷hort鏁幫紝16浣?br />      * <br />      * </span><span style="color: #808080; ">@param</span><span style="color: #008000; "> readBuffer<br />      * </span><span style="color: #808080; ">@return</span><span style="color: #008000; "><br />      * </span><span style="color: #808080; ">@throws</span><span style="color: #008000; "> IOException<br />      </span><span style="color: #008000; ">*/</span><span style="color: #000000; "><br />     </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">static</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">final</span><span style="color: #000000; "> BigInteger readUnsignedShort(</span><span style="color: #0000FF; ">byte</span><span style="color: #000000; ">[] readBuffer)<br />             </span><span style="color: #0000FF; ">throws</span><span style="color: #000000; "> IOException {<br />         </span><span style="color: #0000FF; ">if</span><span style="color: #000000; "> (readBuffer </span><span style="color: #000000; ">==</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">null</span><span style="color: #000000; "> </span><span style="color: #000000; ">||</span><span style="color: #000000; "> readBuffer.length </span><span style="color: #000000; "><</span><span style="color: #000000; "> </span><span style="color: #000000; ">2</span><span style="color: #000000; ">)<br />             </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">new</span><span style="color: #000000; "> BigInteger(</span><span style="color: #000000; ">"</span><span style="color: #000000; ">0</span><span style="color: #000000; ">"</span><span style="color: #000000; ">);<br />         </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 澶勭悊鎴愭棤絎﹀彿鏁?/span><span style="color: #008000; "><br /> </span><span style="color: #000000; ">        </span><span style="color: #0000FF; ">byte</span><span style="color: #000000; ">[] uint64 </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">new</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">byte</span><span style="color: #000000; ">[</span><span style="color: #000000; ">3</span><span style="color: #000000; ">];<br />         uint64[</span><span style="color: #000000; ">2</span><span style="color: #000000; ">] </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; ">;<br />         System.arraycopy(readBuffer, </span><span style="color: #000000; ">0</span><span style="color: #000000; ">, uint64, </span><span style="color: #000000; ">0</span><span style="color: #000000; ">, </span><span style="color: #000000; ">2</span><span style="color: #000000; ">);<br />         </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">new</span><span style="color: #000000; "> BigInteger(reverse(uint64));<br />     }<br /> <br />     </span><span style="color: #008000; ">/**</span><span style="color: #008000; "><br />      * 璇誨彇鏃犵鍙蜂綅鐨勯暱鏁存暟錛?4浣?br />      * <br />      * </span><span style="color: #808080; ">@param</span><span style="color: #008000; "> readBuffer<br />      * </span><span style="color: #808080; ">@return</span><span style="color: #008000; "><br />      * </span><span style="color: #808080; ">@throws</span><span style="color: #008000; "> IOException<br />      </span><span style="color: #008000; ">*/</span><span style="color: #000000; "><br />     </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">static</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">final</span><span style="color: #000000; "> BigInteger readUnsignedInt64(</span><span style="color: #0000FF; ">byte</span><span style="color: #000000; ">[] readBuffer)<br />             </span><span style="color: #0000FF; ">throws</span><span style="color: #000000; "> IOException {<br />         </span><span style="color: #0000FF; ">if</span><span style="color: #000000; "> (readBuffer </span><span style="color: #000000; ">==</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">null</span><span style="color: #000000; "> </span><span style="color: #000000; ">||</span><span style="color: #000000; "> readBuffer.length </span><span style="color: #000000; "><</span><span style="color: #000000; "> </span><span style="color: #000000; ">8</span><span style="color: #000000; ">)<br />             </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">new</span><span style="color: #000000; "> BigInteger(</span><span style="color: #000000; ">"</span><span style="color: #000000; ">0</span><span style="color: #000000; ">"</span><span style="color: #000000; ">);<br />         </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 澶勭悊鎴愭棤絎﹀彿鏁?/span><span style="color: #008000; "><br /> </span><span style="color: #000000; ">        </span><span style="color: #0000FF; ">byte</span><span style="color: #000000; ">[] uint64 </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">new</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">byte</span><span style="color: #000000; ">[</span><span style="color: #000000; ">9</span><span style="color: #000000; ">];<br />         uint64[</span><span style="color: #000000; ">8</span><span style="color: #000000; ">] </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; ">;<br />         System.arraycopy(readBuffer, </span><span style="color: #000000; ">0</span><span style="color: #000000; ">, uint64, </span><span style="color: #000000; ">0</span><span style="color: #000000; ">, </span><span style="color: #000000; ">8</span><span style="color: #000000; ">);<br />         </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">new</span><span style="color: #000000; "> BigInteger(reverse(uint64));<br />     }</span></div> <img src ="http://m.tkk7.com/TiGERTiAN/aggbug/319902.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/TiGERTiAN/" target="_blank">TiGERTiAN</a> 2010-05-02 22:25 <a href="http://m.tkk7.com/TiGERTiAN/archive/2010/05/02/319902.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍦∕ac涓嬮潰涓嬭澆Android婧愪唬鐮?/title><link>http://m.tkk7.com/TiGERTiAN/archive/2010/03/11/315209.html</link><dc:creator>TiGERTiAN</dc:creator><author>TiGERTiAN</author><pubDate>Thu, 11 Mar 2010 14:04:00 GMT</pubDate><guid>http://m.tkk7.com/TiGERTiAN/archive/2010/03/11/315209.html</guid><wfw:comment>http://m.tkk7.com/TiGERTiAN/comments/315209.html</wfw:comment><comments>http://m.tkk7.com/TiGERTiAN/archive/2010/03/11/315209.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/TiGERTiAN/comments/commentRss/315209.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/TiGERTiAN/services/trackbacks/315209.html</trackback:ping><description><![CDATA[<div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: black; background-position: initial initial; background-repeat: initial initial; "> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">1銆佸畨瑁卹epo</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">To install, initialize, and configure Repo, follow these steps:</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br /> </div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span id="mpmpkmp" class="Apple-tab-span" style="white-space:pre"> </span>1.<span id="atoyocj" class="Apple-tab-span" style="white-space:pre"> </span>Make sure you have a ~/bin directory in your home directory, and check to be sure that this bin directory is in your path:鈥? $ cd ~鈥? $ mkdir bin鈥? $ echo $PATH</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span id="ajpkfip" class="Apple-tab-span" style="white-space:pre"> </span>2.<span id="sxdjpwg" class="Apple-tab-span" style="white-space:pre"> </span>Download the repo script and make sure it is executable:鈥? curl http://android.git.kernel.org/repo >~/bin/repo$ chmod a+x ~/bin/repo</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br /> </div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">濡傛灉repo涓嶅湪PATH涓紝鍒欓渶瑕佽繘琛屾坊鍔狅紝鍙互浣跨敤</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">export PATH=$PATH:your_path</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">鍛戒護銆傚綋鐒跺鏋滀笉娣誨姞錛屽湪榪愯repo鐨勬椂鍊欏氨瑕佸姞鍏ュ畬鏁磋礬寰?/div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br /> </div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">2銆佸畨瑁単it錛峜ore</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">鍙互涓嬭澆Macport錛岀劧鍚庝嬌鐢╯udo port selfupdate鏇存柊涓?/div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br /> </div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">3銆佷笅杞芥簮浠g爜</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">To clone one of these trees, install git, and run:</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">git clone git://android.git.kernel.org/ + project path.</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br /> </div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">To clone the entire platform, install repo, and run:</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">mkdir mydroid</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">cd mydroid</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">repo init -u git://android.git.kernel.org/platform/manifest.git</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">repo sync</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br /> </div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">鍙互浣跨敤repo鐨勬柟寮忎笅杞藉畬鏁存簮浠g爜</div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br /> </div> <div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: black; background-position: initial initial; background-repeat: initial initial; "><br /> </div> </div> <img src ="http://m.tkk7.com/TiGERTiAN/aggbug/315209.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/TiGERTiAN/" target="_blank">TiGERTiAN</a> 2010-03-11 22:04 <a href="http://m.tkk7.com/TiGERTiAN/archive/2010/03/11/315209.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>[杞琞Java閫氳繃XML Schema鏍¢獙XML http://m.tkk7.com/TiGERTiAN/archive/2010/03/11/315147.htmlTiGERTiANTiGERTiANThu, 11 Mar 2010 03:11:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2010/03/11/315147.htmlhttp://m.tkk7.com/TiGERTiAN/comments/315147.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2010/03/11/315147.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/315147.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/315147.html
XML鏂囦歡
<?xml version="1.0"?>
<note
        xmlns="http://www.w3school.com.cn"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.w3school.com.cn file:///D:/_dev_stu/xsdtest/src/note.xml">

    <to>George</to>
    <from>John</from>
    <heading>Reminder</heading>
    <body>Don't forget the meeting this weekend!</body>
</note>
 
XSD鏂囦歡
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://www.w3school.com.cn"
           xmlns="http://www.w3school.com.cn"
           elementFormDefault="qualified">

    <xs:element name="note">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="to" type="xs:string"/>
                <xs:element name="from" type="xs:string"/>
                <xs:element name="heading" type="xs:string"/>
                <xs:element name="body" type="xs:string"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

</xs:schema>
 
嫻嬭瘯浠g爜
import org.dom4j.Document;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.SAXReader;
import org.dom4j.io.SAXValidator;
import org.dom4j.io.XMLWriter;
import org.dom4j.util.XMLErrorHandler;

import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import java.io.File;

/**
* Java XML鏍¢獙嫻嬭瘯
*
* @author leizhimin錛?008-9-4 14:42:35
*/

public class ValidataXMLTest {
    public static void main(String[] args) {
        validateXMLByXSD();
        validateXMLByDTD();

    }

    /**
     * 閫氳繃XSD錛圶ML Schema錛夋牎楠孹ML
     */

    public static void validateXMLByXSD() {
        String xmlFileName = "Q:\\_dev_stu\\xsdtest\\src\\note.xml";
        String xsdFileName = "Q:\\_dev_stu\\xsdtest\\src\\note.xsd";
        try {
            //鍒涘緩榛樿鐨刋ML閿欒澶勭悊鍣?
            XMLErrorHandler errorHandler = new XMLErrorHandler();
            //鑾峰彇鍩轟簬 SAX 鐨勮В鏋愬櫒鐨勫疄渚?
            SAXParserFactory factory = SAXParserFactory.newInstance();
            //瑙f瀽鍣ㄥ湪瑙f瀽鏃墮獙璇?XML 鍐呭銆?
            factory.setValidating(true);
            //鎸囧畾鐢辨浠g爜鐢熸垚鐨勮В鏋愬櫒灝嗘彁渚涘 XML 鍚嶇О絀洪棿鐨勬敮鎸併?
            factory.setNamespaceAware(true);
            //浣跨敤褰撳墠閰嶇疆鐨勫伐鍘傚弬鏁板垱寤?SAXParser 鐨勪竴涓柊瀹炰緥銆?
            SAXParser parser = factory.newSAXParser();
            //鍒涘緩涓涓鍙栧伐鍏?
            SAXReader xmlReader = new SAXReader();
            //鑾峰彇瑕佹牎楠寈ml鏂囨。瀹炰緥
            Document xmlDocument = (Document) xmlReader.read(new File(xmlFileName));
            //璁劇疆 XMLReader 鐨勫熀紜瀹炵幇涓殑鐗瑰畾灞炴с傛牳蹇冨姛鑳藉拰灞炴у垪琛ㄥ彲浠ュ湪 [url]http://sax.sourceforge.net/?selected=get-set[/url] 涓壘鍒般?
            parser.setProperty(
                    "http://java.sun.com/xml/jaxp/properties/schemaLanguage",
                    "http://www.w3.org/2001/XMLSchema");
            parser.setProperty(
                    "http://java.sun.com/xml/jaxp/properties/schemaSource",
                    "file:" + xsdFileName);
            //鍒涘緩涓涓猄AXValidator鏍¢獙宸ュ叿錛屽茍璁劇疆鏍¢獙宸ュ叿鐨勫睘鎬?
            SAXValidator validator = new SAXValidator(parser.getXMLReader());
            //璁劇疆鏍¢獙宸ュ叿鐨勯敊璇鐞嗗櫒錛屽綋鍙戠敓閿欒鏃訛紝鍙互浠庡鐞嗗櫒瀵硅薄涓緱鍒伴敊璇俊鎭?
            validator.setErrorHandler(errorHandler);
            //鏍¢獙
            validator.validate(xmlDocument);

            XMLWriter writer = new XMLWriter(OutputFormat.createPrettyPrint());
            //濡傛灉閿欒淇℃伅涓嶄負絀猴紝璇存槑鏍¢獙澶辮觸錛屾墦鍗伴敊璇俊鎭?
            if (errorHandler.getErrors().hasContent()) {
                System.out.println("XML鏂囦歡閫氳繃XSD鏂囦歡鏍¢獙澶辮觸錛?);
                writer.write(errorHandler.getErrors());
            } else {
                System.out.println("Good! XML鏂囦歡閫氳繃XSD鏂囦歡鏍¢獙鎴愬姛錛?);
            }
        } catch (Exception ex) {
            System.out.println("XML鏂囦歡: " + xmlFileName + " 閫氳繃XSD鏂囦歡:" + xsdFileName + "媯楠屽け璐ャ俓n鍘熷洜錛?" + ex.getMessage());
            ex.printStackTrace();
        }
    }

    /**
     * 閫氳繃DTD鏍¢獙XML
     */

    public static void validateXMLByDTD() {
        //todo錛氭殏鏃朵笉鐢紝浠ュ悗鍐嶈鍚?
    }
}
 
榪愯緇撴灉
Good! XML鏂囦歡閫氳繃XSD鏂囦歡鏍¢獙鎴愬姛錛?/div>

鏂規硶浜岋細

鏈榪戝Schema 楠岃瘉鐮旂┒浜嗕竴涓嬶紝 浠g爜濡備笅錛?br /> 鎵闇JAR鍖呴渶瑕佽嚜宸變笅杞斤紙鐗堟湰涓瀹氳姝g‘錛?/p>

public class SchemaValidation {


    public static void main(String[] args) {
        validate();
    }

    public static void validate() {
        try {
            SchemaValidation demo = new SchemaValidation();
            // Give the xml(鏍囧噯鍖栬秺鏉ヨ秺榪戜簡) and schema name
            InputStream xml(鏍囧噯鍖栬秺鏉ヨ秺榪戜簡)String = demo.getClass().getResourceAsStream("GBAInit.xml(鏍囧噯鍖栬秺鏉ヨ秺榪戜簡)");
            InputStream schemaStr = demo.getClass().getResourceAsStream("GBAInitSchema.xsd");
   
            SAXReader reader = createSAXReader(schemaStr);
            System.out.println("XSD parse successfully !");
           
            Document document = reader.read(xml(鏍囧噯鍖栬秺鏉ヨ秺榪戜簡)String);
            System.out.println("Successfully validation .. . ");
        } catch (DocumentException e) {
            System.out.println("Exception occurred: " + e);
            Throwable nestedException = e.getNestedException();
            if (nestedException != null) {
                System.out.println("NestedException: " + nestedException);
                nestedException.printStackTrace();
            } else {
                e.printStackTrace();
            }
        } catch (Throwable t) {
            System.out.println("Exception occurred: " + t);
            t.printStackTrace();
        }
    }

    /** Registers the Verifier with the SAXReader */
    protected SAXReader createSAXReader(InputStream schemaURI) throws Exception {

        System.out.println("Loaded schema document: " + schemaURI);

        // use autodetection of schemas
        VerifierFactory factory = new com.sun.msv.verifier.jarv.TheFactoryImpl();
        Schema schema = factory.compileSchema(schemaURI);

        Verifier verifier = schema.newVerifier();
        verifier.setErrorHandler(new ErrorHandler() {
            public void error(SAXParseException e) {
                System.out.println("ERROR: " + e);
            }

            public void fatalError(SAXParseException e) {
                System.out.println("FATAL: " + e);
            }

            public void warning(SAXParseException e) {
                System.out.println("WARNING: " + e);
            }
        });

        // now install the verifying filter
        VerifierFilter filter = verifier.getVerifierFilter();
        SAXReader reader = new SAXReader();
        reader.setxml(鏍囧噯鍖栬秺鏉ヨ秺榪戜簡)Filter(filter);
        return reader;
    }

鏈枃鏉ユ簮浜?WEB寮鍙戠綉 鍘熸枃閾炬帴錛歨ttp://www.cncms.com.cn/ajax/9977.htm




TiGERTiAN 2010-03-11 11:11 鍙戣〃璇勮
]]>[杞琞JAVA涓婂姞瀵嗙畻娉曠殑瀹炵幇鐢ㄤ緥http://m.tkk7.com/TiGERTiAN/archive/2010/03/05/314602.htmlTiGERTiANTiGERTiANFri, 05 Mar 2010 05:50:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2010/03/05/314602.htmlhttp://m.tkk7.com/TiGERTiAN/comments/314602.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2010/03/05/314602.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/314602.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/314602.html闃呰鍏ㄦ枃

TiGERTiAN 2010-03-05 13:50 鍙戣〃璇勮
]]>
LG GW880(Ophone)寮鍚疉DB璋冭瘯妯″紡http://m.tkk7.com/TiGERTiAN/archive/2010/03/03/314442.htmlTiGERTiANTiGERTiANWed, 03 Mar 2010 13:31:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2010/03/03/314442.htmlhttp://m.tkk7.com/TiGERTiAN/comments/314442.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2010/03/03/314442.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/314442.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/314442.html /Files/TiGERTiAN/LGE_adb.zip
閫氳繃榪欎釜紼嬪簭寮鍚疉DB妯″紡錛屾垜浠氨鍙互瀵筄phone鐨勭▼搴忚繘琛岀湡鏈鴻仈璋冧簡銆?br /> 鍦╓indows 7涓嬮潰錛屽彲鑳戒細鎻愮ず鎵句笉鍒伴┍鍔紝闇瑕佽繘鍏ヨ澶囩鐞嗗櫒錛屾洿鏂伴偅涓湭鐭ヨ澶囩殑椹卞姩錛屾墜鍔ㄤ粠璁懼鍒楄〃閲岄潰閫夋嫨鏄劇ず鎵鏈夎澶囷紝鐒跺悗鎵懼埌sdk涓甫鐨剈sb_driver錛岄夋嫨x86涓嬮潰鐨勯┍鍔紝閫夋嫨涔嬪悗浼氭樉紺?涓┍鍔紝閫夋嫨閭d釜ADB Testing Interface椹卞姩灝卞彲浠ヤ簡銆傝繖鏍鋒垜浠氨瀹屾垚浜哋phone鐪熸満鑱旇皟鐨勫噯澶囧伐浣滀簡錛屼箣鍚庡彧闇瑕佸湪寮鍙戠幆澧冧腑浣跨敤灝卞ソ浜嗐?

TiGERTiAN 2010-03-03 21:31 鍙戣〃璇勮
]]>
Android涓瑿ontentProvider鍜孋ontentResolver浣跨敤鍏ラ棬http://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313403.htmlTiGERTiANTiGERTiANThu, 18 Feb 2010 11:25:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313403.htmlhttp://m.tkk7.com/TiGERTiAN/comments/313403.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313403.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/313403.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/313403.html闃呰鍏ㄦ枃

TiGERTiAN 2010-02-18 19:25 鍙戣〃璇勮
]]>
Android鏉冮檺綆鍗曚粙緇?/title><link>http://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313401.html</link><dc:creator>TiGERTiAN</dc:creator><author>TiGERTiAN</author><pubDate>Thu, 18 Feb 2010 10:20:00 GMT</pubDate><guid>http://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313401.html</guid><wfw:comment>http://m.tkk7.com/TiGERTiAN/comments/313401.html</wfw:comment><comments>http://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313401.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/TiGERTiAN/comments/commentRss/313401.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/TiGERTiAN/services/trackbacks/313401.html</trackback:ping><description><![CDATA[<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #0000ff"><?</span><span style="color: #ff00ff">xml version="1.0" encoding="utf-8"</span><span style="color: #0000ff">?></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">manifest </span><span style="color: #ff0000">xmlns:android</span><span style="color: #0000ff">="http://schemas.android.com/apk/res/android"</span><span style="color: #ff0000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    package</span><span style="color: #0000ff">="com.backgroundservice"</span><span style="color: #ff0000"> android:versionCode</span><span style="color: #0000ff">="1"</span><span style="color: #ff0000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    android:versionName</span><span style="color: #0000ff">="1.0"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">application </span><span style="color: #ff0000">android:icon</span><span style="color: #0000ff">="@drawable/icon"</span><span style="color: #ff0000"> android:label</span><span style="color: #0000ff">="@string/app_name"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">service </span><span style="color: #ff0000">android:name</span><span style="color: #0000ff">="TestBackgroundService"</span><span style="color: #ff0000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            android:permission</span><span style="color: #0000ff">="com.tigertian.permission.TEST_SERVICE"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">intent-filter</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: #0000ff"><</span><span style="color: #800000">action </span><span style="color: #ff0000">android:name</span><span style="color: #0000ff">="android.intent.action.STORE_REQUEST"</span><span style="color: #0000ff">></</span><span style="color: #800000">action</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: #0000ff"><</span><span style="color: #800000">category </span><span style="color: #ff0000">android:name</span><span style="color: #0000ff">="android.intent.category.DEFAULT"</span><span style="color: #0000ff">></</span><span style="color: #800000">category</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: #0000ff"><</span><span style="color: #800000">data </span><span style="color: #ff0000">android:scheme</span><span style="color: #0000ff">="x-id"</span><span style="color: #0000ff">></</span><span style="color: #800000">data</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff"></</span><span style="color: #800000">intent-filter</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">service</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #008000"><!--</span><span style="color: #008000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            <receiver android:name="ServiceReceiver"> <intent-filter> <action<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            android:name="android.intent.action.STORE_REQUEST"></action><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            <category android:name="android.intent.category.DEFAULT"></category><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            <data android:scheme="x-id"></data> </intent-filter> </receiver><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #008000">--></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">provider </span><span style="color: #ff0000">android:name</span><span style="color: #0000ff">="TestContentProvider"</span><span style="color: #ff0000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            android:authorities</span><span style="color: #0000ff">="com.backgroundservice.TestContentProvider"</span><span style="color: #ff0000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            android:multiprocess</span><span style="color: #0000ff">="false"</span><span style="color: #ff0000"> android:grantUriPermissions</span><span style="color: #0000ff">="false"</span><span style="color: #0000ff">></</span><span style="color: #800000">provider</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">application</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">uses-sdk </span><span style="color: #ff0000">android:minSdkVersion</span><span style="color: #0000ff">="3"</span><span style="color: #ff0000"> </span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">permission-group </span><span style="color: #ff0000">android:name</span><span style="color: #0000ff">="android.permission-group.GAMEHALL"</span><span style="color: #ff0000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        android:label</span><span style="color: #0000ff">="@string/gamehall_group"</span><span style="color: #ff0000"> android:description</span><span style="color: #0000ff">="@string/permission_desc"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">permission-group</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">permission </span><span style="color: #ff0000">android:name</span><span style="color: #0000ff">="com.tigertian.permission.TEST_SERVICE"</span><span style="color: #ff0000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        android:description</span><span style="color: #0000ff">="@string/permission_desc"</span><span style="color: #ff0000"> android:label</span><span style="color: #0000ff">="@string/permission_label"</span><span style="color: #ff0000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        android:protectionLevel</span><span style="color: #0000ff">="dangerous"</span><span style="color: #ff0000"> android:permissionGroup</span><span style="color: #0000ff">="android.permission-group.GAMEHALL"</span><span style="color: #0000ff">></</span><span style="color: #800000">permission</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff"></</span><span style="color: #800000">manifest</span><span style="color: #0000ff">></span><span style="color: #000000"> </span></div> 涓鑸渶濂藉0鏄庝竴涓潈闄愮錛屾墍鏈夋潈闄愰兘鍒嗛厤濂界粍錛屼箣鍚庣粰鐩稿簲鐨凙ctivity鎴栬匰ervice璧嬩簣鏉冮檺銆傝繖鏍峰湪瀹夎浣跨敤紼嬪簭鐨勬椂鍊欙紝浼氭彁紺虹敤鎴蜂嬌鐢ㄤ簡鍝竴涓潈闄愮粍涓嬮潰鐨勫摢涓涓潈闄愶紝鍚﹀垯鏉冮檺緇勫悕縐板氨浼氬彉鎴怐efault銆備笅闈㈡槸浣跨敤紼嬪簭錛?br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #0000ff"><</span><span style="color: #800000">uses-permission </span><span style="color: #ff0000">android:name</span><span style="color: #0000ff">="com.tigertian.permission.TEST_SERVICE"</span><span style="color: #0000ff">></</span><span style="color: #800000">uses-permission</span><span style="color: #0000ff">></span></div> <img src ="http://m.tkk7.com/TiGERTiAN/aggbug/313401.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/TiGERTiAN/" target="_blank">TiGERTiAN</a> 2010-02-18 18:20 <a href="http://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313401.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Android緋葷粺Intent鐨勪嬌鐢?/title><link>http://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313397.html</link><dc:creator>TiGERTiAN</dc:creator><author>TiGERTiAN</author><pubDate>Thu, 18 Feb 2010 03:23:00 GMT</pubDate><guid>http://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313397.html</guid><wfw:comment>http://m.tkk7.com/TiGERTiAN/comments/313397.html</wfw:comment><comments>http://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313397.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/TiGERTiAN/comments/commentRss/313397.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/TiGERTiAN/services/trackbacks/313397.html</trackback:ping><description><![CDATA[<div id="ogqpdgu" class="postmessage firstpost"> <div class="wueouqb" id="threadtitle"> <h1>Android Intent鐨勫嚑縐嶇敤娉曞叏闈㈡葷粨</h1> <div id="lfhcrtc" class="threadtags"><a href="tag-Intent.html" target="_blank">Intent</a>, <a href="tag-%E7%94%A8%E6%B3%95.html" target="_blank">鐢ㄦ硶</a></div> </div> <div id="oqaznfe" class="t_msgfontfix"> <table cellspacing="0" cellpadding="0"> <tbody> <tr> <td id="postmessage_749" class="t_msgfont"><span id="kxoyiph" class="t_tag" onclick="tagshow(event)" href="tag.php?name=Intent">Intent</span>搴旇綆楁槸Android涓壒鏈夌殑涓滆タ銆備綘鍙互鍦↖ntent涓寚瀹?span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%E7%A8%8B%E5%BA%8F">紼嬪簭</span>瑕佹墽琛岀殑鍔ㄤ綔錛堟瘮濡傦細view,edit,dial錛夛紝浠ュ強紼嬪簭鎵ц鍒拌鍔ㄤ綔鏃舵墍闇瑕佺殑<span id="anmsnqp" class="t_tag" onclick="tagshow(event)" href="tag.php?name=%E8%B5%84%E6%96%99">璧勬枡</span>銆傞兘鎸囧畾濂藉悗錛屽彧瑕佽皟鐢╯tartActivity()錛孉ndroid<span id="dfprxhz" class="t_tag" onclick="tagshow(event)" href="tag.php?name=%E7%B3%BB%E7%BB%9F">緋葷粺</span>浼氳嚜鍔ㄥ鎵炬渶絎﹀悎浣犳寚瀹氳姹傜殑<span id="mkjihov" class="t_tag" onclick="tagshow(event)" href="tag.php?name=%E5%BA%94%E7%94%A8">搴旂敤</span>紼嬪簭錛屽茍鎵ц璇ョ▼搴忋?br /> <br /> 涓嬮潰鍒楀嚭鍑犵Intent鐨勭敤娉?br /> 鏄劇ず緗戦〉: <div id="kmlzfml" class="blockcode"> <div class="ejekjma" id="code0"> <ol> <li>Uri uri = Uri.parse("http://www.google.com");<br /> <li>Intent it  = new Intent(Intent.ACTION_VIEW,uri);<br /> <li>startActivity(it);</li> </ol> </div> <em onclick="copycode($('code0'));">澶嶅埗<span id="rioyxlk" class="t_tag" onclick="tagshow(event)" href="tag.php?name=%E4%BB%A3%E7%A0%81">浠g爜</span></em></div> 鏄劇ず鍦板浘: <div id="kidyewz" class="blockcode"> <div class="xsyidry" id="code1"> <ol> <li>Uri uri = Uri.parse("geo:38.899533,-77.036476");<br /> <li>Intent it = new Intent(Intent.Action_VIEW,uri);<br /> <li>startActivity(it); </li> </ol> </div> <em onclick="copycode($('code1'));">澶嶅埗浠g爜</em></div> 璺緞瑙勫垝: <div id="zupkfia" class="blockcode"> <div class="gisrmaz" id="code2"> <ol> <li>Uri uri = Uri.parse("http://maps.google.com/maps?f=d&saddr=startLat%20startLng&daddr=endLat%20endLng&hl=en");<br /> <li>Intent it = new Intent(Intent.ACTION_VIEW,URI);<br /> <li>startActivity(it);</li> </ol> </div> <em onclick="copycode($('code2'));">澶嶅埗浠g爜</em></div> 鎷ㄦ墦鐢佃瘽:<br /> 璋冪敤鎷ㄥ彿紼嬪簭 <div id="uflvuxt" class="blockcode"> <div class="pcihcqe" id="code3"> <ol> <li>Uri uri = Uri.parse("tel:xxxxxx");<br /> <li>Intent it = new Intent(Intent.ACTION_DIAL, uri);  <br /> <li>startActivity(it);  </li> </ol> </div> <em onclick="copycode($('code3'));">澶嶅埗浠g爜</em></div> <div id="keoythk" class="blockcode"> <div class="boyiwzg" id="code4"> <ol> <li>Uri uri = Uri.parse("tel.xxxxxx");<br /> <li>Intent it =new Intent(Intent.ACTION_CALL,uri);<br /> <li>瑕佷嬌鐢ㄨ繖涓繀欏誨湪閰嶇疆<span id="bxwyxwk" class="t_tag" onclick="tagshow(event)" href="tag.php?name=%E6%96%87%E4%BB%B6">鏂囦歡</span>涓姞鍏?lt;uses-permission id="<span id="mofakyp" class="t_tag" onclick="tagshow(event)" href="tag.php?name=android">android</span>.permission.CALL_PHONE" /></li> </ol> </div> <em onclick="copycode($('code4'));">澶嶅埗浠g爜</em></div> 鍙戦丼MS/MMS<br /> 璋冪敤鍙戦?span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%E7%9F%AD%E4%BF%A1">鐭俊</span>鐨勭▼搴? <div id="ldnblvu" class="blockcode"> <div class="sqakqio" id="code5"> <ol> <li>Intent it = new Intent(Intent.ACTION_VIEW);   <br /> <li>it.putExtra("sms_body", "The SMS text");   <br /> <li>it.setType("vnd.android-dir/mms-sms");   <br /> <li>startActivity(it);  </li> </ol> </div> <em onclick="copycode($('code5'));">澶嶅埗浠g爜</em></div> 鍙戦佺煭淇? <div id="lblgfta" class="blockcode"> <div class="sqpzfto" id="code6"> <ol> <li>Uri uri = Uri.parse("smsto:0800000123");   <br /> <li>Intent it = new Intent(Intent.ACTION_SENDTO, uri);   <br /> <li>it.putExtra("sms_body", "The SMS text");   <br /> <li>startActivity(it);  </li> </ol> </div> <em onclick="copycode($('code6'));">澶嶅埗浠g爜</em></div> 鍙戦佸僵淇? <div id="oazqazy" class="blockcode"> <div class="bwkqwoz" id="code7"> <ol> <li>Uri uri = Uri.parse("content://media/external/images/media/23");   <br /> <li>Intent it = new Intent(Intent.ACTION_SEND);   <br /> <li>it.putExtra("sms_body", "some text");   <br /> <li>it.putExtra(Intent.EXTRA_STREAM, uri);   <br /> <li>it.setType("image/png");   <br /> <li>startActivity(it); </li> </ol> </div> <em onclick="copycode($('code7'));">澶嶅埗浠g爜</em></div> 鍙戦丒mail <div id="cekjipd" class="blockcode"> <div class="ikfhcyb" id="code8"> <ol> <li><br /> <li>Uri uri = Uri.parse("mailto:xxx@abc.com");<br /> <li>Intent it = new Intent(Intent.ACTION_SENDTO, uri);<br /> <li>startActivity(it);</li> </ol> </div> <em onclick="copycode($('code8'));">澶嶅埗浠g爜</em></div> <div id="tbsgbpw" class="blockcode"> <div class="brmdjmt" id="code9"> <ol> <li>Intent it = new Intent(Intent.ACTION_SEND);   <br /> <li>it.putExtra(Intent.EXTRA_EMAIL, "me@abc.com");   <br /> <li>it.putExtra(Intent.EXTRA_TEXT, "The email body text");   <br /> <li>it.setType("text/plain");   <br /> <li>startActivity(Intent.createChooser(it, "Choose Email Client"));  </li> </ol> </div> <em onclick="copycode($('code9'));">澶嶅埗浠g爜</em></div> <div id="oofpovy" class="blockcode"> <div class="vblkjiw" id="code10"> <ol> <li>Intent it=new Intent(Intent.ACTION_SEND);     <br /> <li>String[] tos={"me@abc.com"};     <br /> <li>String[] ccs={"you@abc.com"};     <br /> <li>it.putExtra(Intent.EXTRA_EMAIL, tos);     <br /> <li>it.putExtra(Intent.EXTRA_CC, ccs);     <br /> <li>it.putExtra(Intent.EXTRA_TEXT, "The email body text");     <br /> <li>it.putExtra(Intent.EXTRA_SUBJECT, "The email subject text");     <br /> <li>it.setType("message/rfc822");     <br /> <li>startActivity(Intent.createChooser(it, "Choose Email Client"));   </li> </ol> </div> <em onclick="copycode($('code10'));">澶嶅埗浠g爜</em></div> 娣誨姞闄勪歡 <div id="cyilrad" class="blockcode"> <div class="yniojtw" id="code11"> <ol> <li>Intent it = new Intent(Intent.ACTION_SEND);   <br /> <li>it.putExtra(Intent.EXTRA_SUBJECT, "The email subject text");   <br /> <li>it.putExtra(Intent.EXTRA_STREAM, "file:///sdcard/mysong.mp3");   <br /> <li>sendIntent.setType("audio/mp3");   <br /> <li>startActivity(Intent.createChooser(it, "Choose Email Client"));</li> </ol> </div> <em onclick="copycode($('code11'));">澶嶅埗浠g爜</em></div> <span id="elruasr" class="t_tag" onclick="tagshow(event)" href="tag.php?name=%E6%92%AD%E6%94%BE">鎾斁</span>澶氬獟浣? <div id="okftdcb" class="blockcode"> <div class="whgfedg" id="code12"> <ol> <li>  <br /> <li>Intent it = new Intent(Intent.ACTION_VIEW);<br /> <li>Uri uri = Uri.parse("file:///sdcard/song.mp3");<br /> <li>it.setDataAndType(uri, "audio/mp3");<br /> <li>startActivity(it);</li> </ol> </div> <em onclick="copycode($('code12'));">澶嶅埗浠g爜</em></div> <div id="bvvfewo" class="blockcode"> <div class="wocmoyq" id="code13"> <ol> <li>Uri uri = Uri.withAppendedPath(MediaStore.Audio.Media.INTERNAL_CONTENT_URI, "1");   <br /> <li>Intent it = new Intent(Intent.ACTION_VIEW, uri);   <br /> <li>startActivity(it);  </li> </ol> </div> <em onclick="copycode($('code13'));">澶嶅埗浠g爜</em></div> Uninstall 紼嬪簭 <div id="pqlvjxe" class="blockcode"> <div class="yrhnthk" id="code14"> <ol> <li>Uri uri = Uri.fromParts("package", strPackageName, null);   <br /> <li>Intent it = new Intent(Intent.ACTION_DELETE, uri);   <br /> <li>startActivity(it);</li> </ol> </div> <em onclick="copycode($('code14'));">澶嶅埗浠g爜</em></div> </td> </tr> </tbody> </table> </div> </div> uninstall apk<br /> <div id="lsagugu" class="blockcode"> <div class="fcxzuid" id="code15"> <ol> <li>Uri uninstallUri = Uri.fromParts("package", "xxx", null);<br /> <li><br /> <li>returnIt = new Intent(Intent.ACTION_DELETE, uninstallUri);</li> </ol> </div> <em onclick="copycode($('code15'));">澶嶅埗浠g爜</em></div> <br /> install apk<br /> <div id="ssvqsgj" class="blockcode"> <div class="kiswehg" id="code16"> <ol> <li>Uri installUri = Uri.fromParts("package", "xxx", null);<br /> <li><br /> <li>returnIt = new Intent(Intent.ACTION_PACKAGE_ADDED, installUri);</li> </ol> </div> <em onclick="copycode($('code16'));">澶嶅埗浠g爜</em></div> <br /> <br /> play audio<br /> <div id="reojyme" class="blockcode"> <div class="wakbwky" id="code17"> <ol> <li>Uri playUri = Uri.parse("file:///sdcard/download/everything.mp3");<br /> <li><br /> <li>returnIt = new Intent(Intent.ACTION_VIEW, playUri);</li> </ol> </div> <em onclick="copycode($('code17'));">澶嶅埗浠g爜</em></div> <div class="lwvbpdc" id="post_rate_div_751"> <div class="qblcxak" id="code18"> <ol> <li>//鍙戦侀檮浠?br /> <li>Intent it = new Intent(Intent.ACTION_SEND);  <br /> <li>it.putExtra(Intent.EXTRA_SUBJECT, "The email subject text");  <br /> <li>it.putExtra(Intent.EXTRA_STREAM, "file:///sdcard/eoe.mp3");  <br /> <li>sendIntent.setType("audio/mp3");  <br /> <li>startActivity(Intent.createChooser(it, "Choose Email Client"));</li> </ol> </div> </div> <div class="qqazuqp" id="code19"> <ol> <li>//鎼滅儲搴旂敤<br /> <li>Uri uri = Uri.parse("market://search?q=pname:pkg_name");  <br /> <li>Intent it = new Intent(Intent.ACTION_VIEW, uri);  <br /> <li>startActivity(it);  <br /> <li>//where pkg_name is the full package path for an application  <br /> <li><br /> <li>//鏄劇ず鎸囧畾搴旂敤鐨勮緇嗛〉闈紙榪欎釜濂藉儚涓嶆敮鎸佷簡錛屾壘涓嶅埌app_id錛?br /> <li>Uri uri = Uri.parse("market://details?id=app_id");  <br /> <li>Intent it = new Intent(Intent.ACTION_VIEW, uri);  <br /> <li>startActivity(it);  <br /> <li>//where app_id is the application ID, find the ID  <br /> <li>//by clicking on your application on Market home  <br /> <li>//page, and notice the ID from the address bar</li> </ol> </div> <em onclick="copycode($('code19'));"> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><img id="Codehighlighter1_1_56_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1_56_Open_Text.style.display='none'; Codehighlighter1_1_56_Closed_Image.style.display='inline'; Codehighlighter1_1_56_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_1_56_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1_56_Closed_Text.style.display='none'; Codehighlighter1_1_56_Open_Image.style.display='inline'; Codehighlighter1_1_56_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" /><span style="color: #000000">    </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_1_56_Closed_Text">/** */</span><span id="Codehighlighter1_1_56_Open_Text"><span style="color: #008000">/**</span><span style="color: #008000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />     * 鑾峰緱鍖呭畨瑁匢ntent<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />     * </span><span style="color: #808080">@param</span><span style="color: #008000"> tempFile<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />     * </span><span style="color: #808080">@return</span><span style="color: #008000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />     </span><span style="color: #008000">*/</span></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> Intent getPackageInstallIntent(File tempFile)<br /> <img id="Codehighlighter1_120_559_Open_Image" onclick="this.style.display='none'; Codehighlighter1_120_559_Open_Text.style.display='none'; Codehighlighter1_120_559_Closed_Image.style.display='inline'; Codehighlighter1_120_559_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_120_559_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_120_559_Closed_Text.style.display='none'; Codehighlighter1_120_559_Open_Image.style.display='inline'; Codehighlighter1_120_559_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" />    </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_120_559_Closed_Text"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_120_559_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        Uri mPackageURI </span><span style="color: #000000">=</span><span style="color: #000000"> Uri.fromFile(tempFile);<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        Intent in </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Intent();<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        in.setAction(Intent.ACTION_VIEW);<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        in.addCategory(Intent.CATEGORY_DEFAULT);<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        in<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />                .setComponent(</span><span style="color: #0000ff">new</span><span style="color: #000000"> ComponentName(<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />                        </span><span style="color: #000000">"</span><span style="color: #000000">com.android.packageinstaller</span><span style="color: #000000">"</span><span style="color: #000000">,<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />                        </span><span style="color: #000000">"</span><span style="color: #000000">com.android.packageinstaller.PackageInstallerActivity</span><span style="color: #000000">"</span><span style="color: #000000">));<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        in.setDataAndType(mPackageURI,<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />                </span><span style="color: #000000">"</span><span style="color: #000000">application/vnd.android.package-archive</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> in;<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />    }</span></span></div> </em> <img src ="http://m.tkk7.com/TiGERTiAN/aggbug/313397.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/TiGERTiAN/" target="_blank">TiGERTiAN</a> 2010-02-18 11:23 <a href="http://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313397.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Android鐭俊鍙戦佸拰鐩戞帶http://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313396.htmlTiGERTiANTiGERTiANThu, 18 Feb 2010 03:01:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313396.htmlhttp://m.tkk7.com/TiGERTiAN/comments/313396.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313396.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/313396.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/313396.html闃呰鍏ㄦ枃

TiGERTiAN 2010-02-18 11:01 鍙戣〃璇勮
]]>
Andorid Looper鍏ラ棬浣跨敤浠嬬粛http://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313395.htmlTiGERTiANTiGERTiANThu, 18 Feb 2010 02:52:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313395.htmlhttp://m.tkk7.com/TiGERTiAN/comments/313395.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2010/02/18/313395.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/313395.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/313395.html闃呰鍏ㄦ枃

TiGERTiAN 2010-02-18 10:52 鍙戣〃璇勮
]]>
Android鏂囧瓧璺戦┈鐏帶浠訛紙鏂囨湰鑷姩婊氬姩鎺т歡錛?/title><link>http://m.tkk7.com/TiGERTiAN/archive/2010/02/13/312840.html</link><dc:creator>TiGERTiAN</dc:creator><author>TiGERTiAN</author><pubDate>Sat, 13 Feb 2010 06:35:00 GMT</pubDate><guid>http://m.tkk7.com/TiGERTiAN/archive/2010/02/13/312840.html</guid><wfw:comment>http://m.tkk7.com/TiGERTiAN/comments/312840.html</wfw:comment><comments>http://m.tkk7.com/TiGERTiAN/archive/2010/02/13/312840.html#Feedback</comments><slash:comments>16</slash:comments><wfw:commentRss>http://m.tkk7.com/TiGERTiAN/comments/commentRss/312840.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/TiGERTiAN/services/trackbacks/312840.html</trackback:ping><description><![CDATA[     鎽樿: 鍏堣澹?澶у鏂板勾蹇箰鍝堬紝鏄庡ぉ灝辮榪涘叆2010騫翠簡錛屽鎴戞潵璇存槸寰堟剰涔夌殑涓騫達紝鍚屾椂涔熸槸寰堥噸瑕佺殑涓騫淬傛柊鐨勬皵璞★紝鏂扮殑宸ヤ綔錛屾柊鐨勬寫鎴樸備繚浣戣嚜宸憋紝鐩鎬俊鑷繁錛佷笉鍟板棪浜嗭紝鍒囧叆姝i銆? 鏈榪戝湪寮鍙戜竴涓簲鐢紝闇瑕佺敤鍒版枃鏈殑璺戦┈鐏晥鏋滐紝鍥劇渷浜嬶紝鍦ㄧ綉涓婃壘錛屼絾鑰佸崐澶╅兘鎵句笉鍒幫紝鍚庢潵鑷繁鍐欎簡涓涓紝寰堢畝鍗曪紝浠g爜濡備笅錛?import android.content.Context; import an...  <a href='http://m.tkk7.com/TiGERTiAN/archive/2010/02/13/312840.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/TiGERTiAN/aggbug/312840.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/TiGERTiAN/" target="_blank">TiGERTiAN</a> 2010-02-13 14:35 <a href="http://m.tkk7.com/TiGERTiAN/archive/2010/02/13/312840.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Grails鎺т歡蹇呭~楠岃瘉鍜屾彁紺?/title><link>http://m.tkk7.com/TiGERTiAN/archive/2010/02/08/312343.html</link><dc:creator>TiGERTiAN</dc:creator><author>TiGERTiAN</author><pubDate>Mon, 08 Feb 2010 09:04:00 GMT</pubDate><guid>http://m.tkk7.com/TiGERTiAN/archive/2010/02/08/312343.html</guid><wfw:comment>http://m.tkk7.com/TiGERTiAN/comments/312343.html</wfw:comment><comments>http://m.tkk7.com/TiGERTiAN/archive/2010/02/08/312343.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/TiGERTiAN/comments/commentRss/312343.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/TiGERTiAN/services/trackbacks/312343.html</trackback:ping><description><![CDATA[1銆侀鍩熸ā鍨嬩腑闇瑕佸姞鍏ュ繀濉殑瀛楁鍚嶇О錛屽涓嬶細<br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><img id="Codehighlighter1_11_123_Open_Image" onclick="this.style.display='none'; Codehighlighter1_11_123_Open_Text.style.display='none'; Codehighlighter1_11_123_Closed_Image.style.display='inline'; Codehighlighter1_11_123_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_11_123_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_11_123_Closed_Text.style.display='none'; Codehighlighter1_11_123_Open_Image.style.display='inline'; Codehighlighter1_11_123_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" /><span style="color: #0000ff">class</span><span style="color: #000000"> News </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_11_123_Closed_Text"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_11_123_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: #0000ff">int</span><span style="color: #000000"> id;<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />    String title;<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />    String content;<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /> <img id="Codehighlighter1_90_121_Open_Image" onclick="this.style.display='none'; Codehighlighter1_90_121_Open_Text.style.display='none'; Codehighlighter1_90_121_Closed_Image.style.display='inline'; Codehighlighter1_90_121_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_90_121_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_90_121_Closed_Text.style.display='none'; Codehighlighter1_90_121_Open_Image.style.display='inline'; Codehighlighter1_90_121_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" />    </span><span style="color: #0000ff">static</span><span style="color: #000000"> constraints </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_90_121_Closed_Text"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_90_121_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />      title(blank:</span><span style="color: #0000ff">false</span><span style="color: #000000">)<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span></div> <p>title(blank:false)錛岃〃紺鴻瀛楁涓嶅彲涓虹┖<br /> 2銆佸湪message灞炴т腑錛屽畾涔夎瀛楁涓虹┖鏃跺欑殑鎻愮ず錛屾牸寮忔槸<span style="color: red">棰嗗煙鍖呭悕.棰嗗煙妯″瀷綾誨悕縐?灞炴у悕縐?闄愬埗灞炴у悕縐?鎻愮ず淇℃伅<br /> </span>渚嬶細cn.tigertian.grails.domain.News.title.blank=璇峰~鍐欐爣棰?br /> 3銆佸湪欏甸潰涓婂姞鍏ュ涓嬩唬鐮侊細</p> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000"><</span><span style="color: #000000">g:message code</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">default.create.label</span><span style="color: #000000">"</span><span style="color: #000000"> args</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">[entityName]</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">/></</span><span style="color: #000000">h1</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #000000"><</span><span style="color: #000000">g:</span><span style="color: #0000ff">if</span><span style="color: #000000"> test</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">${flash.message}</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img id="Codehighlighter1_144_158_Open_Image" onclick="this.style.display='none'; Codehighlighter1_144_158_Open_Text.style.display='none'; Codehighlighter1_144_158_Closed_Image.style.display='inline'; Codehighlighter1_144_158_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_144_158_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_144_158_Closed_Text.style.display='none'; Codehighlighter1_144_158_Open_Image.style.display='inline'; Codehighlighter1_144_158_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" />            </span><span style="color: #000000"><</span><span style="color: #000000">div </span><span style="color: #0000ff">class</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">message</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000">$</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_144_158_Closed_Text"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_144_158_Open_Text"><span style="color: #000000">{flash.message}</span></span><span style="color: #000000"></</span><span style="color: #000000">div</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #000000"></</span><span style="color: #000000">g:</span><span style="color: #0000ff">if</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #000000"><</span><span style="color: #000000">g:hasErrors bean</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">${instance}</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #000000"><</span><span style="color: #000000">div </span><span style="color: #0000ff">class</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">errors</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: #000000"><</span><span style="color: #000000">g:renderErrors bean</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">${instance}</span><span style="color: #000000">"</span><span style="color: #000000"> as</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">list</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #000000"></</span><span style="color: #000000">div</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #000000"></</span><span style="color: #000000">g:hasErrors</span><span style="color: #000000">></span></div> 鍒欏湪鏈夐敊璇俊鎭殑鏃跺欏氨浼氭彁紺轟簡 <img src ="http://m.tkk7.com/TiGERTiAN/aggbug/312343.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/TiGERTiAN/" target="_blank">TiGERTiAN</a> 2010-02-08 17:04 <a href="http://m.tkk7.com/TiGERTiAN/archive/2010/02/08/312343.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Grails浣跨敤JNDI鏂規硶http://m.tkk7.com/TiGERTiAN/archive/2010/02/08/312333.htmlTiGERTiANTiGERTiANMon, 08 Feb 2010 07:28:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2010/02/08/312333.htmlhttp://m.tkk7.com/TiGERTiAN/comments/312333.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2010/02/08/312333.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/312333.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/312333.html闃呰鍏ㄦ枃

TiGERTiAN 2010-02-08 15:28 鍙戣〃璇勮
]]>
Android鐨処ntent鍜孖ntentFilter搴旂敤璇存槑涓渚?/title><link>http://m.tkk7.com/TiGERTiAN/archive/2010/02/03/311827.html</link><dc:creator>TiGERTiAN</dc:creator><author>TiGERTiAN</author><pubDate>Wed, 03 Feb 2010 10:01:00 GMT</pubDate><guid>http://m.tkk7.com/TiGERTiAN/archive/2010/02/03/311827.html</guid><wfw:comment>http://m.tkk7.com/TiGERTiAN/comments/311827.html</wfw:comment><comments>http://m.tkk7.com/TiGERTiAN/archive/2010/02/03/311827.html#Feedback</comments><slash:comments>11</slash:comments><wfw:commentRss>http://m.tkk7.com/TiGERTiAN/comments/commentRss/311827.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/TiGERTiAN/services/trackbacks/311827.html</trackback:ping><description><![CDATA[     鎽樿: 寰堝浜哄鏂囨。涓殑Intent鍜孖ntentFilter涓嶇悊瑙f槸浠涔堟剰鎬濓紝鎴戣繖閲屼婦渚嬭В閲婁笅銆?<br>  <a href='http://m.tkk7.com/TiGERTiAN/archive/2010/02/03/311827.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/TiGERTiAN/aggbug/311827.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/TiGERTiAN/" target="_blank">TiGERTiAN</a> 2010-02-03 18:01 <a href="http://m.tkk7.com/TiGERTiAN/archive/2010/02/03/311827.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Android鐨凚roadcast搴旂敤璇存槑涓渚?/title><link>http://m.tkk7.com/TiGERTiAN/archive/2010/01/31/311413.html</link><dc:creator>TiGERTiAN</dc:creator><author>TiGERTiAN</author><pubDate>Sun, 31 Jan 2010 11:48:00 GMT</pubDate><guid>http://m.tkk7.com/TiGERTiAN/archive/2010/01/31/311413.html</guid><wfw:comment>http://m.tkk7.com/TiGERTiAN/comments/311413.html</wfw:comment><comments>http://m.tkk7.com/TiGERTiAN/archive/2010/01/31/311413.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/TiGERTiAN/comments/commentRss/311413.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/TiGERTiAN/services/trackbacks/311413.html</trackback:ping><description><![CDATA[     鎽樿: 紼嬪簭A鐨凴eceiver錛?receiver = new BroadcastReceiver() {             @Override        ...  <a href='http://m.tkk7.com/TiGERTiAN/archive/2010/01/31/311413.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/TiGERTiAN/aggbug/311413.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/TiGERTiAN/" target="_blank">TiGERTiAN</a> 2010-01-31 19:48 <a href="http://m.tkk7.com/TiGERTiAN/archive/2010/01/31/311413.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Android鑷姩鐢熸垚鍚姩Activity鐨勭壒瀹氭寜閽?/title><link>http://m.tkk7.com/TiGERTiAN/archive/2010/01/31/311409.html</link><dc:creator>TiGERTiAN</dc:creator><author>TiGERTiAN</author><pubDate>Sun, 31 Jan 2010 11:32:00 GMT</pubDate><guid>http://m.tkk7.com/TiGERTiAN/archive/2010/01/31/311409.html</guid><wfw:comment>http://m.tkk7.com/TiGERTiAN/comments/311409.html</wfw:comment><comments>http://m.tkk7.com/TiGERTiAN/archive/2010/01/31/311409.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/TiGERTiAN/comments/commentRss/311409.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/TiGERTiAN/services/trackbacks/311409.html</trackback:ping><description><![CDATA[澹版槑涓涓狝ctivity錛屼嬌鐢ˋCTION_MAIN浣滀負Action錛孋ATEGORY_DEFAULT浣滀負Category錛屼箣鍚庡湪璋冪敤Activity涓紝寮曞叆濡備笅浠g爜灝卞彲浠ヨ嚜鍔ㄧ敓鎴愭墍鏈夊尮閰岮ction鍜孋ategory鐨凙ctivity鐨勫惎鍔ㄨ彍鍗曚簡銆?br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">@Override<br /> <img id="Codehighlighter1_56_1095_Open_Image" onclick="this.style.display='none'; Codehighlighter1_56_1095_Open_Text.style.display='none'; Codehighlighter1_56_1095_Closed_Image.style.display='inline'; Codehighlighter1_56_1095_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" /><img style="display: none" id="Codehighlighter1_56_1095_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_56_1095_Closed_Text.style.display='none'; Codehighlighter1_56_1095_Open_Image.style.display='inline'; Codehighlighter1_56_1095_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">boolean</span><span style="color: #000000"> onCreateOptionsMenu(Menu menu)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_56_1095_Closed_Text"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_56_1095_Open_Text"><span style="color: #000000">{<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        Log.i(</span><span style="color: #000000">"</span><span style="color: #000000">TestActivity</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">"</span><span style="color: #000000">Options Menu Created</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">super</span><span style="color: #000000">.onCreateOptionsMenu(menu);<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #008000">//</span><span style="color: #008000">menu.add(1, 0, 0, "EDIT");<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #008000">//</span><span style="color: #008000"> Create an Intent that describes the requirements to fulfill, to be included<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #008000">//</span><span style="color: #008000"> in our menu. The offering app must include a category value of Intent.CATEGORY_ALTERNATIVE. </span><span style="color: #008000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">        Intent intent </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Intent(Intent.ACTION_MAIN, getIntent().getData());<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        intent.addCategory(Intent.CATEGORY_ALTERNATIVE);<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />            <br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #008000">//</span><span style="color: #008000"> Search for, and populate the menu with, acceptable offering applications.</span><span style="color: #008000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">        menu.addIntentOptions(<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />             </span><span style="color: #000000">1</span><span style="color: #000000">,  </span><span style="color: #008000">//</span><span style="color: #008000"> Menu group </span><span style="color: #008000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">             </span><span style="color: #000000">0</span><span style="color: #000000">,      </span><span style="color: #008000">//</span><span style="color: #008000"> Unique item ID (none)</span><span style="color: #008000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">             </span><span style="color: #000000">0</span><span style="color: #000000">,      </span><span style="color: #008000">//</span><span style="color: #008000"> Order for the items (none)</span><span style="color: #008000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">             </span><span style="color: #0000ff">this</span><span style="color: #000000">.getComponentName(),   </span><span style="color: #008000">//</span><span style="color: #008000"> The current Activity name</span><span style="color: #008000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">             </span><span style="color: #0000ff">null</span><span style="color: #000000">,   </span><span style="color: #008000">//</span><span style="color: #008000"> Specific items to place first (none)</span><span style="color: #008000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">             intent, </span><span style="color: #008000">//</span><span style="color: #008000"> Intent created above that describes our requirements</span><span style="color: #008000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">             </span><span style="color: #000000">0</span><span style="color: #000000">,      </span><span style="color: #008000">//</span><span style="color: #008000"> Additional flags to control items (none)</span><span style="color: #008000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">             </span><span style="color: #0000ff">null</span><span style="color: #000000">);  </span><span style="color: #008000">//</span><span style="color: #008000"> Array of MenuItems that corrolate to specific items (none)</span><span style="color: #008000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000"><br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #0000ff">true</span><span style="color: #000000">;<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />    }</span></span></div> <img src ="http://m.tkk7.com/TiGERTiAN/aggbug/311409.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/TiGERTiAN/" target="_blank">TiGERTiAN</a> 2010-01-31 19:32 <a href="http://m.tkk7.com/TiGERTiAN/archive/2010/01/31/311409.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>[杞琞Android鐓х浉紼嬪簭http://m.tkk7.com/TiGERTiAN/archive/2010/01/12/309188.htmlTiGERTiANTiGERTiANTue, 12 Jan 2010 09:37:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2010/01/12/309188.htmlhttp://m.tkk7.com/TiGERTiAN/comments/309188.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2010/01/12/309188.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/309188.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/309188.html闃呰鍏ㄦ枃

TiGERTiAN 2010-01-12 17:37 鍙戣〃璇勮
]]>
BlackBerry璁╂垜宸偣鎶婄數鑴戞墧浜嗐傘傘?/title><link>http://m.tkk7.com/TiGERTiAN/archive/2010/01/10/308953.html</link><dc:creator>TiGERTiAN</dc:creator><author>TiGERTiAN</author><pubDate>Sun, 10 Jan 2010 14:16:00 GMT</pubDate><guid>http://m.tkk7.com/TiGERTiAN/archive/2010/01/10/308953.html</guid><wfw:comment>http://m.tkk7.com/TiGERTiAN/comments/308953.html</wfw:comment><comments>http://m.tkk7.com/TiGERTiAN/archive/2010/01/10/308953.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/TiGERTiAN/comments/commentRss/308953.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/TiGERTiAN/services/trackbacks/308953.html</trackback:ping><description><![CDATA[     鎽樿: 浠婂ぉ鍋氶粦鑾撳鉤鍙頒笂J2ME鐨凷ocket嫻嬭瘯紼嬪簭錛屾湇鍔$宸茬粡璋冭瘯濂戒簡錛屾湇鍔$涔熺敤妯℃嫙鍣ㄨ皟璇曞ソ浜嗭紝鍙埌浜嗛粦鑾撲笂闈㈠氨鏈夐棶棰樹簡錛岀▼搴忚繍琛屾甯革紝榪炴帴涔熸甯稿緩绔嬶紝浣嗗彂閫佸嚭鍘葷殑鏁版嵁鏈嶅姟绔氨鏄敹涓嶅埌瀵艱嚧闃誨錛屾湇鍔$闃誨涔熷鑷翠簡瀹㈡埛绔帴鏀舵暟鎹殑闃誨銆傘傘傛媧繪病鍙戠幇鍘熷洜銆傘傘傛渶鍚庢祴璇曟潵嫻嬭瘯鍘繪墠鍙戠幇闂鎵鍦ㄣ?nbsp; <a href='http://m.tkk7.com/TiGERTiAN/archive/2010/01/10/308953.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/TiGERTiAN/aggbug/308953.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/TiGERTiAN/" target="_blank">TiGERTiAN</a> 2010-01-10 22:16 <a href="http://m.tkk7.com/TiGERTiAN/archive/2010/01/10/308953.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>BlackBerry(榛戣帗)鐩戝惉Field灞炴х殑鍙樺寲http://m.tkk7.com/TiGERTiAN/archive/2010/01/03/308107.htmlTiGERTiANTiGERTiANSun, 03 Jan 2010 14:10:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2010/01/03/308107.htmlhttp://m.tkk7.com/TiGERTiAN/comments/308107.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2010/01/03/308107.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/308107.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/308107.html闃呰鍏ㄦ枃

TiGERTiAN 2010-01-03 22:10 鍙戣〃璇勮
]]>
BlackBerry(榛戣帗)瀵瑰浘鍍忕殑緙╂斁鎿嶄綔http://m.tkk7.com/TiGERTiAN/archive/2010/01/03/308080.htmlTiGERTiANTiGERTiANSun, 03 Jan 2010 06:22:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2010/01/03/308080.htmlhttp://m.tkk7.com/TiGERTiAN/comments/308080.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2010/01/03/308080.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/308080.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/308080.html 絎竴姝ワ紙1-12琛岋級錛岃鍙栨寚瀹氱殑鍥劇墖銆?br /> 絎簩姝ワ紙13-14琛岋級錛岃鍥劇墖鐨勪簩榪涘埗鏁版嵁杞崲涓篍ncodedImage瀵硅薄錛屽茍涓旂緝鏀句負鍘熸潵鐨?/2錛宻etScale鐨勫弬鏁版槸澶т簬0鐨勭緝鏀懼洜瀛恘錛屽浘鐗囦細琚緝鏀句負鍘熸潵鐨?/n銆?br /> 絎笁姝ワ紙15-20琛岋級錛屽皢鍥劇墖鎻掑叆鍒板浘鐗囧煙涓紝騫跺皢璇ュ浘鐗囧煙娣誨姞鍒版寚瀹氱殑MainScreen涓?br />
 1try {
 2            byte[] imgData = new byte[512];
 3            InputStream in = Class.forName("BBUIApp").getResourceAsStream("1.jpg");
 4            ByteArrayOutputStream bos = new ByteArrayOutputStream();
 5            int count = -1;
 6            while((count = in.read(imgData)) != -1)
 7            {
 8                bos.write(imgData, 0 , count);
 9            }

10            byte[] img = bos.toByteArray();
11            bos.close();
12            in.close();
13            EncodedImage image = EncodedImage.createEncodedImage(img, 0, img.length);
14            image.setScale(2);
15            BitmapField f = new BitmapField();
16            f.setImage(image);
17            this.add(f);
18        }
 catch (Exception e) {
19
20        }


TiGERTiAN 2010-01-03 14:22 鍙戣〃璇勮
]]>
jQuery鎿嶄綔JSF涓殑Checkbox鏍?/title><link>http://m.tkk7.com/TiGERTiAN/archive/2009/12/27/307463.html</link><dc:creator>TiGERTiAN</dc:creator><author>TiGERTiAN</author><pubDate>Sun, 27 Dec 2009 14:52:00 GMT</pubDate><guid>http://m.tkk7.com/TiGERTiAN/archive/2009/12/27/307463.html</guid><wfw:comment>http://m.tkk7.com/TiGERTiAN/comments/307463.html</wfw:comment><comments>http://m.tkk7.com/TiGERTiAN/archive/2009/12/27/307463.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/TiGERTiAN/comments/commentRss/307463.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/TiGERTiAN/services/trackbacks/307463.html</trackback:ping><description><![CDATA[     鎽樿: 涓嬮潰鐨勪唬鐮佹槸錛屽綋閫変腑鐖惰妭鐐癸紝鍒欏瓙鑺傜偣鍏ㄩ夛紱閫変腑浠繪剰涓涓瓙鑺傜偣錛屽垯閫変腑鐖惰妭鐐? jQuery.noConflict();//涓嶫SF鎼厤闇瑕佽繖鍙ヨ瘽錛屼笉鐒朵細鏈夊啿紿?        jQuery(document).ready(function() {     &nb...  <a href='http://m.tkk7.com/TiGERTiAN/archive/2009/12/27/307463.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/TiGERTiAN/aggbug/307463.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/TiGERTiAN/" target="_blank">TiGERTiAN</a> 2009-12-27 22:52 <a href="http://m.tkk7.com/TiGERTiAN/archive/2009/12/27/307463.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>J2ME緇樺埗緙╃暐鍥?/title><link>http://m.tkk7.com/TiGERTiAN/archive/2009/12/19/306670.html</link><dc:creator>TiGERTiAN</dc:creator><author>TiGERTiAN</author><pubDate>Sat, 19 Dec 2009 07:42:00 GMT</pubDate><guid>http://m.tkk7.com/TiGERTiAN/archive/2009/12/19/306670.html</guid><wfw:comment>http://m.tkk7.com/TiGERTiAN/comments/306670.html</wfw:comment><comments>http://m.tkk7.com/TiGERTiAN/archive/2009/12/19/306670.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/TiGERTiAN/comments/commentRss/306670.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/TiGERTiAN/services/trackbacks/306670.html</trackback:ping><description><![CDATA[<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img id="Codehighlighter1_59_733_Open_Image" onclick="this.style.display='none'; Codehighlighter1_59_733_Open_Text.style.display='none'; Codehighlighter1_59_733_Closed_Image.style.display='inline'; Codehighlighter1_59_733_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_59_733_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_59_733_Closed_Text.style.display='none'; Codehighlighter1_59_733_Open_Image.style.display='inline'; Codehighlighter1_59_733_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> Image createThumbnail(Image image,</span><span style="color: #0000ff">int</span><span style="color: #000000"> width) </span><span id="Codehighlighter1_59_733_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_59_733_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">int</span><span style="color: #000000"> sourceWidth </span><span style="color: #000000">=</span><span style="color: #000000"> image.getWidth();<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">int</span><span style="color: #000000"> sourceHeight </span><span style="color: #000000">=</span><span style="color: #000000"> image.getHeight();<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">int</span><span style="color: #000000"> thumbWidth </span><span style="color: #000000">=</span><span style="color: #000000"> width;<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">int</span><span style="color: #000000"> thumbHeight </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000">;<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> (thumbHeight </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000">)<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    thumbHeight </span><span style="color: #000000">=</span><span style="color: #000000"> thumbWidth </span><span style="color: #000000">*</span><span style="color: #000000"> sourceHeight </span><span style="color: #000000">/</span><span style="color: #000000"> sourceWidth;<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        Image thumb </span><span style="color: #000000">=</span><span style="color: #000000"> Image.createImage(thumbWidth, thumbHeight);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    Graphics g </span><span style="color: #000000">=</span><span style="color: #000000"> thumb.getGraphics();<br /> <img id="Codehighlighter1_433_705_Open_Image" onclick="this.style.display='none'; Codehighlighter1_433_705_Open_Text.style.display='none'; Codehighlighter1_433_705_Closed_Image.style.display='inline'; Codehighlighter1_433_705_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_433_705_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_433_705_Closed_Text.style.display='none'; Codehighlighter1_433_705_Open_Image.style.display='inline'; Codehighlighter1_433_705_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #0000ff">int</span><span style="color: #000000"> y </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">; y </span><span style="color: #000000"><</span><span style="color: #000000"> thumbHeight; y</span><span style="color: #000000">++</span><span style="color: #000000">) </span><span id="Codehighlighter1_433_705_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_433_705_Open_Text"><span style="color: #000000">{<br /> <img id="Codehighlighter1_484_702_Open_Image" onclick="this.style.display='none'; Codehighlighter1_484_702_Open_Text.style.display='none'; Codehighlighter1_484_702_Closed_Image.style.display='inline'; Codehighlighter1_484_702_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_484_702_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_484_702_Closed_Text.style.display='none'; Codehighlighter1_484_702_Open_Image.style.display='inline'; Codehighlighter1_484_702_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />            </span><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #0000ff">int</span><span style="color: #000000"> x </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">; x </span><span style="color: #000000"><</span><span style="color: #000000"> thumbWidth; x</span><span style="color: #000000">++</span><span style="color: #000000">) </span><span id="Codehighlighter1_484_702_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_484_702_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                g.setClip(x, y, </span><span style="color: #000000">1</span><span style="color: #000000">, </span><span style="color: #000000">1</span><span style="color: #000000">);//<span style="color: #00ff00"><span style="color: #339966">璁劇疆璇ュ儚绱犵偣浠ュ鐨勫尯鍩熺粯鍒舵棤鏁?/span><br /> </span><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">int</span><span style="color: #000000"> dx </span><span style="color: #000000">=</span><span style="color: #000000"> x </span><span style="color: #000000">*</span><span style="color: #000000"> sourceWidth </span><span style="color: #000000">/</span><span style="color: #000000"> thumbWidth;<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                </span><span style="color: #0000ff">int</span><span style="color: #000000"> dy </span><span style="color: #000000">=</span><span style="color: #000000"> y </span><span style="color: #000000">*</span><span style="color: #000000"> sourceHeight </span><span style="color: #000000">/</span><span style="color: #000000"> thumbHeight;<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        g.drawImage(image, x </span><span style="color: #000000">-</span><span style="color: #000000"> dx, y </span><span style="color: #000000">-</span><span style="color: #000000"> dy,Graphics.LEFT </span><span style="color: #000000">|</span><span style="color: #000000"> Graphics.TOP);//<span style="color: #339966">閲嶇粯鏁村紶鍥撅紝瀹為檯涓婂彧鏄噸緇樹簡涓涓儚绱犵偣<br /> </span><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />            }</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> thumb;<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />    }</span></span></div> 涓婇潰鐨勪唬鐮佺敤鏉ュ湪J2ME涓粯鍒跺浘鐗囩殑緙╃暐鍥撅紝CLDC1.0鐨勭敤娉曪紝2.0鍙互鐩存帴鎿嶆帶鍍忕礌浜? <img src ="http://m.tkk7.com/TiGERTiAN/aggbug/306670.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/TiGERTiAN/" target="_blank">TiGERTiAN</a> 2009-12-19 15:42 <a href="http://m.tkk7.com/TiGERTiAN/archive/2009/12/19/306670.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>MyFaces涓璖electOneRadio鐨勪竴涓猙ughttp://m.tkk7.com/TiGERTiAN/archive/2009/12/03/304691.htmlTiGERTiANTiGERTiANThu, 03 Dec 2009 12:34:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2009/12/03/304691.htmlhttp://m.tkk7.com/TiGERTiAN/comments/304691.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2009/12/03/304691.html#Feedback0http://m.tkk7.com/TiGERTiAN/comments/commentRss/304691.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/304691.html
Caused by: javax.faces.convert.ConverterException: java.lang.ClassCastException: org.apache.myfaces.shared_impl.renderkit.RendererUtils$1
cannot be cast to java.lang.Boolean
at javax.faces.convert.BooleanConverter.getAsString(BooleanConverter.java:91)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:630)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlRadioRendererBase.encodeEnd(HtmlRadioRendererBase.java:91)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
... 110 more
Caused by: java.lang.ClassCastException: org.apache.myfaces.shared_impl.renderkit.RendererUtils$1
cannot be cast to java.lang.Boolean
at javax.faces.convert.BooleanConverter.getAsString(BooleanConverter.java:87)
... 113 more

鍚庢潵鍦ㄥ浗澶栫綉绔欎笂闈㈡壘鍒頒簡闂鎵鍦細

Hello,

the problem still exists in MyFaces Core 1.2.6.

I have a selectOneMenu with a value binding to a boolean property.

In the boolean converter the ClassCastException still occurs.

...
Caused by: javax.faces.convert.ConverterException: java.lang.ClassCastException: org.apache.myfaces.shared_impl.renderkit.RendererUtils$1
cannot be cast to java.lang.Boolean
at javax.faces.convert.BooleanConverter.getAsString(BooleanConverter.java:91)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:630)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlRadioRendererBase.encodeEnd(HtmlRadioRendererBase.java:91)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
... 110 more
Caused by: java.lang.ClassCastException: org.apache.myfaces.shared_impl.renderkit.RendererUtils$1
cannot be cast to java.lang.Boolean
at javax.faces.convert.BooleanConverter.getAsString(BooleanConverter.java:87)
... 113 more

In RendererUtils there are some tests that value equals NOTHING. However the equals method
of the NOTHING-Serializable isn't overriden. Therefore it has no effect.

Overriding the equals method as in the patch of paul works.


鏈変簺涓滆タ娌℃湁瀹炵幇錛屽鑷翠簡榪欎釜闂銆傝繖涓彲鑳介渶瑕佷綘鑷繁綆鍗曞疄鐜頒竴涓嬫簮鏂囦歡鐒跺悗緙栬瘧鎴愬簱鏂囦歡浜嗭紝鎰熻楹葷儲灝辨崲鎴愪簡SelectOneMenu浜嗐?br /> 鍚庨潰鏈夋椂闂村啀鐪嬩簡





TiGERTiAN 2009-12-03 20:34 鍙戣〃璇勮
]]>
MyEclipse 6.5.1鐨勬敞鍐岀爜鍒?0騫?0鏈堜喚http://m.tkk7.com/TiGERTiAN/archive/2009/12/02/304467.htmlTiGERTiANTiGERTiANWed, 02 Dec 2009 01:03:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2009/12/02/304467.htmlhttp://m.tkk7.com/TiGERTiAN/comments/304467.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2009/12/02/304467.html#Feedback1http://m.tkk7.com/TiGERTiAN/comments/commentRss/304467.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/304467.html Subscription Code:DLR8ZC-855551-65657857678050018

TiGERTiAN 2009-12-02 09:03 鍙戣〃璇勮
]]>
[JSF]鎵嬪姩鍒濆鍖栭夋嫨鎺т歡 欏甸潰鎵鏈塧ction鍧囧け鏁堢殑闂http://m.tkk7.com/TiGERTiAN/archive/2009/11/18/302754.htmlTiGERTiANTiGERTiANWed, 18 Nov 2009 01:02:00 GMThttp://m.tkk7.com/TiGERTiAN/archive/2009/11/18/302754.htmlhttp://m.tkk7.com/TiGERTiAN/comments/302754.htmlhttp://m.tkk7.com/TiGERTiAN/archive/2009/11/18/302754.html#Feedback2http://m.tkk7.com/TiGERTiAN/comments/commentRss/302754.htmlhttp://m.tkk7.com/TiGERTiAN/services/trackbacks/302754.html
鍚屼簨浠g爜錛?br />
 1 public void bignessDangeValueChangeListener(ActionEvent e) {
 2         //System.out.println(e.getComponent().getParent().getChildCount());
 3         org.ajax4jsf.component.html.HtmlAjaxSupport ajaxSupport = (org.ajax4jsf.component.html.HtmlAjaxSupport)e.getComponent();
 4         HtmlSelectOneMenu parent = (HtmlSelectOneMenu)ajaxSupport.getParent();
 5         Short value = (Short)parent.getValue();
 6         String[] idDetails = parent.getId().split("_");
 7         StringBuffer controlId = new StringBuffer();
 8         controlId.append(idDetails[0]);
 9         if (WebUtil.PROPS_FILE_NAME_TRASH_DISCHARGE.equals(idDetails[0])) {
10             idDetails[1]="hazardousSubstance"//閰嶇疆鏂囦歡涓厤緗殑浜岀駭鑱斿姩鐨勪簩綰ф帶浠剁殑name瀛楁
11         }
12         
13         for (int i = 1;i < idDetails.length;i++){
14             controlId.append("_").append(idDetails[i]);
15         }
16         
17         ajaxSupport.setReRender(controlId.toString());
18         
19         List<BignessDangerInfo> list = Common.getBignessDangerInfoByObjType(value);
20         List<String> labelList = new ArrayList<String>();
21         List<Integer> valueList = new ArrayList<Integer>();
22         for(BignessDangerInfo bdi : list) {
23             labelList.add(bdi.getObjectName());
24             valueList.add(String.valueOf(bdi.getRecuid()));
25         }
26         
27 
28         
29         if(value == 1 || value == 2 || value == 3 || value == 4) {
30             DynamicControlFactory.initSelectValues(e, idDetails[1], labelList, valueList);
31         }  else {
32             List<List<String>> listClear = new ArrayList<List<String>>();
33             List<String> temp1 = new ArrayList<String>();
34             List<String> temp2 = new ArrayList<String>();
35             temp1.add("-1");
36             temp2.add("--璇烽夋嫨--");
37             listClear.add(temp1);
38             listClear.add(temp2);
39             DynamicControlFactory.initSelectValues(e, idDetails[1], listClear.get(1), listClear.get(0));
40         }
41     }

initSelectValues鐨勭浉鍏充唬鐮侊細
 1public static void initSelectValues(ActionEvent e, String col, List<String> labels, List<String> values)
 2    {
 3        try {
 4
 5            String[] parms = e.getComponent().getParent().getId().split("_");
 6            DynamicControlObject dco = getControlObjects().get(parms[0]);
 7            
 8            List<String> colList = dco.getColNameList();
 9            String prefix = dco.getFormName() + ":" + parms[0];
10            
11            Map cos = new HashMap();
12            String rowIdx = parms[parms.length - 1];
13
14            initSelectOneComponent(findComponent(prefix + "_" + col + "_1" + "_"
15                    + rowIdx),  values, labels, true);
16        }
 catch (Exception ex) {
17            ex.printStackTrace();
18        }

19    }

 1public static void initSelectOneComponent(UIComponent component,
 2            List<String> values, List<String> labels, boolean clearBefore) {
 3        try {
 4
 5            if (component == null || values == null || labels == null
 6                    )
 7                return;
 8
 9            if (!isMultiValue(component))
10                return;
11
12            Object optionKey = null;
13            String optionLabel = null;
14            ArrayList optionsList = null;
15
16            UISelectItems items = new UISelectItems();
17            optionsList = new ArrayList(values.size());
18            for (int i = 0; i < values.size(); i++{
19                optionKey = values.get(i);
20                optionLabel = (String)labels.get(i);
21                SelectItem item = new SelectItem(optionKey, optionLabel);
22                optionsList.add(item);
23            }

24            items.setValue(optionsList);
25            if(clearBefore)
26            {
27                List list = component.getChildren();
28                Object obj = null;
29                for(int i = 0;i < list.size(); i ++)
30                {
31                    if(list.get(i) instanceof UISelectItems )
32                    {
33                        obj = list.get(i);
34                        break;
35                    }

36                }

37                if(obj != null)
38                    list.remove(obj);
39            }

40                
41            component.getChildren().add(items);
42        }
 catch (Exception e) {
43            e.printStackTrace();
44        }

45
46    }

媯鏌ヤ簡鍗婂ぉ錛屽彂鐜板彧瑕佷笉鎵цinitSelectValues錛岄兘娌℃湁闂錛屽悗鏉ヤ竴姝ヤ竴姝ヨ皟璇曟墠鍙戠幇錛屽師鏉ユ槸鏁版嵁綾誨瀷鐨勯棶棰橈紝鍚屼簨浼犲叆鐨勬槸List<Integer> values錛岃孲electItem鏋勯犲嚱鏁版敮鎸佺殑鏄敭鍊奸兘涓篠tring鐨勫弬鏁幫紝鏁版嵁綾誨瀷涓嶅瀵艱嚧浜嗚繖涓涓鎬殑鐜拌薄錛屼絾鍚庡彴娌℃湁寮傚父鍜屽嚭閿欎俊鎭浜哄緢綰抽椃錛岃В鍐蟲柟娉曞氨鏄彧瑕佹敼鍙樺煎垪琛ㄤ負List<String>灝卞彲浠ヤ簡銆?

TiGERTiAN 2009-11-18 09:02 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲综合色成在线播放| 国产一区二区三区在线观看免费| 久久亚洲国产成人影院网站| 美女羞羞喷液视频免费| 四虎永久在线精品免费影视| 亚洲AV无码专区国产乱码不卡| 精品熟女少妇AV免费观看| 亚洲午夜福利在线视频| 国产精品jizz在线观看免费| 激情吃奶吻胸免费视频xxxx| 国产午夜无码视频免费网站| 精品国产日韩亚洲一区在线| 亚洲精品国产电影| 国产精品内射视频免费| 亚洲an天堂an在线观看| 国产在线jyzzjyzz免费麻豆| 亚洲熟妇无码一区二区三区| 国产乱弄免费视频| a毛看片免费观看视频| 亚洲天堂中文字幕| 成人性生交视频免费观看| 黄页网站在线视频免费| 国产亚洲成av片在线观看| 131美女爱做免费毛片| 亚洲第一综合天堂另类专| 国产亚洲一区区二区在线| 最近中文字幕国语免费完整 | 一区二区免费电影| 亚洲精品高清久久| 精品国产免费观看一区| 黄 色一级 成 人网站免费| 亚洲色图综合网站| 深夜国产福利99亚洲视频| 无码av免费一区二区三区试看| 中文字幕亚洲情99在线| 国产亚洲精品自在线观看| 波多野结衣中文字幕免费视频| 免费精品视频在线| 亚洲成无码人在线观看| 亚洲国产精品自在拍在线播放| 在线看片免费人成视久网|