Choose a sample and click the See Details button.
Now click the Download button and select ADT Eclipse Project
Extract the downloaded project zip file and make note of the extracted sample's path. You will need to know where it exists on your file system in following steps.
Now open Eclipse. Once the IDE has completely launched, select Import from the File menu.
Select Android then Existing Android Code into Workspace then Next in the Import dialog
Click the Browse button, and then browse to the path where you extracted the downloaded sample (from step #3)
Check the Copy projects into workspace checkbox.
Now click the Finish button.
When the import process is complete, the project load in the IDE, ready to deploy.
Select the project.
Select "File -> Properties" or right click on the project and select "Properties".
Click "Android" from the left pane.
Select the "EMDK" target name from the list of Project Build Targets for the API version you require.
Note:
If an "EMDK..." target name is not on the list of Build Targets, please confirm you have installed Android API 16 SDK Platform.
Click "Apply" and "OK".
Attach an EMDK supported Android device to your computer in USB debug mode.
NOTE: The device needs the EMDK runtime installed.
From the Package Explorer right click on the select the sample application
Right click on the project and select "Run As" -> "Android Application"
Select your Android device and click "Okay".