Creating an ADF Mobile Application

Oracle ADF Mobile is the application development framework that enables you to create multi-featured applications for Apple iOS and Google Android-powered devices from a single source using the declarative development approach. The applications run natively on the mobile devices.

Download the sample application – – that use a currency convertor web service from to show the conversion rate between two currencies that we choose.

Create a new Mobile Application (ADF). Set the Application Name to CurrencyConvertorMobileApp and Application Package Prefix to, click on Finish.


Now, we have an application with two projects, ApplicationController that contain configuration files for describing the metadata of the ADF Mobile application, and ViewController that house the resources for the application features.


Go to Features section from adfmf-feature.xml and click on green plus icon to add a new feature. Set the Feature Name to CurrencyConvertor and click on OK.


Go to Content tab, click on green plus icon from File field and select Task Flow.
In the Create ADF Mobile Task Flow Dialog, click on OK.


Drag two View components from Component Palette and drop them inside Task Flow.
Name them as Form and Result.


Double-click on Form View, mark Header option and click on OK to create the page.


Select the outputText and set the Value property to Currency Convertor.
Add the code below to page.

<amx:panelFormLayout id="pfl1">
  <amx:selectOneChoice label="From Currency" id="soc1" value="#{pageFlowScope.fromCurrency}">
    <amx:selectItem id="si1" label="----" value=""/>
    <amx:selectItem id="si2" label="Brazilian Real" value="BRL"/>
    <amx:selectItem id="si3" label="U.S. Dolar" value="USD"/>
    <amx:selectItem id="si4" label="Euro" value="EUR"/>
  <amx:selectOneChoice label="To Currency" id="soc2" value="#{pageFlowScope.toCurrency}">
    <amx:selectItem id="si5" label="----" value=""/>
    <amx:selectItem id="si6" label="Brazilian Real" value="BRL"/>
    <amx:selectItem id="si7" label="U.S. Dolar" value="USD"/>
    <amx:selectItem id="si8" label="Euro" value="EUR"/>
<amx:commandButton text="Currency Convertor" id="cb2" action="goResult"/>


Go back to Task Flow, double-click on Result View, mark Header option and click on OK to create the page.


Select the outputText and set the Value property to Currency Convertor.
Add a component to comunicate with web service. Go to File | New | Business Tier | Data Controls, select Web Service Data Control (SOAP/REST) and click on OK. Set the Name to CurrencyConvertor and URL to, and click on Next.


Select the CurrencyConvertorSoap, and click on Finish.


Go to Data Controls palette and expand CurrencyConvertor data control.
Drag the Double – which represents the results from the web service – to the Panel Page from Structure palette and drop it as an ADF Mobile Output Text.


In the Edit Action Binding Dialog, set the value of FromCurrency to #{pageFlowScope.fromCurrency} and value of ToCurrency to #{pageFlowScope.toCurrency}.


Add a commandButton, set the Action property to __back and Text property to Back.
__back is a special function that allow to go back to the previously visited page.


Go to binding tab of Result page, create an invokeAction inside Executables section, and move it to the first place, to execute initially before any other executable.


Change the Refresh property to Always.


Save everything.
Let’s deploy and test the application!
From the Application menu in JDeveloper, select Deploy | Android1.


Select Deploy application to emulator and click on Finish.


In the Deployment tab of the Log window, make sure the deployment is finished.


In the emulator, navigate to the Applications page and open the CurrencyConvertorMobileApp application.


The emulator shows the Currency Convertor Form page.
Select Brazilian Real and Euro to get conversion rate from one currency to another currency, and click on Currency Convertor.


Click on Back button to go back to Form.


Oracle Fusion Middleware Mobile Developer’s Guide for Oracle Application Development Framework 11g Release 2 (