P1380451

藍印子,確實比網路上的便宜許多...唯一缺點就是他要現金結帳,還有位在新竹吧....Orz

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

P1380121

 

nicedoor 發表在 痞客邦 留言(3) 人氣()

P1380081

P1370993

文章標籤

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

P1370868

 

文章標籤

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

 

P1370641

文章標籤

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

P1370397

今天來到了雲林、孩沙里花海

文章標籤

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


  1. // check whether the str is a right IPv6 address

文章標籤

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

在AndroidManifest中註冊相應的權限:

<uses-permission android:name="android.permission.FLASHLIGHT" />  

<uses-permission android:name="android.permission.CAMERA"/>

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

 下面的程式可以將所有的網路介面和其關聯的 IP address 都顯示出來:

public String getPhoneIPAddrs()
{
    String sAddr = "";
    
    try
    {
        for (Enumeration<NetworkInterface> enumInterfaces =NetworkInterface.getNetworkInterfaces(); enumInterfaces.hasMoreElements(); )
        {
            // Get next network interface
            NetworkInterface interface = enumInterfaces.nextElement();
            
            for (Enumeration<InetAddress> enumIPAddrs =interface.getInetAddresses(); enumIPAddrs.hasMoreElements(); )
            {
                // Get next IP address of this interface
                InetAddress inetAddr = enumIPAddrs.nextElement();
                
                // Exclude loopback address
                if (!inetAddr.isLoopbackAddress())
                {
                    if (sAddr !"")
                    {
                        sAddr += ", ";
                    }
                    sAddr += "(" + interface.getDisplayName() + ") " + inetAddr.getHostAddress().toString();
                }
            }
        }
    }
    catch (SocketException e)
    {
        e.printStackTrace();
    }
    
    return sAddr;
}

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

 P1370280

 

文章標籤

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