How to Setup ADF Mobile application on Android For Release Mode in Jdeveloper.

If you have begun developing mobile apps with ADF Mobile on Windows, you have already begun deploying onto the Android Emulator and/or a physical Android Device on hand. To speed up the deployment process and overall performance of the ADF Mobile app, deploy your apps using Release Mode. Overall, you’ll never get the android emulator to run like a physical device or like the iOS emulator, but you can improve the performance of apps by deploying them in Release Mode.

Below are steps to get your Android Apps running in Release mode (developed on a Windows PC). Essentially, you’ll be creating a self-signed certificate with Java’s keytool command and deploying apps based on your self-signed certificate.

  1. Open your command-line utility on Windows.
  2. Add the %JDK_Home%/bin directory to the front of your PATH environment variable.
    Note: the JDK Home should be the JDK Home which your JDeveloper is using.
  3. cd to a directory where you want store your self-signed certificate. I put it in the JDeveloper Home, for example C:\Enter the following command to generate a self-signed certificate:
  4. keytool -genkey -v -keystore %Keystore_Name%.keystore -alias %Alias_Name% -keyalg RSA -keysize 2048 -validity 10000JDeveloper
  5. Replace %keystore_name% with the actual filename that you want to specify for the keystore. Replace %Alias_Name%  with the alias name you want to specify. Since it’s a self-signed certificate, you can name this whatever you want.
  6. You’ll be prompted to specify keystore passwords and additional certificate fields. When you’re prompted to enter an alias-key password, just hit enter to have the alias-key password setup to be the same as your keystore password (It keeps things simple).
    See the example below.
    Keystore
  7. Open your JDeveloper. Go to Tools > Preferences. Go to the ADF Mobile > Platforms configuration screen. Click on the Release Make the following configurations:
    Keystore Location: Specify your keystore file’s location in Keystore
    Keystore Password: Specify your password
    Key Alias: Specify your key-alias
    Key Password: If you hit enter when prompted to enter a alias-key password and didnt enter any values, use the Keystore Password value. Otherwise, enter what you put for the alias-key password.Keystore2
  8. Go to your Mobile Application’s Deployment Profile Properties window. Click on Android Options. Switch Build Mode from Debug to Release. Click OKto apply your changes.Keystore3
  9. Deploy your Mobile application into Android emulator or mobile device.
Advertisements
This entry was posted in ADF Mobile and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s