Vaatate praegu abisisu järgmise versiooni jaoks::

AEM Forms provides the complete source code of the AEM Forms app 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 package share.

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

  1. Navigate to package share
    URL: http://<server>:<port>/crx/packageshare.
  2. Download the source package. When you download the package, it is added in your AEM Forms package manager.
  3. After it is downloaded, navigate to: http://<server>:<port>/crx/packmgr/index.jsp, and install adobe-aemfd-forms-app-src-pkg-<version>.zip.
  4. 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 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 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.