Notes by freyo

Displaying notes 1 - 10
Created by freyo on May 17, 2013 19:52:17    Last update: May 17, 2013 19:52:17
Angie. please look at the related notes "Android unit testing example" and "Android unit testing basics". The examples might be out-of-date since they were from the Froyo era.
Created by freyo on February 09, 2013 14:40:31    Last update: February 09, 2013 14:40:31
Use this link to lookup information on an IP address: http://bgp.he.net/ip/204.193.144.69 Whois lookup is also supported. Clean page, no clutter.
Created by freyo on February 09, 2013 14:22:42    Last update: February 09, 2013 14:22:42
To find out the DNS server ip address your computer is using, load this page in your browser: http://myresolver.info/
Created by freyo on February 09, 2013 14:17:32    Last update: February 09, 2013 14:17:32
More info on how to change DNS setting on the Android phone: How do you change the DNS? Custom DNS Servers
Created by freyo on February 06, 2013 21:10:47    Last update: February 06, 2013 21:12:18
I have an old Samung phone to be used as a toy. After restoring back to factory image and power on, I was stuck at the activate service screen. Unfortunately, the four corner magic touch did not work. So I did quite a bit of digging and this is what worked on my Samsung Continuum: Press emergency call button, then at the dialer, press * # 8 3 7 8 6 6 3 3 , press the Home key From the home screen, tap phone icon, Dial * # 2 2 7 4 5 9 2 7 Enter SPC code: ______ displays tap in white box to show virtual keyboard, enter 6 digit code (default: 000000), tap OK Select “Hidden menu Enable”, tap OK From...
Created by freyo on September 13, 2011 16:20:08    Last update: February 06, 2013 20:46:22
From ADB shell: show Android routing table: # cat /proc/net/route or # ip route show show DNS server: # getprop net.dns1 # getprop net.dns2 set DNS server: # setprop net.dns1 107.86.113.12 # setprop net.... add a default gateway # route add default gw 192.168.0.1 dev wifi I just learned that the DNS server properties can also be dhcp.eth0.dns1 and dhcp.eth0.dns2 for wifi. On my Samsung phone, DNS for wifi was configured through dhcpcd in /system/etc/dhcpcd/dhcpcd-hooks/20-dns.conf , the relevant section looked like this: set_dns_props() { case "${new_domain...
Created by freyo on February 05, 2013 20:10:35    Last update: February 05, 2013 20:29:51
Have to remount /system as read-write: mount -o rw,remount -t yaffs2 /dev/block/mtdblock3... Maybe this is safer: mount -o rw,remount /system
Created by freyo on September 29, 2011 16:01:31    Last update: September 29, 2011 16:09:37
With standalone broadcast receiver AndroidManifest.xml : <?xml version="1.0" encoding="utf-8"?> <manifes... Java code: package com.android.networkreceiver; import... Register listener inside Activity programmatically AndroidManifest.xml : <?xml version="1.0" encoding="utf-8"?> <manifes... Java code: package com.android.networklistener; import... Register/unregister broadcast receiver in onResume / onPause works because the connectivity change broadcast is sticky . I intentionally used two registerReceiver calls in onResume to demonstrate this - onReceive will be called once for each registration.
Created by freyo on September 29, 2011 15:43:12    Last update: September 29, 2011 15:43:12
I got this error while enabling/disabling wifi on an Android device: W/ActivityManager( 2735): Unable to launch app com... The receiver was registered for network connection change: <receiver android:name="NetworkReceiver"> ... This was fixed by just rebooting the device!
Created by freyo on September 15, 2011 20:29:22    Last update: September 21, 2011 13:16:36
Usually network connectivity can be tested with ping and telnet . Android adb shell has ping but no telnet . But it has nc , which can be used in place of telnet . # nc -z -v www.google.com 80 DNS fwd/rev mismat...
Previous  1 2 3 4 5 6 7 8 9 10 Next