How to enable the Android simulator Browser to browse the Internet

Source: Internet
Author: User

In Windows, After configuring the Adroid environment variable (such as adding d: android-sdk-windows-1.0_r1ools to the system variable PATH), enter in the command line window:
Emulator
After the Android simulator is started, enter:
Adb shell
Enter the adb shell mode:
Write the network connection proxy settings to the configuration database. If your Internet proxy IP address is 10.193.xx.xx:
Sqlite3/data/com. android. providers. settings/databases/settings. db "insert into system VALUES (99, http_proxy, 10.193.xx.xx: 1080 )"
Check whether the system settings have been successfully changed:

Sqlite3/data/com. android. providers. settings/databases/settings. db "SELECT * FROM system"
 

The result should contain 99 | http_proxy | 10.193.xx.xx: 1080.

Restart the simulator and use the Internet on Browser.

How to delete the configuration information just written:
Sqlite3/data/com. android. providers. settings/databases/settings. db "delete from system WHERE _ id = 99"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.