How do i open a sample Android SDK app in Eclipse

Mic picture Mic · Jan 3, 2011 · Viewed 56.9k times · Source

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.

Answer

Mike picture Mike · Jul 9, 2012

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