Getting Started with ADF Mobile Sample Apps

Getting Started with ADF Mobile Sample Apps
 

Installation Steps

  • Install JDeveloper 11.1.2.3.0 from Oracle Technology Network
  • After installing JDeveloper, go to Help menu and select "Check For Updates" and find the ADF Mobile extension and install this. It will require you restart JDeveloper
  • For iOS development, be on a Mac and have Xcode installed. (Currently only Xcode 4.4 is officially supported. Xcode 4.5 support is coming soon)
  • For Android development, have the Android SDK installed.
  • In the JDeveloper Tools menu, select "Preferences". In the Preferences dialog, select ADF Mobile. You can expand it to select configure your Platform preferences for things like the location of Xcode and the Android SDK.
  • In your /jdeveloper/jdev/extensions/oracle.adf.mobile/Samples folder you will find a PublicSamples.zip. Unzip this into the Samples folder so you have all the projects ready to go.
  • Open each of the sample application's .JWS file to open the corresponding workspace. Then from the "Application" menu, select "Deploy" and then select the deployment profile for the platform you wish to deploy to. Try deploying to the simulator/emulator on each platform first because it won't require signing. Note: If you wish to deploy to the Android emulator, it must be running before you start the deployment.

 
Sample Application Details
 
Recommended Order of Use Application Name Description
1 HelloWorld The "hello world" application for ADF Mobile, which demonstrates the basic structure of the framework. This basic application has a single application feature that is implemented with a local HTML file. Use this application to ascertain that the development environment is set up correctly to compile and deploy an application. See also Section 4.2.2, "What Happens When You Create an ADF Mobile Application."
2 CompGallery This application is meant to be a runtime application and not necessarily to review the code, though that is available. It serves as an introduction to the ADF Mobile AMX UI components by demonstrating all of these components. Using this application, you can change the attributes of these components at runtime and see the effects of those changes in real time without recompiling and redeploying the application after each change. See generally Chapter 8, "Creating ADF Mobile AMX User Interface."
3 LayoutDemo This application demonstrates the user interface layout and shows how to create the various list and button styles that are commonly used in mobile applications. It also demonstrates how to create the action sheet style of a popup component and how to use various chart and gauge components. See Section 8.3, "Creating and Using UI Components" and Section 8.5, "Providing Data Visualization."

Note: This application must be opened from the Samples directory or the Default springboard option must be cleared in the Applications page of the adfmf-application.xml overview editor, then selected again.

4 JavaDemo This application demonstrates how to bind the user interface to Java beans. It also demonstrates how to invoke EL bindings from the Java layer using the supplied utility classes. See also Section 8.10, "Using Event Listeners" and Section 9.2, "Understanding EL Support."
5 Navigation This application demonstrates the various navigation techniques in ADF Mobile, including bounded task flows and routers. It also demonstrates the various page transitions. See also Section 7.2, "Creating Task Flows."

Note: This application must be opened from the Samples directory or the Default springboard option must be cleared in the Applications page of the adfmf-application.xml overview editor, then selected again.

6 LifecycleEvents This application implements lifecycle event handlers on the ADF Mobile application itself and its embedded application features. This application shows you where to insert code to enable the applications to perform their own logic at certain points in the lifecycle. See also Section 5.6, "About Lifecycle Event Listeners."

Note: iOS, the LifecycleEvents sample application logs data to the Console application, located at Applications-Utilities-Console application.

7 DeviceDemo This application shows you how to use the DeviceFeatures data control to expose such device features as geolocation, e-mail, SMS, and contacts, as well as how to query the device for its properties. See also Section 9.5, "Using the DeviceFeatures Data Control."

Note: You must also run this application on an actual device because SMS and some of the device properties do not function on an iOS simulator or Android emulator.

8 GestureDemo This application demonstrates how gestures can be implemented and used in ADF Mobile applications. See also Section 8.4, "Enabling Gestures."
9 StockTracker This application demonstrates how data change events use Java to enable data changes to be reflected in the user interface. It also has a variety of layout use cases, gestures and basic mobile patterns. See also Section 9.7, "Data Change Events."
10 HR This human resources application is a CRUD application that demonstrates a variety of real-world application techniques. It uses a local SQLite database to store its data. The application persists the data between each startup and is based on the default HR schema that ships with all Oracle databases. See generally Chapter 11, "Using the Local Database." By providing layouts for both iPad and iPhone, this application demonstrates how different types of user interfaces can share the same data model. There are a variety of other patterns demonstrated in the application as well.
11 Skinning This application demonstrates how developers can skin their applications and add their own unique look and feel by either overriding the supplied style sheets or extending them with their own style sheets. This application also shows how skins control the styling of components based on the type of device. See also Section 5.11, "Skinning ADF Mobile Applications."
12 PrefDemo This application demonstrates application-wide and application feature-specific user setting pages. See generally Chapter 13, "Enabling User Preferences"
Comments:

I thought there was an HR sample app?

Posted by guest on October 25, 2012 at 04:54 PM PDT #

Can I use ADF mobile to develop Apps for the Windows 8 and Windows RT platforms?

Posted by Balakishnaraja on November 07, 2012 at 07:32 AM PST #

Oops... the HR application was missed in the table describing the sample apps. It *IS* part of the sample applications delivered in V1, it was just missed in the Blog article for some reason. It's been added in now!

Good catch, thanks!

Posted by Denis T on November 07, 2012 at 10:41 AM PST #

Currently ADF Mobile only supports iOS and Android development. We are considering Windows platforms in the future.

Posted by Denis T on November 07, 2012 at 10:47 AM PST #

Hi,

I am looking into Device Demo Application and deployed into my Android mobile.

I am using Picture page and i can able capture a picture.
how can i save this picture into remote database.

Could any one suggest me!!!

Amar

Posted by guest on November 28, 2012 at 06:59 AM PST #

Amar, once you get a hold of the data for this image on the java side, you would need to upload it to your server somehow. You would need to expose some kind of service (SOAP/REST) that would handle the upload of the image and store it into a database.

Once you get such a service created on the server, you can use either the Web Service Data Control wizard (for SOAP) or the URL Data control wizard (for REST XML) to upload your image. Then in your Java code you can invoke that web service programatically. Check out the latest blog posting on using Programatic web services as an example.

Posted by Denis T on November 28, 2012 at 11:22 PM PST #

I don't have a Mac, is there an emulator or VM that we can use?

Posted by guest on December 04, 2012 at 11:54 PM PST #

There is no emulator that we know of that you can use on non-Mac machines. A WM is a possibility but they are not officially supported.

Posted by guest on December 05, 2012 at 10:58 PM PST #

Hi All , I have an issue when I using PeopleSoft Webservice to develop a ADF Mobile Apps. My Soap request message contains additional values like id="o0" c:root . I am not sure why I am getting these addtional values ,when I try to invoke a method, at PeopleSoft integration broker level I can see the request message and it is going to error status , When I modify the request message and testing in IB Utilities of PeopleSoft it is working . But how to modify the request from ADF Mobile application project . Please help me on this

Posted by guest on December 15, 2012 at 06:30 PM PST #

Dear
do you have any sample for mobile Application that connect through Secure Soap to Server using private Certification.

Regards

Posted by MNassar on February 03, 2013 at 05:18 AM PST #

Can we integrate the 70 % android project developed by android package and a 30% ADF mobile project ...so that we get fully developed browser which can read applet project

Posted by guest on February 23, 2013 at 12:54 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blog is is dedicated to tips and tricks for developing, integrating, securing, and managing mobile applications using Oracle Mobile Platform. It is created and maintained by the Mobile Suite/Oracle ADF Mobile product development team.

Archive of past entries

Even More Mobile Development Blogs

Oracle A-Team Site - Mobile Related Entries

Code samples from the Community

Fusion Middleware Blogs

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today