锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久亚洲AV成人网,日韩亚洲国产综合高清,亚洲色欲www综合网http://m.tkk7.com/smcdl/archive/2010/06/08/323007.htmlteddyteddyMon, 07 Jun 2010 16:15:00 GMThttp://m.tkk7.com/smcdl/archive/2010/06/08/323007.htmlhttp://m.tkk7.com/smcdl/comments/323007.htmlhttp://m.tkk7.com/smcdl/archive/2010/06/08/323007.html#Feedback0http://m.tkk7.com/smcdl/comments/commentRss/323007.htmlhttp://m.tkk7.com/smcdl/services/trackbacks/323007.html
1 URL picUrl = new URL("http://www.google.com.hk/tools/dlpage/res/chrome/images/chrome-205_noshadow.png");
2 
3 Bitmap pngBM = BitmapFactory.decodeStream(picUrl.openStream());
4 
5 imageView.setImageBitmap(pngBM);

寰堢畝鍗曞惂錛屽摢浣嶆湅鍙嬪鏋滄湁鏇寸畝鍗曠殑鏂規(guī)硶璇烽氱煡鎴戙?br />


teddy 2010-06-08 00:15 鍙戣〃璇勮
]]>
Android涔婼hared Preferenceshttp://m.tkk7.com/smcdl/archive/2010/06/07/322982.htmlteddyteddyMon, 07 Jun 2010 09:18:00 GMThttp://m.tkk7.com/smcdl/archive/2010/06/07/322982.htmlhttp://m.tkk7.com/smcdl/comments/322982.htmlhttp://m.tkk7.com/smcdl/archive/2010/06/07/322982.html#Feedback0http://m.tkk7.com/smcdl/comments/commentRss/322982.htmlhttp://m.tkk7.com/smcdl/services/trackbacks/322982.html鎳掑緱鍐嶇炕璇戯紝榪欐搴旇寰堝ソ鐞嗚В錛岀洿鎺ュ皢Dev Guide涓鍒惰繃鏉ャ?br />

The SharedPreferences class provides a general framework that allows you to save and retrieve persistent key-value pairs of primitive data types. You can use SharedPreferences to save any primitive data: booleans, floats, ints, longs, and strings. This data will persist across user sessions (even if your application is killed).

To get a SharedPreferences object for your application, use one of two methods:

  • getSharedPreferences() - Use this if you need multiple preferences files identified by name, which you specify with the first parameter.
  • getPreferences() - Use this if you need only one preferences file for your Activity. Because this will be the only preferences file for your Activity, you don't supply a name.

To write values:

  1. Call edit() to get a SharedPreferences.Editor.
  2. Add values with methods such as putBoolean() and putString().
  3. Commit the new values with commit()

To read values, use SharedPreferences methods such as getBoolean() and getString().

Here is an example that saves a preference for silent keypress mode in a calculator:


 1public class Calc extends Activity {
 2    public static final String PREFS_NAME = "MyPrefsFile"
;
 3

 4
    @Override
 5    protected void onCreate(Bundle state)
{         
 6       super
.onCreate(state);
 7
       . . .
 8

 9       // Restore preferences

10       SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
11       boolean silent = settings.getBoolean("silentMode"false
);
12
       setSilent(silent);
13    }

14
15
    @Override
16    protected void onStop()
{
17       super
.onStop();
18

19      //
 We need an Editor object to make preference changes.
20      // All objects are from android.context.Context

21      SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
22      SharedPreferences.Editor editor =
 settings.edit();
23      editor.putBoolean("silentMode"
, mSilentMode);
24

25      // Commit the edits!

26      editor.commit();
27    }

28}


teddy 2010-06-07 17:18 鍙戣〃璇勮
]]>
Android涔嬩嬌鐢ㄧ鏈夊瓨鍌?/title><link>http://m.tkk7.com/smcdl/archive/2010/06/07/322980.html</link><dc:creator>teddy</dc:creator><author>teddy</author><pubDate>Mon, 07 Jun 2010 08:28:00 GMT</pubDate><guid>http://m.tkk7.com/smcdl/archive/2010/06/07/322980.html</guid><wfw:comment>http://m.tkk7.com/smcdl/comments/322980.html</wfw:comment><comments>http://m.tkk7.com/smcdl/archive/2010/06/07/322980.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/smcdl/comments/commentRss/322980.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/smcdl/services/trackbacks/322980.html</trackback:ping><description><![CDATA[<p style="font-size: 12pt; margin-right: 0px" dir="ltr"><span style="font-size: 18pt"><span style="font-size: 14pt">棣栧厛鍐呴儴瀛樺偍璺緞涓?data/data/<span style="color: red"><em><strong>youPackageName</strong></em></span>/錛屼笅闈㈣瑙g殑鍚勮礬寰勯兘鏄熀浜庝綘鑷繁鐨勫簲鐢ㄧ殑鍐呴儴瀛樺偍璺緞涓嬨傛墍鏈夊唴閮ㄥ瓨鍌ㄤ腑淇濆瓨鐨勬枃浠跺湪鐢ㄦ埛鍗歌澆搴旂敤鐨勬椂鍊欎細琚垹闄ゃ?br /> <br /> 涓銆?nbsp;files<br /> 1. Context.getFilesDir()錛岃鏂規(guī)硶榪斿洖/data/data/<span style="color: red"><em><strong>youPackageName</strong></em></span>/files鐨凢ile瀵硅薄銆?br /> 2. Context.openFileInput()涓嶤ontext.openFileOutput()錛屽彧鑳借鍙栧拰鍐欏叆files涓嬬殑鏂囦歡錛岃繑鍥炵殑鏄疐ileInputStream鍜孎ileOutputStream瀵硅薄銆?br /> 3. Context.fileList()錛岃繑鍥瀎iles涓嬫墍鏈夌殑鏂囦歡鍚嶏紝榪斿洖鐨勬槸String[]瀵硅薄銆?br /> 4. Context.deleteFile(String)錛屽垹闄iles涓嬫寚瀹氬悕縐扮殑鏂囦歡銆?br /> <br /> 浜屻乧ache<br /> 1. Context.getCacheDir()錛岃鏂規(guī)硶榪斿洖/data/data/<span style="color: red"><em><strong>youPackageName</strong></em></span>/cache鐨凢ile瀵硅薄銆?br /> <br /> 涓夈乧ustom dir</span></span></p> <span style="font-size: 14pt"><span style="font-size: 14pt">getDir(String name, int mode)錛岃繑鍥?data/data/<span style="color: red"><em><strong>youPackageName</strong></em></span>/涓嬬殑鎸囧畾鍚嶇О鐨勬枃浠跺すFile瀵硅薄錛屽鏋滆鏂囦歡澶逛笉瀛樺湪鍒欑敤鎸囧畾鍚嶇О鍒涘緩涓涓柊鐨勬枃浠跺す銆?/span><br /> </span> <img src ="http://m.tkk7.com/smcdl/aggbug/322980.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/smcdl/" target="_blank">teddy</a> 2010-06-07 16:28 <a href="http://m.tkk7.com/smcdl/archive/2010/06/07/322980.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Android寮鍙戜箣璋冪敤緋葷粺褰╀俊鍙戦佸姛鑳?/title><link>http://m.tkk7.com/smcdl/archive/2010/05/19/321406.html</link><dc:creator>teddy</dc:creator><author>teddy</author><pubDate>Wed, 19 May 2010 11:20:00 GMT</pubDate><guid>http://m.tkk7.com/smcdl/archive/2010/05/19/321406.html</guid><wfw:comment>http://m.tkk7.com/smcdl/comments/321406.html</wfw:comment><comments>http://m.tkk7.com/smcdl/archive/2010/05/19/321406.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/smcdl/comments/commentRss/321406.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/smcdl/services/trackbacks/321406.html</trackback:ping><description><![CDATA[<p><span style="font-size: 18pt"><span style="font-size: 12pt">緇忚繃涓嶆柇鐨勬祴璇曟渶緇堝緱鍒?涓粨鏋滐細<br /> <br /> <br /> 1.閫傜敤浜庢ā鎷熷櫒鍜孫Phone</span></span></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"><span style="font-size: 18pt"><span style="font-size: 12pt"><span style="color: #008080">1</span><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: #000000">Intent sendIntent </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span></span></span><span style="font-size: 18pt"><span style="font-size: 12pt"><span style="color: #000000"> Intent(Intent.ACTION_SEND);  <br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" />sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(</span><span style="color: #000000">"</span><span style="color: #000000">file:///sdcard/map.jpg</span><span style="color: #000000">"</span></span></span><span style="font-size: 18pt"><span style="font-size: 12pt"><span style="color: #000000">)); <br /> </span><span style="color: #008080">3</span><span style="color: #000000"><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" />sendIntent.setType(</span><span style="color: #000000">"</span><span style="color: #000000">image/jpeg</span><span style="color: #000000">"</span></span></span><span style="font-size: 18pt"><span style="font-size: 12pt"><span style="color: #000000">);  <br /> </span><span style="color: #008080">4</span><span style="color: #000000"><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" />startActivity(sendIntent); </span></span></span></div> <p><br /> <span style="font-size: 18pt"><span style="font-size: 12pt">2.閫傜敤浜嶩ero錛堟湭嫻嬭瘯鏄惁鏀寔鍏朵粬HTC鎵嬫満錛?/span></span></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"><span style="font-size: 18pt"><span style="font-size: 12pt"><span style="color: #008080">1</span><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: #000000">Intent sendIntent </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Intent(</span><span style="color: #000000">"</span><span style="color: #000000">android.intent.action.SEND_MSG</span><span style="color: #000000">"</span></span></span><span style="font-size: 18pt"><span style="font-size: 12pt"><span style="color: #000000">);  <br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" />sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(</span><span style="color: #000000">"</span><span style="color: #000000">file:///sdcard/map.jpg</span><span style="color: #000000">"</span></span></span><span style="font-size: 18pt"><span style="font-size: 12pt"><span style="color: #000000">)); <br /> </span><span style="color: #008080">3</span><span style="color: #000000"><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" />sendIntent.setType(</span><span style="color: #000000">"</span><span style="color: #000000">image/jpeg</span><span style="color: #000000">"</span></span></span><span style="font-size: 18pt"><span style="font-size: 12pt"><span style="color: #000000">);  <br /> </span><span style="color: #008080">4</span><span style="color: #000000"><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" />startActivity(sendIntent); </span></span></span></div> <p><br /> <span style="font-size: 18pt"><span style="font-size: 12pt">3.鐩墠涓烘鍦ㄥ鏁版墜鏈轟笂宸ヤ綔姝e父鐨勪唬鐮?/span></span></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"><span style="font-size: 18pt"><span style="font-size: 12pt"><span style="color: #008080">1</span><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: #000000">Intent intent </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span></span></span><span style="font-size: 18pt"><span style="font-size: 12pt"><span style="color: #000000"> Intent(Intent.ACTION_SEND);<br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" />intent.setClassName(</span><span style="color: #000000">"</span><span style="color: #000000">com.android.mms</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">"</span><span style="color: #000000">com.android.mms.ui.ComposeMessageActivity</span><span style="color: #000000">"</span></span></span><span style="font-size: 18pt"><span style="font-size: 12pt"><span style="color: #000000">);<br /> </span><span style="color: #008080">3</span><span style="color: #000000"><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" />intent.putExtra(Intent.EXTRA_STREAM, Uri.parse(</span><span style="color: #000000">"</span><span style="color: #000000">file:///sdcard/map.jpg</span><span style="color: #000000">"</span><span style="color: #000000">));  </span><span style="color: #008000">//</span><span style="color: #008000"> imageUri set previously</span></span></span><span style="color: #008000"><br /> </span><span style="font-size: 18pt"><span style="font-size: 12pt"><span style="color: #008080">4</span><span style="color: #008000"><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">intent.setType(</span><span style="color: #000000">"</span><span style="color: #000000">image/jpeg</span><span style="color: #000000">"</span></span></span><span style="font-size: 18pt"><span style="font-size: 12pt"><span style="color: #000000">);<br /> </span><span style="color: #008080">5</span><span style="color: #000000"><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" />startActivity(intent);</span></span></span></div> <p><span style="font-size: 18pt"><br /> </span></p> <p><span style="font-size: 18pt"><span style="font-size: 12pt"> 闇瑕佹敞鎰忕殑涓涓棶棰樻槸涔嬪墠涓鐩寸敤Uri鎸囧悜鑷繁寮鍙戝簲鐢ㄧ殑data鏂囦歡澶逛笅鐨勬枃浠訛紝濮嬬粓鏃犳硶鎴愬姛錛屾渶緇堟崲鎴恠dcard灝監(jiān)K浜嗭紝鐪嬫潵榪樻槸鏉冮檺鐨勯棶棰樸?/span></span></p> <p><span style="font-size: 18pt"><span style="font-size: 12pt"> </span></span></p> <p><br /> <span style="font-size: 18pt"><span style="font-size: 12pt"> </span></span></p> <img src ="http://m.tkk7.com/smcdl/aggbug/321406.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/smcdl/" target="_blank">teddy</a> 2010-05-19 19:20 <a href="http://m.tkk7.com/smcdl/archive/2010/05/19/321406.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://zs0451.com" target="_blank">人禽杂交18禁网站免费</a>| <a href="http://chn139.com" target="_blank">99视频在线免费</a>| <a href="http://www-63228.com" target="_blank">国产免费毛不卡片</a>| <a href="http://46339cc.com" target="_blank">亚洲美女aⅴ久久久91</a>| <a href="http://m0808dy.com" target="_blank">99视频在线精品免费</a>| <a href="http://770144.com" target="_blank">亚洲黄色片在线观看</a>| <a href="http://xjscr.com" target="_blank">国产a视频精品免费观看</a>| <a href="http://ghiearning.com" target="_blank">亚洲天堂电影在线观看</a>| <a href="http://987566.com" target="_blank">97视频免费在线</a>| <a href="http://www77714.com" target="_blank">亚洲国产精品免费观看</a>| <a href="http://hcdigi.com" target="_blank">成人在线视频免费</a>| <a href="http://minliusoft.com" target="_blank">精品国产亚洲AV麻豆 </a>| <a href="http://45-po.com" target="_blank">免费一级毛片在级播放</a>| <a href="http://qsqse1.com" target="_blank">亚洲av综合日韩</a>| <a href="http://6nn5.com" target="_blank">亚洲综合精品网站在线观看</a>| <a href="http://c7vl.com" target="_blank">久久久久久av无码免费看大片</a>| <a href="http://xmjcjc.com" target="_blank">精品久久香蕉国产线看观看亚洲</a>| <a href="http://1000hu.com" target="_blank">久久国产免费一区二区三区</a>| <a href="http://0755szyxcm.com" target="_blank">亚洲精品视频在线观看视频</a>| <a href="http://zgjzysfc.com" target="_blank">免费在线观看的网站</a>| <a href="http://moushengguigz.com" target="_blank">亚洲AV一区二区三区四区</a>| <a href="http://micehunan.com" target="_blank">亚洲国产精品自产在线播放</a>| <a href="http://6609929.com" target="_blank">国产成人无码区免费网站</a>| <a href="http://jdvgo.com" target="_blank">亚洲国产成人久久综合一区</a>| <a href="http://assbjg.com" target="_blank">精品国产麻豆免费网站</a>| <a href="http://directzx.com" target="_blank">一级毛片a免费播放王色</a>| <a href="http://changfafangzhi.com" target="_blank">国产v亚洲v天堂无码网站</a>| <a href="http://w6626.com" target="_blank">99久久久国产精品免费无卡顿</a>| <a href="http://xianzznn.com" target="_blank">亚洲中文字幕无码中文</a>| <a href="http://kkjk123.com" target="_blank">亚洲av无码乱码在线观看野外</a>| <a href="http://18736374.com" target="_blank">aaa毛片视频免费观看</a>| <a href="http://ybcin.com" target="_blank">亚洲国产精品成人精品小说</a>| <a href="http://zhuanjiao521.com" target="_blank">免费高清资源黄网站在线观看</a>| <a href="http://x5k9.com" target="_blank">国产精品永久免费</a>| <a href="http://chandou8.com" target="_blank">亚洲字幕在线观看</a>| <a href="http://564ka.com" target="_blank">免费欧洲美女牲交视频</a>| <a href="http://yw8885.com" target="_blank">国产麻豆成人传媒免费观看 </a>| <a href="http://www4438xx2.com" target="_blank">亚洲gv猛男gv无码男同短文</a>| <a href="http://xzzkf.com" target="_blank">亚洲一级免费视频</a>| <a href="http://mhysf.com" target="_blank">一级毛片完整版免费播放一区</a>| <a href="http://szclinic.com" target="_blank">亚洲福利视频一区</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>