Google Map in MapGL
Recently, I found Google Map released MapGL Beta Version. I tried that. It does not looks any different from the classic mode. But when I changes the zoom level, that is smoother and some tweening effect too. That sounds cool. I started to use this mode as the default.
Ping won't work for external network in Android
The standard way to do Ping in Android is using isReachable().
Like this:
Code
InetAddress address = InetAddress.getByName("192.168.1.1")); | |
if(address.isReachable(100000)){ | |
// Success} |
But I tested this only working in local network and total not working in emulator too!
I guess for external IP address, it will only work on rooted phones.
Moreover, I am thinking whether Mobile Provider will block ICMP Package too!
UnknownHostException in HttpGet at the android widget
I have used HttpGet a lot in Android, but today, I started to build my first android widget. I used HttpGet for accessing some external feeds. I got UnknownHostException. I have placed in the use-permission tag in AndroidManifest.xml
Code
<uses-permission android:name="android.permission.INTERNET"></uses-permission> |
Well, I found that is because I placed this tag under manifest element. I should place it under the receiver element
Code
<receiver android:name="Widget" > | |
<uses-permission android:name="android.permission.INTERNET"></uses-permission> |
Finally the problem is solved.
Google I/O 2012 Key Note is uploaded
I am watching the key note for Google I/O 2012. There are Android 4.1 and Project Butter.
Find out more on Youtube
Will Cable TV be phased out soon?!
Cable TV provides a lot of good movies and tv series. But now, we can rent movie and tv series in iTunes and Google Play. Moreover, we can play in our TV via Apple TV or Nexus Q. We play it when we want to watch watch. That sounds more convenient than Cable TV. In addition, we only pay what we need. That may be cheaper than the subscription of Cable TV. Then why do you still need to have Cable TV.