Tuesday, 25 September 2012

How To Import Android Sample Project Or Source Code In Eclipse

Many time simple things create big mess. Initially, when I was new to android app development using eclipse, I was unaware about "How to Import or Add Sample Project or Source Code in Eclipse". Here are the ways to import android sample project or code in eclipse. If you are new to work on eclipse, then surely you may have encountered this problem. Many new comers face this common query "How to import sample program / code in eclipse Package Explorer".
 
Given below are some best way to do so,
 
1st:
 
Copy sample project to android sample project folder.
i.e. "C:\Program Files\Android\android-sdk\samples\android-15"
 
From eclipse go to: File > New > Project.
"New Android Project" window will pop-up.
 
Select "Create project from existing sample" radio button and click Next.
 
Select Build Target i.e. Android 4 (or Target you are using) or Google APIs.
 
Select Sample project that need to open and click Finish.
 
2nd:
 
From Eclipse go to: File > Import
"Import" pop window will open.
 
General > Existing Project into Workspace.
 
Click on Browse button and select the location of sample project folder and click Ok.
 
Related Search:
 
How to add sample code in eclipse?
How to import existing Android project into Eclipse?
Eclipse "import" existing source folder?

No comments:

Post a Comment