Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Saturday, January 18, 2014

The all Android supports measurements units


  • px (pixels): Dots on the screen.
  • in (inches): Size as measured by a ruler.
  • mm (millimeters): Size as measured by a ruler.
  • pt (points): 1/72 of an inch.
  • dp (density-independent pixels): An abstract unit based on the density of the screen. On a display with 160 dots
  • per inch, 1dp = 1px.
  • dip: Synonym for dp, used more often in Google examples.
  • sp (scale-independent pixels): Similar to dp but also scaled by the user’s font size preference.
sp unit is recommend for text sizes
dip unit for everything else

Sunday, December 15, 2013

How to remote debug android emulator for windows


For Remote Machin run with SDK and Android Emulator
1. Install freeSSHd on remote machin
    2.1 start freeSSHd. don't run freeSSHd more than one time, It will
        make the second freeSSHd instance show SSH Server start faile.
    2.2 in the windows taskbar bottom right corner find out freeSSHd
        icon and click setting menu item.
    2.3 in the Server status tab make sure SSH server is running
    2.4 In Users tab add new user for ssh login
    2.5 In Tunneling tab checked 'Allow local port forwarding'
2. Install android SDK and run emulator in remote machin.


For Development Machin run with Eclipse and SDK
3. Setup putty SSH client
    3.1 open putty go to 'Connection -> SSH -> Tunnel' add forward port as follow:
        option: Local, Auto
        L5554  Localhost:5554
        L5555  Localhost:5555
        5554 is the first running emulator in remote machin, if you wanna connect more emulators
        you have to add addtional pairs of port as above.
    3.2 go to 'Session' add remote machin IP with SSH 22 port, Then save it to session name, the tunnel
        setting you do above will save into this session name.
4. connect to remote machin, type login name and password to login.
   and just keept putty running here as a SSH tunnle connector.
5. stop adb server in develop machin, and restart it again or let step 6. do it automatically.
    adb kill-server
6. relocate devices, remote emulator should be show.
   adb devices

Wednesday, October 13, 2010

GPRS and MMS Setup for Android

從目錄進入"設定"=>網際網路設定=>選擇WAP(GPRS)設定或者是MMS(多媒體訊息設定)

台哥大GPRS
設定組名稱:TCC
IP地址:010.001.001.002
首頁:http://ewap
連結埠:9201
電路提示:停止
連結網路類型LGPRS
GPRS設定:APN:mms
帳號:wap
密碼:wap
延遲時間:300秒
CSD設定:
電話號碼:+886935120120
連結類型:ISDN
帳號:wap
密碼:wap
延遲時間:300秒

台哥大MMS
設定組名稱:TCCMMS
IP地址:010.001.001.002
訊息伺服器位址:http://mms
連接埠:9201
連結網路類型:GPRS
GPRS設定:APN:mms
帳號:wap
密碼:wap
延遲時間:300秒
CSD:
電話類型:+886935120120
連結類型:ISDN
帳號:mms
密碼:mms
延遲時間:300秒



中華GPRS
設定組名稱:emome
IP地址:010.001.001.001
首頁:http://wap.emome.net
連接埠:9201
電路提示:停止
連結網路類型:GPRS
GPRS設定:APN:emome
帳號/密碼:空白
延遲時間:180秒
CSD設定:跳過不設

中華MMS
設定組名稱:CHTMMS
IP地址:010.001.001.001
訊息伺服器位址:
http://mms.emome.net:8002
連接埠:9201
連接網路類型:GPRS
GPRS設定:APN:emome
帳號密碼:空白
延遲時間:180秒
CSD:跳過不設

記得設定完之後要儲存,
儲存之後要記的啟動,才可以正常運作
還有要記得打去中華或者是台哥大的客服人員說要開通GPRS喔