Setting up Dreamweaver’s FTP connection

This TechNote addresses setting up Dreamweaver’s FTP connection. The File Transfer Protocol (FTP) is one of the most commonly used methods for transferring files to and from a remote server. Depending on your setup, the remote server is where you store files for testing, collaboration, production, deployment or other tasks. To transfer via FTP in Dreamweaver, users enter their FTP server information in the Remote Info category of the Site Definition dialog box. In the Files panel, users can then click the Connect and Put buttons to upload selected files and/or folders. For details, see the Define Sites section of this TechNote.

Note: The screenshots and specific functionality in this technote are from Macromedia Dreamweaver MX 2004. The information in this TechNote will still benefit someone using any version of the application, even if certain functionality is not available or screenshots look different.

Much of the information in this TechNote has been taken from the following sections of the Dreamweaver MX 2004 help system (Help> Using Dreamweaver):

  • Setting Remote Options for FTP access
  • Setting Site preference options
  • Setting up a remote folder

If you have already defined an FTP site and you are encountering a specific error, refer to theAdditional Information section for a list of other FTP TechNotes.

There are three steps involved when setting up a Dreamweaver site for FTP:

  1. Verify that FTP is your best option for connecting to the remote server
  2. Set up the Dreamweaver site definition
  3. Set up the Dreamweaver Site preference options
Verify that FTP is your best option for connecting to the remote server

Before setting up a Dreamweaver site definition, determine whether FTP is your best or only option for connecting to your remote server. The FTP protocol has been around for many years and is known for being a loosely structured protocol that can present challenges in terms of reliability and compatibility. Dreamweaver allows you to connect to remote servers using a variety of methods, in addition to FTP:

  • Local/Network – if you are accessing a server on your local area network.
  • Secure FTP (SFTP) – SFTP is a separate protocol from FTP that enables you to fully encrypt all file transfers and prevent unauthorized access to your data, files, user names, and passwords.
  • WebDAV
  • Visual SourceSafe
  • RDS

The first two options on the list;Local/Network and SFTP;are the most likely substitutes for FTP. These two protocols are more efficient and reliable than FTP, so you may want to pursue one of them if it is available for you. See the Dreamweaver help files for more information.

Set up the Dreamweaver site definition

In order to use FTP in Dreamweaver, you either need a site definition or you need to setup siteless file editing. Dreamweaver needs one of these two in order to know how to connect to the server. Starting with Dreamweaver MX 2004, you can connect directly to an FTP server without a formal site definition (siteless file editing), however a site definition provides more functionality within Dreamweaver. Most Dreamweaver users prefer to take advantage of the site definition’s additional functionality, so this TechNote will focus on that method. To learn more about site definitions, seeHow to define a site in Dreamweaver (TechNote tn_14028) or refer to the Dreamweaver help files (Help > Using Dreamweaver > Dreamweaver Basics > Setting Up a Dreamweaver Site).

To set up or edit the FTP settings in Dreamweaver, follow the steps below:
  1. Choose Site > Manage Sites.
  2. In the Manage Sites dialog box, either click the New button or select your existing site definition and click the Edit button.
  3. In the Site Definition dialog box, you will see two tabs: Basic and Advanced. For the purposes of this TechNote, we will focus on the Advanced tab, since it includes more FTP options than the Basic tab.
  4. From the Advanced tab, choose the Remote Info category. It should look like this:

  5. In the Access drop-down menu, select FTP, once you have determined that FTP is your best option.
  6. In the FTP host field, enter the host name of the FTP host to which you upload files for your website. Your FTP host is the full Internet name of a computer system, such as ftp.mindspring.com. Enter the full host name without any additional text. In particular, don’t add a protocol name in front of the host name. Port 21 is the default port for receiving FTP connections, however sometimes server administrators change the port setting to another port to prevent unauthorized FTP access. In those situations, you can append a colon and the port number to the FTP host entry. For example, if the port is 29, you would enter ftp.mindspring.com:29.
  7. In the Host directory field, enter the host directory at the remote site where you store your documents that are visible to the public.If youre uncertain about what to enter as the host directory, contact the servers administrator. Or, try leaving the text box blank. On some servers, your root directory is the same as the directory you first connect to with FTP. To find out, connect to the server. If a folder with a name like public_html, or www, or your login name, appears in the Remote File view in your Files panel, thats probably the directory you should use in the Host Directory text box.
  8. In the Login and Password fields, enter the login name and password that you use to connect to the FTP server.
  9. Click the Test button to test your FTP host, host directory, login name and password.
  10. Dreamweaver saves your password by default. Deselect the Save checkbox if you prefer that Dreamweaver prompt you for a password each time you connect to the remote server.
  11. Select the Use passive FTP checkbox if your firewall configuration requires use of passive FTP. Passive FTP enables your local software to set up the FTP connection rather than requesting the remote server to set it up. If youre not sure whether to use passive FTP, check with your system administrator, or try both checking and unchecking Use Passive FTP.
  12. Select the Use firewall checkbox if you connect to the remote server from behind a firewall.
  13. Click Firewall Settings button to launch the Dreamweaver Site preference options to edit your firewall host or port. Preferences are discussed in the next section.
  14. Select the Use Secure FTP (SFTP) checkbox to use SFTP for secure authentication. SFTP uses encryption and public keys to secure a connection to your testing server. Note: Your server must be running an SFTP service.
  15. The Server Compatibility button is only in version 7.0.1 of Dreamweaver MX 2004. If you are using Dreamweaver MX 2004 and you do not see this button, download the 7.0.1 Updater. This button should only be used for troubleshooting purposes. It is especially useful for sites that used to work in prior versions of Dreamweaver, but do not work in Dreamweaver MX 2004. SeeTroubleshooting FTP Issues in Dreamweaver (TechNote tn_14834) for more information on these options.
  16. The checkboxes for “Automatically upload files to server on save” and “Enable file check in and check out” are not specific to FTP sites. Refer to Dreamweaver help for more information on these two options.

Note: The FTP Host, Host Directory, Login and Password information must be obtained from the system administrator for the company hosting your site. No one else has access to this information. Enter the information exactly as your system administrator gives it to you.

Back to contents

Set up the Dreamweaver Site preference options

In addition to the Site Definition dialog box, Dreamweaver provides the Preferences dialog box for entering FTP settings. Unlike site definitions, which must be set for each site, site preference settings affect all sites. Users do not need to change the default Site FTP Preferences in most cases. However, when troubleshooting, it is useful to try other settings.

Here is how to access the Preferences dialog box:

  • Windows: Edit > Preferences, then choose Site from the category list
  • Macintosh: Dreamweaver > Preferences, then choose Site from the category list

The Site preference options relevant to FTP are as follows:

FTP Connection determines whether the connection to the remote site is terminated after the specified number of minutes have passed with no activity.

FTP Time Out specifies the number of seconds in which Dreamweaver attempts to make a connection with the remote server. If there is no response after the specified amount of time, Dreamweaver displays a warning dialog box alerting you to this fact. The default value of 60 seconds works for the majority of FTP servers.

FTP Transfer options determines whether Dreamweaver selects the default option, after a specified number of seconds, when a dialog box appears during a file transfer and there is no user response.

Firewall Host specifies the address of the proxy server through which you connect to outside servers if you are behind a firewall. If you are not behind a firewall, leave this space blank. If you are behind a firewall, select the Use Firewall option in the Site Definition dialog box.

Firewall Port specifies the port in your firewall through which you pass to connect to the remote server. If you connect through a port other than 21 (the default for FTP), enter the number here.

Back to contents

Transitional Phrase

Illustration      Thus, for example, for instance, namely, to illustrate, in other words, in particular, specifically, such as.
Contrast On the contrary, contrarily, notwithstanding, but, however, nevertheless, in spite of, in contrast, yet, on one hand, on the other hand, rather, or, nor, conversely, at the same time, while this may be true.
Addition And, in addition to, furthermore, moreover, besides, than, too, also, both-and, another, equally important, first, second, etc., again, further, last, finally, not only-but also, as well as, in the second place, next, likewise, similarly, in fact, as a result, consequently, in the same way, for example, for instance, however, thus, therefore, otherwise.
Time After, afterward, before, then, once, next, last, at last, at length, first, second, etc., at first, formerly, rarely, usually, another, finally, soon, meanwhile, at the same time, for a minute, hour, day, etc., during the morning, day, week, etc., most important, later, ordinarily, to begin with, afterwards, generally, in order to, subsequently, previously, in the meantime, immediately, eventually, concurrently, simultaneously.
Space At the left, at the right, in the center, on the side, along the edge, on top, below, beneath, under, around, above, over, straight ahead, at the top, at the bottom, surrounding, opposite, at the rear, at the front, in front of, beside, behind, next to, nearby, in the distance, beyond, in the forefront, in the foreground, within sight, out of sight, across, under, nearer, adjacent, in the background.
Concession Although, at any rate, at least, still, thought, even though, granted that, while it may be true, in spite of, of course.
Similarity Of Comparison Similarly, likewise, in like fashion, in like manner, analogous to.
Emphasis Above all, indeed, truly, of course, certainly, surely, in fact, really, in truth, again, besides, also, furthermore, in addition.
Details Specifically, especially, in particular, to explain, to list, to enumerate, in detail, namely, including.
Examples For example, for instance, to illustrate, thus, in other words, as an illustration, in particular.
Consequence Or Result So that, with the result that, thus, consequently, hence, accordingly, for this reason, therefore, so, because, since, due to, as a result, in other words, then.
Summary Therefore, finally, consequently, thus, in short, in conclusion, in brief, as a result, accordingly.
Suggestion For this purpose, to this end, with this in mind, with this purpose in mind, therefore.

Change Proxy of Emulator

adb #shell sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db sqlite> INSERT INTO system VALUES(99,’htpp_proxy’,'nbproxy:8080′); sqlite>.exit

adb #shell sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db sqlite> INSERT INTO system VALUES(99,’htpp_proxy’,'nbproxy:8080′); sqlite>.exit

adb #shell sqlite3/data/data/com.google.android.providers.settings/
databases/settings.db “\”INSERT INTO system
VALUES(99,’http_proxy’,'nbproxy:8080′);\”"

Here’s how you can specify a proxy server for the Android browser.
1) Connect to the emulator using the “adb shell” command
2) Once you have a prompt, issue the following command:
sqlite3 /data/data/com.google.android.providers.settings/databases/
settings.db “INSERT INTO system
VALUES(99,’http_proxy’,':’);”
where and should be
replaced by the IP or hostname and port number, respectively, for the
proxy server you’re using. (The command should be on one line.)
*Note*: you may need to restart the emulator for the change to be
recognized by the browser.
While in “adb shell”, you can check to see if your proxy was added
correctly by issuing the following:
sqlite3 /data/data/com.google.android.providers.settings/databases/
settings.db “SELECT * FROM system”
If things worked correctly, you should see something like:
# sqlite3 /data/data/com.google.android.providers.settings/databases/
settings.db “SELECT * FROM system”
1|music_volume|3
2|voice_volume|3
3|ringer_volume|3
99|http_proxy|proxy.example.com:4242
To remove the proxy setting, issue the following command via “adb
shell”:
sqlite3 /data/data/com.google.android.providers.settings/databases/
settings.db “DELETE FROM system WHERE _id=99″

How to find IP

How Do I Find My PC’s IP Address?
Network Operations Center — 8/2007

Follow these steps for Windows XP:

Click the Start button, select Run
Type CMD and press Enter.
A Command prompt window will open. Type ipconfig and press Enter.
Several lines of information will be displayed. The IP address looks like “149.72.61.234″ – yours will probably have different numbers near the end.
If you cannot obtain the IP address, you can try to “renew” it:

Click the Start button, select Run
Type CMD and press Enter.
A Command prompt window will open. Type ipconfig /release and press Enter. (Note: there IS a space between ipconfig and /release)
Wait for the command to finish.
Type ipconfig /renew (Note: there is a space between ipconfig and /renew)
Wait about 1 minute. If successful, your IP will display and look like “149.72.61.234″.
Type Exit to close the CMD window.
If you get an error, the cause might be:

You do not have a network connection.
Your PC may not be configured to get its IP Address and DNS information from our DHCP server.
In the Residences, you may not yet be authorized to access the network. You must wait at least 1 day after registering your PC at http://dormlord.dowling.edu before trying to connect.

Using Android SDK 1.5 emulator with proxy in Eclipse 3.45

Using Android SDK 1.5 emulator with proxy in Eclipse 3.45
By maohao
Go to Package Explorer -> Right click your Android project ->Run As->Run Configurations.

Under Android Application on the left column, select your project -> on the right column, where you see Android | Target | Common tabs ->

Select Target -> on the bottom “Additional Emulator Command Line Options”->

-http-proxy http://wwwgateProxy.com:1080 -debug-proxy http://wwwgateProxy.com:1080

->Run/Close.

Android Emulator

Controlling the Emulator

You can use emulator startup options and console commands to control the behaviors and characteristics of the emulated environment itself.

When the emulator is running, you can interact with the emulated mobile device just as you would an actual mobile device, except that you use your mouse pointer to “touch” the touchscreen and your keyboard keys to “press” the simulated device keys.

The table below summarizes the mappings between the emulator keys and and the keys of your keyboard.

Emulated Device Key Keyboard Key
Home HOME
Menu (left softkey) F2 or Page-up button
Star (right softkey) Shift-F2 or Page Down
Back ESC
Call/dial button F3
Hangup/end call button F4
Search F5
Power button F7
Audio volume up button KEYPAD_PLUS, Ctrl-5
Audio volume down button KEYPAD_MINUS, Ctrl-F6
Camera button Ctrl-KEYPAD_5, Ctrl-F3
Switch to previous layout orientation (for example, portrait, landscape) KEYPAD_7, Ctrl-F11
Switch to next layout orientation (for example, portrait, landscape) KEYPAD_9, Ctrl-F12
Toggle cell networking on/off F8
Toggle code profiling F9 (only with -trace startup option)
Toggle fullscreen mode Alt-Enter
Toggle trackball mode F6
Enter trackball mode temporarily (while key is pressed) Delete
DPad left/up/right/down KEYPAD_4/8/6/2
DPad center click KEYPAD_5
Onion alpha increase/decrease KEYPAD_MULTIPLY(*) / KEYPAD_DIVIDE(/)

Note that, to use keypad keys, you must first disable NumLock on your development computer.

Emulator Startup Options

The emulator supports a variety of options that you can specify when launching the emulator, to control its appearance or behavior. Here’s the command-line usage for launching the emulator with options:

emulator -avd <avd_name> [-<option> [<value>]] ... [-<qemu args>]

The table below summarizes the available options.

Category Option Description Comments
Help -help Print a list of all emulator options.
-help-all Print help for all startup options.
-help- Print help for a specific startup option.
-help-debug-tags Print a list of all tags for -debug .
-help-disk-images Print help for using emulator disk images.
-help-environment Print help for emulator environment variables.
-help-keys Print the current mapping of keys.
-help-keyset-file Print help for defining a custom key mappings file.
-help-virtual-device Print help for Android Virtual Device usage.
AVD -avd or
@
Required. Specifies the AVD to load for this emulator instance. You must create an AVD configuration before launching the emulator. For information, see Android Virtual Devices.
Disk Images -cache Use as the working cache partition image. Optionally, you can specify a path relative to the current working directory. If no cache file is specified, the emulator’s default behavior is to use a temporary file instead.

For more information on disk images, use -help-disk-images.

-data Use as the working user-data disk image. Optionally, you can specify a path relative to the current working directory. If -data is not used, the emulator looks for a file named “userdata-qemu.img” in the storage area of the AVD being used (see -avd).
-initdata When resetting the user-data image (through-wipe-data), copy the contents of this file to the new user-data disk image. By default, the emulator copies the/userdata.img. Optionally, you can specify a path relative to the current working directory. See also -wipe-data.

For more information on disk images, use -help-disk-images.

-nocache Start the emulator without a cache partition. See also -cache .
-ramdisk Use as the ramdisk image. Default value is /ramdisk.img.

Optionally, you can specify a path relative to the current working directory. For more information on disk images, use -help-disk-images.

-sdcard Use as the SD card image. Default value is /sdcard.img.

Optionally, you can specify a path relative to the current working directory. For more information on disk images, use -help-disk-images.

-wipe-data Reset the current user-data disk image (that is, the file specified by -datadir and -data, or the default file). The emulator deletes all data from the user data image file, then copies the contents of the file at -inidatadata to the image file before starting. See also -initdata.

For more information on disk images, use -help-disk-images.

Debug -debug Enable/disable debug messages for the specified debug tags. is a space/comma/column-separated list of debug component names. Use -help-debug-tags to print a list of debug component names that you can use.
-debug- Enable/disable debug messages for the specified debug tag. Use -help-debug-tags to print a list of debug component names that you can use in .
-debug-no- Disable debug messages for the specified debug tag.
-logcat Enable logcat output with given tags. If the environment variable ANDROID_LOG_TAGS is defined and not empty, its value will be used to enable logcat output by default.
-shell Create a root shell console on the current terminal. You can use this command even if the adb daemon in the emulated system is broken. Pressing Ctrl-c from the shell stops the emulator instead of the shell.
-shell-serial Enable the root shell (as in -shell and specify the QEMU character device to use for communication with the shell. must be a QEMU device type. See the documentation for ‘-serial dev‘ at http://www.bellard.org/qemu/qemu-doc.html#SEC10 for a list of device types.

Here are some examples:

  • -shell-serial stdio is identical to -shell
  • -shell-serial tcp::4444,server,nowait lets you communicate with the shell over TCP port 4444
  • -shell-serial fdpair:3:6 lets a parent process communicate with the shell using fds 3 (in) and 6 (out)
  • -shell-serial fdpair:0:1 uses the normal stdin and stdout fds, except that QEMU won’t tty-cook the data.
-show-kernel Display kernel messages.
-trace Enable code profiling (press F9 to start), written to a specified file.
-verbose Enable verbose output. Equivalent to -debug-init.

You can define the default verbose output options used by emulator instances in the Android environment variable ANDROID_VERBOSE. Define the options you want to use in a comma-delimited list, specifying only the stem of each option:-debug-.

Here’s an example showing ANDROID_VERBOSE defined with the -debug-init and -debug-modem options:

ANDROID_VERBOSE=init,modem

For more information about debug tags, use .

Media -audio Use the specified audio backend.
-audio-in Use the specified audio-input backend.
-audio-out Use the specified audio-output backend.
-noaudio Disable audio support in the current emulator instance.
-radio Redirect radio modem interface to a host character device.
-useaudio Enable audio support in the current emulator instance. Enabled by default.
Network -dns-server Use the specified DNS server(s). The value of must be a comma-separated list of up to 4 DNS server names or IP addresses.
-http-proxy Make all TCP connections through a specified HTTP/HTTPS proxy The value of can be one of the following:
http://:
http://:@:

The http:// prefix can be omitted. If the -http-proxy command is not supplied, the emulator looks up thehttp_proxy environment variable and automatically uses any value matching the format described above.

-netdelay Set network latency emulation to . Default value is none. See the table in Network Delay Emulation for supported values.
-netfast Shortcut for -netspeed full -netdelay none
-netspeed Set network speed emulation to . Default value is full. See the table in Network Speed Emulation for supported values.
-port Set the console port number for this emulator instance to . The console port number must be an even integer between 5554 and 5584, inclusive. +1 must also be free and will be reserved for ADB.
-report-console Report the assigned console port for this emulator instance to a remote third party before starting the emulation. must use one of these formats:

tcp:[,server][,max=]unix:[,server][,max=]

Use -help-report-console

to view more information about this topic.

System -cpu-delay Slow down emulated CPU speed by Supported values for are integers between 0 and 1000.

Note that the does not correlate to clock speed or other absolute metrics — it simply represents an abstract, relative delay factor applied non-deterministically in the emulator. Effective performance does not always scale in direct relationship with values.

-gps Redirect NMEA GPS to character device. Use this command to emulate an NMEA-compatible GPS unit connected to an external character device or socket. The format of must be QEMU-specific serial device specification. See the documentation for ‘serial -dev’ athttp://www.bellard.org/qemu/qemu-doc.html#SEC10.
-nojni Disable JNI checks in the Dalvik runtime.
-qemu Pass arguments to qemu.
-qemu -h Display qemu help.
-radio Redirect radio mode to the specified character device. The format of must be QEMU-specific serial device specification. See the documentation for ‘serial -dev’ athttp://www.bellard.org/qemu/qemu-doc.html#SEC10.
-timezone Set the timezone for the emulated device to , instead of the host’s timezone. must be specified in zoneinfo format. For example:

“America/Los_Angeles”
“Europe/Paris”

-version Display the emulator’s version number.
UI -dpi-device Scale the resolution of the emulator to match the screen size of a physical device. The default value is 165. See also -scale.
-no-boot-anim Disable the boot animation during emulator startup. Disabling the boot animation can speed the startup time for the emulator.
-no-window Disable the emulator’s graphical window display.
-scale Scale the emulator window. is a number between 0.1 and 3 that represents the desired scaling factor. You can also specify scale as a DPI value if you add the suffix “dpi” to the scale value. A value of “auto” tells the emulator to select the best window size.
-raw-keys Disable Unicode keyboard reverse-mapping.
-noskin Don’t use any emulator skin.
-keyset Use the specified keyset file instead of the default. The keyset file defines the list of key bindings between the emulator and the host keyboard. For more information, use -help-keyset to print information about this topic.
-onion Use overlay image over screen. No support for JPEG. Only PNG is supported.
-onion-alpha Specify onion skin translucency value (as percent). Default is 50.
-onion-rotation Specify onion skin rotation. must be one of the values 0, 1, 2, 3.
-skin This emulator option is deprecated. Please set skin options using AVDs, rather than by using this emulator option. Using this option may yield unexpected and in some cases misleading results, since the density with which to render the skin may not be defined. AVDs let you associate each skin with a default density and override the default as needed. For more information, see Android Virtual Devices.
-skindir This emulator option is deprecated. See comments for -skin, above.

Update Android platforms to your SDK and ADT Plugin in Eclipse 2

Information for you from Google about Updating the ADT Plugin.

The “Alternative version” appears to be “faster” and doesn’t check all the other plugins by default.

Updating the ADT Plugin

To update the ADT plugin to the latest version, follow these steps:

1. Select Help > Software Updates > Find and Install….
2. Select Search for updates of the currently installed features and press Finish.
3. If any update for ADT is available, select and install.

Alternatively,

1. Select Help > Software Updates > Manage Configuration.
2. Navigate down the tree and select Android Development Tools
3. Select Scan for Updates under Available Tasks.

http://code.google.com/android/intro…stallingplugin

How To Save Bitmap File as OLE Object in Access OLE Object Field

original Source

The following example demonstrates how a bitmap file is stored in the OLE Object field of an Access table using Visual Basic.

Step-by-Step Example

  1. For testing purposes, create a database named db1.mdb and a table named MyOLETest in Access. The MyOLETest table structure is as follows:

Field Name Data Type
ID AutoNumber (Primary Key)
Picture OLE Object

  1. Save db1.mdb in the C:\TEMP\ folder.
  2. Create a new Standard EXE project in Visual Basic. Form1 is created by default.
  3. Place a CommandButton, Command1, and a Data Control, Data1 on Form1.
  4. Add an OLE control, OLE1, to Form1. Click Cancel in the Insert Object window.
  5. Using the following table as a guide, set the properties of the newly added controls:

Control Property Value
Data1 Database Name C:\TEMP\db1.mdb
Data1 RecordSource MyOLETest
OLE1 DataSource Data1
OLE1 DataField Picture

  1. Double-click Command1, and then paste the following code into the Command1 Code window:

    Data1.Recordset.AddNew
    OLE1.CreateEmbed "C:\Windows\Circles.bmp"
    ' Assume the bitmap file is located at C:\Windows\ folder.
    Data1.Recordset.Update
    Data1.Recordset.MoveLast
    					

  2. Start the program or press the F5 key. Click Command1 to add the Circles.bmp file to the MyOLETest Access table.

NOTE: The OLE Container control does not have to be visible to update the Access database with this method.

Android System Environment

Android

Android is an open and free mobile platform developed by the Open Handset Alliance, a group of more than 30 technology and mobile companies. To develop applications on this platform the Android Software Development Kit can be used.

The latest Android Software Development Kit version can be downloaded from:

http://developer.android.com/index.html

More information about Android can be found at http://developer.android.com/index.html

Procedure
Download and unzip android-sdk-windows-1.1_r1.zip to a suitable location on your machine.
e.g.: C:\Tools\android-sdk-windows-1.1_r1

Set the System environment variable “Path” to the android “tools” directory:
Select Start | Control Panel
Select Classic View
Select System
Select “Advanced system settings”
The “System Properties” windows opens, select tab Advanced

Click button “Environment Variables”
Select System environment variable “Path” and click Edit button.
Set the System environment variable to the android “tools” directory:
e.g.: Path=….;C:\tools\android-sdk-windows-1.1_r1\tools

Press the OK button multiple times to close the “System Properties” window.