[Android] How to build and run the Sample Project in the SDK package? (Android Studio, Eclipse)

Home » RECO SDK » [Android] How to build and run the Sample Project in the SDK package? (Android Studio, Eclipse)

1. Android Studio

1) Select “Import Project” in “File” tab.

androidstudio1

2) Select the sample project in our package and click “OK“.

androidstudio2

3) Click “Next“.

androidstudio3

4) Click “Finish“.

androidstudio4

5) The sample project is imported successfully if you get the same result below.

androidstudio6

6) Now, you have to import our library files to build the project.
Select New – Directory after right-clicking in app directory.

androidstudio7

7) Make “libs” directory.

androidstudio8

8) Copy library files (reco-sdk-android_[VERSION].jar and reco-sdk-android_[VERSION]_JavaDoc.jar) in the package to libs directory.

androidstudio9

9) Right click copied files in libs directory and select “Add As Library“.

androidstudio10

10) You can confirm that “compile files” is added to dependencies in build.gradle file.

androidstudio11

Now, you can build and run the sample project as an application.


2. Eclipse

1) Select “Import” in “File” tab.

eclipse1

2) Select “Existing Android Code into Workspace” in “Android” and click “Next“.

eclipse2

3) Browse 버튼을 클릭하여 다운 받은 Sample 프로젝트를 선택하고 Finish 버튼을 클릭합니다.

eclipse3

4) 프로젝트가 import 되었습니다.

eclipse4

5) MainActivity 에서 우클릭 – New – Folder 를 클릭합니다.

eclipse5

6) Folder name 을 “libs” 라고 입력하고 Finish 버튼을 클릭합니다.

eclipse6

7) SDK Package 내의 파일을 libs 폴더에 복사합니다.

eclipse7