How to import android sample project or code in eclipse

Ways to import android sample project or code in eclipse. If you are new to work on eclipse, than surely you have encounter this problem. Many new comer ask Me "How to import sample program / code in eclipse Package Explorer".

Given below are two 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:

      6 comments: