Creating the Android Project

Create a new android project in eclipse workSpace. Add library resources to the project and set other application properties.

Prerequisites
To help create your project—and in a subsequent topic, build the user interface—download the SMPFlightManagement Android OData Application (2.2 SP03) example project from the SAP Community Network (SCN) Web site at http://scn.sap.com/docs/DOC-8803.
Task
  1. Start eclipse workspace.
  2. Select File > New > Project.
  3. Select Android > Android Application Project, then Next.
    If you are using an Android version other than the one used to design this tutorial, the screens you use to enter the information in the next several steps may be different.
  4. In the Creates a new Android Application page of the New Android Application wizard, use these values: .
    • Enter SMPFlightManagement as Application Name.
    • By default, Project Name is populated with same application name..
    • Enter smp.tutorial.android as Package Name.
    • Choose Android 4.1 (API 16) from drop-down list for Build SDK
    • Select the appropriate value for Minimum Required SDK
    • Select Create custom launcher icon and Create Project in Workspace.
    • Unselect Mark this project as a library.

    OData Tutorial New Android App1
  5. Click Next.
  6. In the Configure Launcher Icon window, accept the default settings and click Next.

    OData Tutorial New Android App2
  7. In the Create Activity window, select Create Activity, then select BlankActivity, and click Next.

    OData Tutorial New Android App3
  8. In the New Blank Activity window, use these values and click Finish.
    • Enter SplashScreenActivity as Activity Name.
    • Enter activity_splash_screen as Layout Name.
    • Select None from drop-down list as Navigation Type.

    OData Tutorial New App4
The left pane of the Workspace Navigator should list the SMPFlightManagement project. In the src folder, a default Sample Activity class was automatically generated when you created the project.
Tip: To correct a misspelled package name, right-click the package and select Refactor > Rename to change the name and update all references.