MAF: Deploy in Release Mode (Android)

Tweet about this on TwitterShare on Facebook10Share on LinkedIn8Share on Google+0

You need to select Release for the Build Mode, when your application is ready to be published to an application marketplace, such as Google Play, or to test application performance. In this post, I will show how to configure the key options for a Release Mode.

Open a command window and navigate to the <JDK_HOME>/bin directory.
Create a new keystore file using the keytool utility.

keytool -genkey -v -keystore <keystoreName>.keystore -alias <aliasName> -keyalg RSA -keysize 2048 -validity 10000

deploy-a-maf-application-in-release-mode-android1

The keytool prompts you to provide passwords for the keystore and key, and to provide the Distinguished Name fields for your key before it generates the keystore.

deploy-a-maf-application-in-release-mode-android2

Go to JDeveloper.
From the Tools menu, select Preferences.
Expand Mobile Application Framework and select Android Platforms.
In the Signing Credentials section, click the Release tab.
Specify the properties and click OK.

deploy-a-maf-application-in-release-mode-android3

From the Application menu, select Application Properties.
Click Deployment, select Android1 (MAF for Android), and then click pencil icon to edit.

deploy-a-maf-application-in-release-mode-android4

Click Android Options and select Release for the Build Mode.

deploy-a-maf-application-in-release-mode-android5

To deploy the application, from the Application menu, select Deploy > Android1.

deploy-a-maf-application-in-release-mode-android6

Enjoy!

References:
Oracle MAF 2.0.1 Documentation
Building Mobile Applications with Oracle Mobile Application Framework

Tweet about this on TwitterShare on Facebook10Share on LinkedIn8Share on Google+0

Author: Waslley Souza

Consultor Oracle com foco em tecnologias Oracle Fusion Middleware e SOA. Certificado Oracle WebCenter Portal, Oracle ADF e Java.

Leave a Reply

Your email address will not be published. Required fields are marked *