How do i open a sample Android SDK app in Eclipse

I have created a basic program in Eclipse for Android 2.1. then I wanted to look at some of the samples, and import sample projects which are in the SDK directory. I have tried opening a new project and 'create project from existing source', I browse and can select a project, all the details come up and I can click finish, but I receive an error message saying 'could not write file', and if I click on details, it says "access is denied" I have tried copying a project folder into my own workspace but it still does the same thing.


Right click in the package explorer window.

Select New -> Other

Under the Android folder select Android Sample Project

Choose the build target and then the sample project


In the new android project window there should be three options:

1.  Create new project in workspace
2.  Create project from existing source
3.  Create project from existing sample

(The third one is a bit hidden, as there is a text box, and check box below the second item before the third one.

Select #3, then select the api level you want the sample for (in the list below), then you can select a sample from the now non-grayed out list.


This is security issue:

  • Go to you android SDK directory in my case (windows 7, 64 bit) its "C:Program Files (x86)"
  • Right click on Android directory and choose 'properties'.
  • Go to 'security' tab and click on 'Edit'.
  • Choose Users from the list and tic on 'full control'.
  • Apply.
  • 链接地址: http://www.djcxy.com/p/24266.html

    上一篇: 启动失败。 找不到二进制文件。 Eclipse Helios上的CDT

    下一篇: 我如何在Eclipse中打开示例Android SDK应用程序