U bekijkt help-inhoud voor de versie::

AEM Forms provides the complete source code of the AEM Forms app. The source contains all components to build a custom AEM Forms app. The source code archive, adobe-lc-mobileworkspace-src-<version>.zip is a part of the adobe-aemfd-forms-app-src-pkg-<version>.zip package on Software Distribution.

To get the AEM Forms app source, perform the following steps:

  1. Open Software Distribution. You require an Adobe ID to log in to the Software Distribution.

  2. Tap Adobe Experience Manager available in the header menu.

  3. In the Filters section:

    1. Select Forms from the Solution drop-down list.
    2. Select the version and type for the package. You can also use the Search Downloads option to filter the results.
  4. Tap the Forms add-on package name applicable to your operating system, select Accept EULA Terms, and tap Download.

  5. Open Package Manager and click Upload Package to upload the package. Select the package and click Install.

    You can also download the package via the direct link listed in the AEM Forms releases article.

  6. To download the source-code archive, open http://<server>:<port>/crx/de/content/forms/mobileapps/src/adobe-lc-mobileworkspace-src-<version>.zip in your browser. 
    The source package is downloaded on your device.

The following image displays the extracted contents of the adobe-lc-mobileworkspace-src-<version>.zip.

Extracted contents of the zipped Android source

The following image displays the directory structure of the android folder in the src folder.

Directory structure of the android folder in src

Build standard AEM Forms app

  1. Perform the following steps to set up a project in Eclipse and provide a signing identity:

    Log in to a machine that has Eclipse and ADT installed and configured.

  2. Copy the downloaded adobe-lc-mobileworkspace-src-<version>.zip archive to:

    For MAC users: [User_Home]/Projects

    For Windows users: %HOMEPATH%\Projects

  3. Extract the archive in the following directory:

    For MAC users: [User_Home]/Projects/[your-project]

    For Windows users: %HOMEPATH%\Projects\[your-project]

  4. Launch Eclipse that comes with ADT bundle. (If ADT is not installed, first install ADT.)

    Default location:

    For MAC users: Default location is Applications/ADT/eclipse/Eclipse. If the ADT is installed in any other location, update the local.properties file present in the [User_Home]/Projects/[your-project]/src/android folder and point the sdk.dir variable to ADT SDK location on your desktop.

    For Windows users: Update the local.properties file present in the %HOMEPATH%\Projects\[your-project]\src\android folder and point the sdk.dir variable to ADT SDK location on your desktop.

  5. Click Finish to build the project.

    The project is available in the ADT Project Explorer.

    eclipse project after building the app
  6. In the ADT Project Explorer, select the project (MWSAndroid) and click the Project menu.

  7. In the Project menu, choose Build Project.

    The MWSAndroid.apk installer file is created in the bin directory.

After you have built the project, you can choose to install the app:

  • Using Android Debug Bridge
  • Using Eclipse

Using Android Debug Bridge

You can install the application on an Android device via the Android Debug Bridge with the following command:

For MAC users: adb install [User_Home]/Projects/[your-project]/adobe-lc-mobileworkspace-src-[version]/android/bin/MWSAndroid.apk

For Windows users: adb install %HOMEPATH%\Projects\[your-project]\adobe-lc-mobileworkspace-src-[version]\android\bin\MWSAndroid.apk

Using Eclipse

Alternatively, you can install the application on an Android device using Eclipse.

  1. Connect the Android device to the computer on which you have built the project.

  2. In the ADT Project Explorer, right-click on the project (MWSAndroid).

  3. From the context menu, choose Run As -> Android Application.

    The Android Device Chooser dialog is displayed.

  4. In the Android Device Chooser dialog, select the Android device on which you need to install the app and click OK.