MAF: Deploy in Release Mode (Android)

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


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.


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.


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


Click Android Options and select Release for the Build Mode.


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



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

Author: Waslley Souza

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