Creating a Project in SAP Mobile WorkSpace

Create a project for your Android device application in SAP Mobile WorkSpace.

  1. In SAP Mobile WorkSpace, select File > New > Project.
  2. Select Android > Android Application Project.
    NewAndroidProject
  3. In the New Android Project wizard, enter these values and click Finish:
    • Application Name: – enter the name of the application.
    • Project Name: – enter a unique project name in Eclipse. This can be the same as the application name.
    • Package Name: – enter the name of the package as a unique identifier for the application. Must be a valid Java package.
    • Minimum Required SDK: – enter the lowest version of the SDK that the application supports.
    • Target SDK: – enter the highest API level that the application is known to work with.
    • Compile With: – choose a target API to compile your code against, from your installed SDKs.
    • Theme: – choose the base theme to use for the application.

    NewAndroidProjectWizard
  4. Add the following user permissions in AndroidManifest.xml:
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
    <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission> 
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
    1. Open the manifest file.
    2. Select the Permissions tab.
    3. ClickAdd.
    4. Select Uses Permission and click OK.
    5. In the Name field, enter the name of the permission. In this case, add five Uses Permission entries and name them:
      android.permission.INTERNET
      android.permission.READ_PHONE_STATE 
      android.permission.ACCESS_WIFI_STATE
      android.permission.ACCESS_NETWORK_STATE
      android.permission.WRITE_EXTERNAL_STORAGE
    6. Save your changes.