This blog is to share my experience in implementing a very common requirement - attach a photo by integrating with device camera or photo library and then passing the photo as Base64-encoded string.
Showing posts with label maf. Show all posts
Showing posts with label maf. Show all posts
Thursday, May 7, 2015
Oracle MAF : Upload an image from camera or library
Labels:
album,
attach,
attachment,
base64,
camera,
getPicture,
integrate with camera,
library,
maf,
photo
Friday, September 12, 2014
Oracle MAF : Creating Select One Choice from a webservice (REST with JSON output)
This post is to show how we can create a select one choice from a REST service with JSON output.
This example is using RESTServicesAdapter. Using that programmatically you can call a REST service and you can manipulate response as per need.
STEP 1: Create a REST Connection
---------------------------------------------
This example is using RESTServicesAdapter. Using that programmatically you can call a REST service and you can manipulate response as per need.
STEP 1: Create a REST Connection
---------------------------------------------
Labels:
ADF Mobile,
maf,
Oracle MAF,
restservicesadapter,
select one choice
Wednesday, September 3, 2014
Oracle MAF Skinning
I tried two ways of doing skinning in MAF -
1. skin-addition -> skin-addition tag adds a new stylesheet to the existing skin
2. skin -> skin tag is used to define a new skin or to customize existing skin for particular OS or device.
Note: maf-config.xml file under Application Resources -> Dscriptors -> ADF META-INF contains the default skin family. That skin family will be applied to the application.
1. skin-addition -> skin-addition tag adds a new stylesheet to the existing skin
2. skin -> skin tag is used to define a new skin or to customize existing skin for particular OS or device.
Note: maf-config.xml file under Application Resources -> Dscriptors -> ADF META-INF contains the default skin family. That skin family will be applied to the application.
1. <skin-addition>
Labels:
ADF Mobile,
maf,
Oracle MAF,
skin,
skin-addition,
skinning
Tuesday, August 26, 2014
Oracle MAF - Disabling Landscape mode
Recently I had a requirement for disabling landscape orientation.
Frank and Chris suggested me below and it worked for me:
iOS
--------
For iOS on the deployment profile.
Select Application --> Application Properties --> Deployment --> select iOS profile and and click on edit. Select device orientations. And there you will find option for enabling/disabling portrait/landscape modes for iPhone and iPad.
Frank and Chris suggested me below and it worked for me:
iOS
--------
For iOS on the deployment profile.
Select Application --> Application Properties --> Deployment --> select iOS profile and and click on edit. Select device orientations. And there you will find option for enabling/disabling portrait/landscape modes for iPhone and iPad.
Labels:
ADF Mobile,
disabling landscape,
landscape,
maf,
Oracle MAF,
orientation,
portrait
Saturday, August 23, 2014
Oracle MAF - Using Panel Group Layout - wrap
In Oracle MAF one new option has been provided for the attribute "layout" of panelGroupLayout. It is very useful. I will give you a scenario: you want to create a contact us section where by you will want the text, followed by phone numbers(which should be clickable and should open phone dial on clicking) and email(clicking on which a write message of your default mail should open).
For such scenario you can use panel group layout with layout property set to wrap and inside it you can use output text and golinks to serve the purpose.
For such scenario you can use panel group layout with layout property set to wrap and inside it you can use output text and golinks to serve the purpose.
Labels:
ADF Mobile,
maf,
mailto,
mailto:,
Oracle MAF,
panelgrouplayout,
panelgrouplayout wrap,
tel,
tel:,
wrap
Friday, August 22, 2014
Oracle MAF - Issues, Tips and Tricks
Hi All,
I have built a mobile application using Mobile Application Framework released in July 2014.
In the mobile app I have done integration using REST services with JSON output. And the user will fill some forms and will send attachments from camera and library. The user can see history and I have used a pie chart as well for historical data.
Here is some of the issues, tricks which I learnt and I am sharing the same:
*********************************************************************************
1.
[11:29:47 AM] Checking state of Android Debug Bridge server...
[11:29:47 AM] Android Debug Bridge server already running.
[11:29:55 AM] Command-line executed: ["C:\Program Files\Android\android-sdk\platform-tools\adb", start-server]
[11:29:55 AM] ADB server didn't ACK
[11:29:55 AM] * failed to start daemon *
[11:29:55 AM] * daemon not running. starting it now on port 5037 *
[11:29:55 AM] Command-line execution failed (Return code: -1)
[11:29:55 AM] Deployment cancelled.
Solution:
Go to platform-tools and kill adb server, it might be running because you would have done some debugging.
cd C:\Program Files\Android\android-sdk\platform-tools
adb kill-server
I have built a mobile application using Mobile Application Framework released in July 2014.
In the mobile app I have done integration using REST services with JSON output. And the user will fill some forms and will send attachments from camera and library. The user can see history and I have used a pie chart as well for historical data.
Here is some of the issues, tricks which I learnt and I am sharing the same:
*********************************************************************************
ISSUES, TIPS & TRICKS:
*********************************************************************************1.
[11:29:47 AM] Checking state of Android Debug Bridge server...
[11:29:47 AM] Android Debug Bridge server already running.
[11:29:55 AM] Command-line executed: ["C:\Program Files\Android\android-sdk\platform-tools\adb", start-server]
[11:29:55 AM] ADB server didn't ACK
[11:29:55 AM] * failed to start daemon *
[11:29:55 AM] * daemon not running. starting it now on port 5037 *
[11:29:55 AM] Command-line execution failed (Return code: -1)
[11:29:55 AM] Deployment cancelled.
Solution:
Go to platform-tools and kill adb server, it might be running because you would have done some debugging.
cd C:\Program Files\Android\android-sdk\platform-tools
adb kill-server
Subscribe to:
Posts (Atom)
