For a test requirement, I modified the IMSI number in emulator.exe via a hex text editor,replaced a new IMSI number instead of original '3102开发者_开发百科60000000000'. I ran the emulator again and resulted in no network connection any more. Any one who knows the problem and a way to resolve it pls give me a reply, thanks.
This is how you fix it:
- Make sure your host machine is connected to the internet,
- Start a web-proxy tool such as paros proxy or web-scarab on your machine.
- Now start your emulator: adb somename
- goto Settings -> Wireless & network settings -> Mobile networks -> Access Point Names
- Click on menu. It will show you an option for "New APN"
- Give any Name say "myapn". Any APN say "testapn". Proxy = 127.0.0.1. Port = 8080 (check the port of your web-proxy tool).
- Click on menu again and save.
You should have internet connection now. G'd luck.
精彩评论