• Aug 14 Tue 2012 16:16
  • 雜記

Get inflater from Context
LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
LayoutInflater inflater = LayoutInflater.from(context);
 

西西 發表在 痞客邦 留言(1) 人氣()

android.R.layout.xxx
都在下面連結
https://github.com/android/platform_frameworks_base/tree/master/core/res/res/layout
這邊也有

西西 發表在 痞客邦 留言(0) 人氣()

在Android 3.0後的版本,硬體Menu鍵會消失
進而轉變成Contextual Menu 
設計了一款利用PopupWindow模擬的menu,可以相容於API 10以上(應該可以更低,不過我懶得去一一查)
我先把code列出來,以後在整理註解囉(pixnet對code的排列不是很友善 Orz)

西西 發表在 痞客邦 留言(0) 人氣()

PopupWindow 直接繼承於Object
http://developer.android.com/reference/android/widget/PopupWindow.html
要直接取得KeyEvent不太可能,我們可以用繞道的方法作,
我們可以針對其上的View設定KeyListener就可以解決問題

西西 發表在 痞客邦 留言(0) 人氣()

利用dex2jar工具可以將dex檔轉換成jar檔
google code : http://code.google.com/p/dex2jar/

西西 發表在 痞客邦 留言(0) 人氣()


Store in registry 
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\ProjectMRUList

西西 發表在 痞客邦 留言(0) 人氣()

ISO To Usb
 
Linux : unetbootin  http://unetbootin.sourceforge.net/

西西 發表在 痞客邦 留言(0) 人氣()

As Title
利用path_lookup 這個Function 可以透過path取得nameidata 
參數的部份等以後有空再補上
 

西西 發表在 痞客邦 留言(0) 人氣()

 
修改預設的SSH設定
OS Fedora 13 (kernel 2.6.33.3-85.fc13.i686.PAE) 未改
打開
/etc/ssh/sshd_config
修改連線數量

西西 發表在 痞客邦 留言(0) 人氣()

 
 
Start→Run→gpedit.msc→Computer Configuration→Administrative Templates→System→Display Shutdown Event Tracker→Disabled→OK

西西 發表在 痞客邦 留言(0) 人氣()

  • Mar 01 Tue 2011 10:18
  • vsftpd

About vsftpd
OS : Fedora 13 (2.6.36 CC改裝版)
1. 安裝: yum install vsftpd
2.  Firewall Setting

西西 發表在 痞客邦 留言(0) 人氣()

Create & Remove Symbolic link
 
Create : 
ln -s target_file file_link

西西 發表在 痞客邦 留言(0) 人氣()

1 2 3 4
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。