Friday Apr 11, 2014

ADF Mobile - In the Dojo!

The other day I heard someone say that Mobile Suite couldn’t do Dojo. This didn’t make sense to me since Dojo is a HTML5 technology and Mobile Suite supports HTML5 natively. So I thought I put together a small proof-of-concept project to show how easy it is to create a Dojo project in a local HTML page.

I began by creating a new ADF Mobile project in JDeveloper. Then I added a single Local HTML feature to the admf-features.xml file (in the View Controller/Application Sources/META-INF folder).

Adding the Local HTML featutre to the project

After that is defined, I open the dojoExample.html file that I created when I added the Local HTML feature and replace the default HTML with the following:

 <!DOCTYPE html>
<!--
	ADF Mobile Dojo tutorial | Part I
-->
<html>
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
	<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<title>Dojo ADF Mobile tutorial</title>
	<!-- application stylesheet will go here -->
	<!-- dynamically apply native visual theme according to the browser user agent -->
	<script type="text/freezescript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.9.2/dojox/mobile/deviceTheme.js"></script>
	<!-- dojo configuration options -->
	<script type="text/freezescript">
		dojoConfig = {
			async: true,
			parseOnLoad: false
		};
	</script>
        
	<!-- dojo bootstrap -->
	<script type="text/freezescript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.9.2/dojo/dojo.js"></script>
	<!-- dojo application code -->
	<script type="text/freezescript">
		require([
			"dojox/mobile/parser",
			"dojox/mobile/compat",
			"dojo/domReady!",
			"dojox/mobile/View",
			"dojox/mobile/Heading",
			"dojox/mobile/RoundRectList",
			"dojox/mobile/ListItem",
			"dojox/mobile/Switch"
		], function (parser) {
                    // now parse the page for widgets
                    parser.parse();
		});
	</script>
</head>
<body style="visibility:hidden;">
	<!-- the view or "page"; select it as the "home" screen -->
	<div id="settings" data-dojo-type="dojox/mobile/View" data-dojo-props="selected:true">
		<!-- a sample heading -->
		<h1 data-dojo-type="dojox/mobile/Heading">ADF Mobile Dojo!</h1>
		<!-- a rounded rectangle list container -->
		<ul data-dojo-type="dojox/mobile/RoundRectList">
			<!-- list item with an icon containing a switch -->
			<li data-dojo-type="dojox/mobile/ListItem" data-dojo-props="icon: 'images/ic-Airline-red48.png'">Airplane Mode
				<!-- the switch -->
				<div data-dojo-type="dojox/mobile/Switch"></div>
			</li>
			<!-- list item with an icon that slides this view away and then loads another page -->
			<li data-dojo-type="dojox/mobile/ListItem" data-dojo-props="icon: 'images/ic_wireless.png', rightText:'mac'">Wi-Fi</li>
			<!-- list item with an icon that slides to a view called "general" -->
			<li data-dojo-type="dojox/mobile/ListItem" data-dojo-props="icon: 'images/ic_crm.png', rightText:'AcmePhone'">Carrier</li>
		</ul>
	</div>
        </body>
</html>

Now compile and deploy to the emulator or device of your choice as usual. The result is exactly what you would expect:

The Dojo project in the iOS simulator

As you can see it is pretty straight-forward. In my next installment I'll be showing you how to call ADF Mobile interfaces from within the Dojo page.

Wednesday Mar 19, 2014

Re-Enabling USB Debugging in Android 4.3

Having trouble deploying to your Android device after the recent upgrade to Android 4.3? I have the answer for you![Read More]

Monday Feb 24, 2014

Why Use a Service Bus in Oracle Mobile Suite?

Recently, Oracle announced the new Mobile Suite product. Mobile Suite includes the ADF Mobile product for designing mobile applications that can run on both Android and iOS devices. Mobile Suite also includes the Oracle Service Bus (OSB), something that decidedly does not run on mobile devices. So naturally customers are asking me, “Why use Oracle Service Bus?”

The short answer is this: for mobile-enablement of the enterprise. There is more to mobile than just mobile devices. There must be support for emerging and future trends in mobile computing. The last thing anyone wants to do is to have to re-write their enterprise systems to support mobile technologies. Rewriting your existing systems to support mobile, cloud and future technologies is simply not practical.

[Read More]

Thursday Jan 30, 2014

New Enhancement Released for iOS7+Android Native Look & Feel and Xcode 5 Support

Hi, everyone:

It has been a while since a blog article was published last.  While the bloggers took a little time off during the holidays, the product development team has been hard at work to release a new ADF Mobile "Patch" (Patch 5) that adds some significant new functionality, in addition to numerous bug fixes.  You can find the release note for the new patch here.

To download, you would simply need to start JDeveloper 11.1.2.4, and select menu item Help->Check For Updates->Official Oracle Extension and Updates, and select ADF Mobile.  It should have version number 11.1.2.4.39.64.62.

For any customers who have received one off patch through the BLR process, please note that one-off patches obtained through the BLR process are not automatically rolled into this overall patch.  Therefore, please work with your Oracle Support representative to request a new BLR patch for this latest patch.

We will focus on two specific enhancements in this article:

  • New iOS7 and Android Native Look and Feel (mobileAlta Skin)
  • Xcode 5 support

mobileAlta Skin for Native iOS 7 and Android Look and Feel

With iOS7, Apple introduced a new look and feel that gives the iOS user interface a cleaner and more stream-lined look and feel  Gone are a lot of the three-dimensional and gradient effect in the user interface and icons, and replaced by simple and modern "skins" to complement the iOS device hardware.  With the latest ADF Mobile patch, we introduced a new mobileAlta skin that, when running on iOS devices, would closely match the standard look and feel of the iOS7 look and feel.

Here is what the HR application looks like with the old (mobileFusionFX) skin:

The updated skin on the iPhone now looks like:

As for Android, as many of you noticed, the look and feel of the ADF Mobile skin has always more resembled that of the iOS than Android.  Android did not introduce a more formal UI standard until Android 4.x, and is still evolving.  Nevertheless, it has evolved to a look and feel that's very distinctive from the iOS UI.  Many of you have reported this issue to us, and we listened.  When rendered on Android devices, mobileAlta skin would also introduce a more Android look and feel. 

Here is the new Android native look-and-feel:

How to Apply the New Look and Feel

To apply the new look and feel, you simply need to edit the adfmf-config.xml file, and change the skin family as follows:

<skin-family>mobileFusionFX</skin-family>

to 

<skin-family>mobileAlta</skin-family>

 That's it.  If you have over-written out of box ADF Mobile CSS styles or added your own CSS classes, please test the application thoroughly and ensure the new style is compatible with the customized classes.  Color, coordinates, and icon references may have changed, and thorough UI testing is needed to ensure there is no unexpected side-effects.


Xcode 5 support

With the latest patch, you will need to use Xcode5 to deploy the iOS version of the ADF Mobile application.  Only Xcode 5 is supported.  This complies with the latest Apple guideline due to take effect on February 1, 2014, where all apps submitted to the AppStore must be compiled with Xcode5 and optimized for iOS 7.

Update to the latest Xcode requires downloading and installing Xcode 5, and then configure the location of the Xcode 5 in JDeveloper - Tools - Preferences - ADF Mobile.  

While JDeveloper's integration with Xcode 5 did not change, Xcode 5 itself introduced a number of changes.  The most prominent change is around how Provisioning Profiles and Developer Accounts are managed.  Previously Provisioning Profiles and Developer Accounts are accessed and managed through the Organizer utility that's accessed through menu item Windows - Organizer.  Now it is managed through the Xcode Preferences dialog box accessed with menu item Xcode - Preferences, and then select the "Accounts" tab.  You will then see your Apple Developer account information displayed.  When you click on the "View Details..." button, you will then see the list of certificates and provisioning profiles assigned to you.  Therefore, when you need to verify the Provisioning Profiles, you will need to access this dialog box.  You can still double click on the .mobileprovision file to install the Provisioning Profiles, but must use this functionality to see it.

Please consult Apple documentation for details of how to use this new functionality.

There had been some blog article published that references the old "Organizer" functionality.  These blog articles would be updated over time.  

Thanks,

ADF Mobile Product Management Team 

Tuesday Sep 17, 2013

ADF Mobile @ Oracle OpenWorld 2013

Hi, everyone:

Oracle OpenWorld 2013 is shaping up to be the single most exciting event for anyone in the enterprise mobile application space, and ADF Mobile is literally the face and also at the core of Oracle's mobile application offerings.  If you are not able to come to the Oracle OpenWorld 2013, please do check on all blog, social media, and traditional media outlets for announcements around mobility.  However, if you are coming to Oracle OpenWorld, there are a number of "can't miss" sessions and demos. 

Please download this PDF document that lists all Oracle ADF Mobile related sessions and events.

Also, for a list of all mobile related sessions at Oracle OpenWorld, the starting point is this "Focused on Mobile" document.

Additionally, a number of Oracle Partners will also be present at the Mobile Enterprise Solutions Pavilion located in Moscone West Exhibit Area, Booth area 3347.  They are hardware providers, software partners, and systems integrators that have done a lot of work in leverage Oracle mobile technology.  Be sure to drop by and talk to them as well.

Lastly, I would like to invite you to attend the ADF Meetup, where you will meet ADF Mobile Product Managers and fellow developers.  It will take place Wednesday from 2-3 PM, in the OTN Lounge (Moscone South).  Hope to see you there!

Thanks, 

Joe Huang 

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