ADF Mobile - getPicture function in iOS

Hello Everyone,
We are using getPicture method in ADF Mobile to take photos in our application. Problem is that the function is returning a tmp path in iOS and the photos are deleted once the application is closed. How can we store the photos permanently? Do we need to copy and save them somewhere else once they are stored or is there a better way to do it?
Any suggestion would be helpful.
Thanks

Hi,
this thread on StackOverflow explains this to be a limitation with Phonegap / Cordova get Picture() , which is used internally by ADF Mobile.
http://stackoverflow.com/questions/8514560/ios-phonegap-camera-cant-save-image-to-photo-library
The work around according to this thread is to use caprureImage from JavaScript
navigator.device.capture.captureImage(onSuccess,
  onFail,
  limit: 1
Unfortunately this seems to require plugin support,which in ADF Mobile will be added to the next release
Maybe, as an alternative,  try and read the image in from the temp directory and try to explicitly write it somewhere else. The code is in this chapter for a remote file access and view
http://docs.oracle.com/cd/E37975_01/doc.111240/e24475/amxbinding.htm#CHDFDBJG
Frank
Message was edited by: FrankNimphius

Similar Messages

  • ADF Mobile Error when deploying iOS

    Hi all, i received this error when to try to distribute to iOS package
    1. ive created the appid net.pakcikkantin.*
    [10:55:45 AM] error: /usr/bin/codesign force preserve-metadata=identifier,entitlements,resource-rules sign iPhone Developer: aaaaaaa (EP9NMMA3DE) resource-rules=/var/folders/hy/6b__npdd11qggj__5_zjjwkw0000gn/T/tRtHgIsMja/Payload/TestiPhone.app/ResourceRules.plist /var/folders/hy/6b__npdd11qggj__5_zjjwkw0000gn/T/tRtHgIsMja/Payload/TestiPhone.app failed with error 1. Output: /var/folders/hy/6b__npdd11qggj__5_zjjwkw0000gn/T/tRtHgIsMja/Payload/TestiPhone.app: replacing existing signature
    [10:55:45 AM] Program /usr/bin/codesign returned 1 : [/var/folders/hy/6b__npdd11qggj__5_zjjwkw0000gn/T/tRtHgIsMja/Payload/TestiPhone.app: replacing existing signature
    [10:55:45 AM] Command-line execution failed (Return code: 1)
    [10:55:45 AM] Deployment cancelled.
    [10:55:45 AM] ---- Deployment incomplete ----.
    [10:55:45 AM] Failed to package the XCode application.
    [10:55:45 AM] Failed to build the iOS application bundle.
    [10:55:45 AM] Deployment failed due to one or more errors returned by '/usr/bin/xcrun'. The following is a summary of the returned error(s):
    Command-line execution failed (Return code: 1)
    error: /usr/bin/codesign force preserve-metadata=identifier,entitlements,resource-rules sign iPhone Developer: aaaaaaa (EP9NMMA3DE) resource-rules=/var/folders/hy/6b__npdd11qggj__5_zjjwkw0000gn/T/tRtHgIsMja/Payload/TestiPhone.app/ResourceRules.plist /var/folders/hy/6b__npdd11qggj__5_zjjwkw0000gn/T/tRtHgIsMja/Payload/TestiPhone.app failed with error 1. Output: /var/folders/hy/6b__npdd11qggj__5_zjjwkw0000gn/T/tRtHgIsMja/Payload/TestiPhone.app: replacing existing signature
    Program /usr/bin/codesign returned 1 : [/var/folders/hy/6b__npdd11qggj__5_zjjwkw0000gn/T/tRtHgIsMja/Payload/TestiPhone.app: replacing existing signature
    Thank you very much for the replies

    it looks like it's an Xcode setting problem
    https://blogs.oracle.com/mobile/entry/workaround_for_an_xcode_ios
    susan

  • ADF Mobile: Data synchronization

    Hi,
    I'm currently investigating some ADF Mobile related things for a client.
    One of these this is the synchronization of data. Since ADF Mobile (currently) doesn't support something ootb I'm checking my options here.
    What would you guys suggest (maybe an other suggestion)?
    Performance and reliability are important of course.
    Thanks in advance!

    Shay Shmeltzer wrote:
    For offline access you'll want to use the local SQLite DB.
    For synchronization you need decide if you just need a DB to DB synch and then you might be able to use Oracle Database Mobile Server 11g:
    http://www.oracle.com/technetwork/products/database-mobile-server/overview/index.html
    Thanks for your reply, I will take a look at the Oracle Database Mobile Server.
    Edit:
    After reading trough the documentation of Oracle Database Mobile Server (and googling) I found out that there is no support for iOS devices.
    Since we are using ADF Mobile for Android and iOS, we are looking for something that works on both devices.
    Any suggestion?

  • ADF Mobile: Unable to deploy to iphone simulator

    I am trying to deploy an app to ios simulator on OSX 10.8.2 and see following error
    NoClassDefFoundError in o.adfmf.framework.dt.deploy.features.deployers.FeatureArchiveDeployer:282
    overall trace is:
    [11:22:22 PM] ---- Deployment started. ----
    [11:22:22 PM] Target platform is (iOS).
    [11:22:22 PM] Beginning deployment of ADF Mobile application 'CRMSalesApp' to iOS using profile 'CRMSalesAppDeployIOS'.
    [11:22:22 PM] Command-line executed: [Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild, -version]
    [11:22:22 PM] Command-line execution succeeded.
    [11:22:22 PM] Running dependency analysis...
    [11:22:22 PM] Building...
    [11:22:22 PM] Deploying 3 profiles...
    [11:22:22 PM] ---- Deployment incomplete ----.
    so no other error.
    Please note that the same app deploys fine on the android device.

    i tried to restart jdev and redeploy and this time a popup came up as
    Uncaught exception
    java.lang.NoClassDefFoundError: oracle/adf/model/adapter/rest/RestURLDCDefinition
    o.adfmf.framework.dt.deploy.features.deployers.FeatureArchiveDeployer._getWebServiceDataControls(FeatureArchiveDeployer.java:282)
    o.adfmf.framework.dt.deploy.features.deployers.FeatureArchiveDeployer.deployImpl(FeatureArchiveDeployer.java:132)
    o.j.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:145)
    o.adfmf.framework.dt.deploy.common.deployers.AbstractDeployerWrapper.deploy(AbstractDeployerWrapper.java:201)
    o.ji.deploy.fwk.DeploymentManager.deployImpl(DeploymentManager.java:481)
    o.ji.deploy.fwk.DeploymentManager.deploy(DeploymentManager.java:408)
    o.j.deploy.DeploymentManager.deploy(DeploymentManager.java:270)
    o.ji.deploy.common.ModulePackagerImpl.deployProfiles(ModulePackagerImpl.java:84)
    o.j.deploy.common.ModulePackager.deployProfiles(ModulePackager.java:64)
    o.j.deploy.common.ModulePackager.deployImpl(ModulePackager.java:53)
    o.j.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:145)
    o.adfmf.framework.dt.deploy.common.deployers.AbstractDeployerWrapper.deploy(AbstractDeployerWrapper.java:201)
    o.j.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
    o.j.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:145)
    o.j.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
    o.j.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:145)
    o.j.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
    o.j.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:145)
    o.ji.deploy.fwk.TopLevelDeployer.deployImpl(TopLevelDeployer.java:54)
    o.j.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:145)
    o.ji.deploy.fwk.DeploymentManager.deployImpl(DeploymentManager.java:481)
    o.ji.deploy.fwk.DeploymentManager.deploy(DeploymentManager.java:408)
    o.j.deploy.DeploymentManager.deploy(DeploymentManager.java:270)
    o.j.deploy.cmd.DeployCommand.deploy(DeployCommand.java:375)
    o.j.deploy.cmd.DeployCommand$DeploymentProgressShellAdapter$1.deploy(DeployCommand.java:504)
    o.ji.deploy.fwk.RunnableImpl.run(RunnableImpl.java:372)
    j.lang.Thread.run(Thread.java:680)
    Caused by:
    java.lang.ClassNotFoundException: oracle.adf.model.adapter.rest.RestURLDCDefinition
    org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
    org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    j.lang.ClassLoader.loadClass(ClassLoader.java:247)
    o.adfmf.framework.dt.deploy.features.deployers.FeatureArchiveDeployer._getWebServiceDataControls(FeatureArchiveDeployer.java:282)
    o.adfmf.framework.dt.deploy.features.deployers.FeatureArchiveDeployer.deployImpl(FeatureArchiveDeployer.java:132)
    o.j.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:145)
    o.adfmf.framework.dt.deploy.common.deployers.AbstractDeployerWrapper.deploy(AbstractDeployerWrapper.java:201)
    o.ji.deploy.fwk.DeploymentManager.deployImpl(DeploymentManager.java:481)
    o.ji.deploy.fwk.DeploymentManager.deploy(DeploymentManager.java:408)
    o.j.deploy.DeploymentManager.deploy(DeploymentManager.java:270)
    o.ji.deploy.common.ModulePackagerImpl.deployProfiles(ModulePackagerImpl.java:84)
    o.j.deploy.common.ModulePackager.deployProfiles(ModulePackager.java:64)
    o.j.deploy.common.ModulePackager.deployImpl(ModulePackager.java:53)
    o.j.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:145)
    o.adfmf.framework.dt.deploy.common.deployers.AbstractDeployerWrapper.deploy(AbstractDeployerWrapper.java:201)
    o.j.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
    o.j.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:145)
    o.j.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
    o.j.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:145)
    o.j.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
    o.j.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:145)
    o.ji.deploy.fwk.TopLevelDeployer.deployImpl(TopLevelDeployer.java:54)
    o.j.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:145)
    o.ji.deploy.fwk.DeploymentManager.deployImpl(DeploymentManager.java:481)
    o.ji.deploy.fwk.DeploymentManager.deploy(DeploymentManager.java:408)
    o.j.deploy.DeploymentManager.deploy(DeploymentManager.java:270)
    o.j.deploy.cmd.DeployCommand.deploy(DeployCommand.java:375)
    o.j.deploy.cmd.DeployCommand$DeploymentProgressShellAdapter$1.deploy(DeployCommand.java:504)
    o.ji.deploy.fwk.RunnableImpl.run(RunnableImpl.java:372)
    j.lang.Thread.run(Thread.java:680)

  • ADF Mobile: Code Signing Error Workaround

    Hi, everyone:
    If you are doing ADF Mobile development, and you need to deploy the application to an iOS device, you would need to compile/deploy the app with iOS App Certificates and Provisioning Profile. This means you would need to "Deploy to Package" or "Deploy to iTunes" during deployment, and configure JDeveloper with the proper certificates/profiles. In some instances (exact combination is still not clear), deploy and signing the application to generate the ipa file may fail with similar error message at the end of the deployment log:
    [01:04:45 PM] Deployment failed due to one or more errors returned by '/usr/bin/xcrun'. The following is a summary of the returned error(s): Command-line execution failed (Return code: 1) error: /usr/bin/codesign force preserve-metadata=identifier,entitlements,resource-rules sign iPhone Distribution: Oracle Corporation resource-rules=/var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/Payload/HelloWorld.app/ResourceRules.plist --entitlements /var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/entitlements_plistEINPBkIG /var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/Payload/HelloWorld.app failed with error 1. Output: /var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/Payload/HelloWorld.app: replacing existing signature Program /usr/bin/codesign returned 1 : [/var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/Payload/HelloWorld.app: replacing existing signature 
    This issue is a known issue and is not related to ADF Mobile. The workaround is discussed in this article:
    http://stackoverflow.com/questions/7425840/that-codesign-returned-1-object-ifile-format-invalid-or-unsuitable-problem-aga
    This article refers to the old location of Xcode, so you would need to adjust the paths accordingly. The path for Xcode 4.3 and above would be like:
    /Applications/Xcode.app/Contents//Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication to this script file.
    To modify it, you probably can’t use TextEdit. I end up opening a terminal session, changed the file permission, and used vi to update it.
    This fixed the issue I was having.
    Hope this is helpful - please drop a reply if you encountered the same issue.
    Thanks,
    Joe Huang

    I ran the entire code and the output is:
    [02:40:18 PM] Updating iOS profile dependencies with FAR profiles created from application projects...
    [02:40:18 PM] ---- Deployment started. ----
    [02:40:18 PM] Target platform is (iOS).
    [02:40:18 PM] Beginning deployment of ADF Mobile application 'Application1' to iOS using profile 'IOS_MOBILE_Application1'.
    [02:40:18 PM] Command-line executed: [Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/xcodebuild, -version]
    [02:40:18 PM] Command-line execution succeeded.
    [02:40:18 PM] Running dependency analysis...
    [02:40:18 PM] Building...
    [02:40:18 PM] Deploying 3 profiles...
    [02:40:18 PM] Wrote Archive Module to /java/development/JDev11gBuild6276.1Sandpit/Application1/ApplicationController/deploy/ApplicationController.jar
    [02:40:18 PM] WARNING: No Resource Catalog enabled ADF components found to package
    [02:40:18 PM] Wrote Archive Module to /java/development/JDev11gBuild6276.1Sandpit/Application1/ViewController/deploy/ViewController.jar
    [02:40:18 PM] Verifying Application Controller project exists...
    [02:40:18 PM] Verifying application dependencies...
    [02:40:18 PM] Validating application XML files...
    [02:40:18 PM] Validating XML files in project ApplicationController...
    [02:40:18 PM] Validating XML files in project ViewController...
    [02:40:18 PM] Copying common javascript files...
    [02:40:21 PM] Copying FARs to the ADF Mobile Framework application...
    [02:40:21 PM] Copying FAR from source: ViewController...
    [02:40:21 PM] Copying FAR from source: ApplicationController...
    [02:40:21 PM] Deploying skinning files...
    [02:40:21 PM] Copying the CVM SDK files built for the ARM processor...
    [02:40:21 PM] Copying the CVM JDK files built for the ARM processor...
    [02:40:21 PM] Command-line executed: [cp, -R, -p, /java/jdeveloper/JDev11gBuild6276.1/jdeveloper/jdev/extensions/oracle.adf.mobile/iOS/jvmti/arm/, /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/temporary_xcode_project/lib]
    [02:40:21 PM] Command-line execution succeeded.
    [02:40:21 PM] Command-line executed: [cp, -R, -p, /java/jdeveloper/JDev11gBuild6276.1/jdeveloper/jdev/extensions/oracle.adf.mobile/iOS/jvmti/jar/, /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/temporary_xcode_project/lib]
    [02:40:21 PM] Command-line execution succeeded.
    [02:40:21 PM] Copying security related files to the ADF Mobile Framework application...
    [02:40:22 PM] Command-line executed from path: /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/temporary_xcode_project/
    [02:40:22 PM] Command-line executed: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/xcodebuild clean install -configuration Debug -sdk iphoneos DSTROOT=/java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/Destination_Root/ ARCHS=armv7 VALID_ARCHS=armv7 ONLY_ACTIVE_ARCHS=NO CODE_SIGN_IDENTITY=iPhone Developer: Eddie V Phan (QV69QS58FK) IPHONEOS_DEPLOYMENT_TARGET=5.0 TARGETED_DEVICE_FAMILY=1,2 PRODUCT_NAME=Application1 ADD_SETTINGS_BUNDLE=NO
    [02:40:30 PM] ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in CVMmemoryBarrier from Frameworks/OracleCVM.sdk/libcvmadf_arm_debug.a(atomic_arm.o). To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie
    [02:40:30 PM] Command-line execution succeeded.
    [02:40:30 PM] Command-line executed from path: /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/Destination_Root/Oracle_ADFmc_Container_Application/device/
    [02:40:30 PM] Command-line executed: /usr/bin/xcrun -sdk iphoneos PackageApplication -v /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/Destination_Root/Applications/Application1.app -o /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/Destination_Root/Oracle_ADFmc_Container_Application/device/Application1.ipa sign iPhone Developer: Eddie V Phan (QV69QS58FK) embed /developement/iOS_Provisioning_Profile/devTest.mobileprovision
    [02:40:31 PM] error: /usr/bin/codesign force preserve-metadata=identifier,entitlements,resource-rules sign iPhone Developer: Eddie V Phan (QV69QS58FK) resource-rules=/var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app/ResourceRules.plist /var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app failed with error 1. Output: /var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app: replacing existing signature
    [02:40:31 PM] Program /usr/bin/codesign returned 1 : [/var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app: replacing existing signature
    [02:40:31 PM] Command-line execution failed (Return code: 1)
    [02:40:31 PM] Deployment cancelled.
    [02:40:31 PM] ---- Deployment incomplete ----.
    [02:40:31 PM] Failed to package the XCode application.
    [02:40:31 PM] Failed to build the iOS application bundle.
    [02:40:31 PM] Deployment failed due to one or more errors returned by '/usr/bin/xcrun'. The following is a summary of the returned error(s):
    Command-line execution failed (Return code: 1)
    error: /usr/bin/codesign force preserve-metadata=identifier,entitlements,resource-rules sign iPhone Developer: Eddie V Phan (QV69QS58FK) resource-rules=/var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app/ResourceRules.plist /var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app failed with error 1. Output: /var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app: replacing existing signature
    Program /usr/bin/codesign returned 1 : [/var/folders/zm/pnmpplxs2rb7_n29ltfkvpzc0000gn/T/YPzy7_Hf6L/Payload/Application1.app: replacing existing signature
    What do you mean by "the "-sign" parameter values look dubious (besides your name :-P), how can it interpret those spaces?"
    The sign parameter that i'm using is from the KeyChain app, so i'm assuming in the preferences where it asks for the Certificate, that its asking for the certificate name in KeyChain? When trying to escape the spaces in the Preferences menu, it complains that the certificate names do not match.. Or am i meant to be using another parameter here..?
    [02:34:07 PM] Command-line executed from path: /java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/temporary_xcode_project/
    [02:34:07 PM] Command-line executed: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/xcodebuild clean install -configuration Debug -sdk iphoneos DSTROOT=/java/development/JDev11gBuild6276.1Sandpit/Application1/deploy/IOS_MOBILE_Application1/Destination_Root/ ARCHS=armv7 VALID_ARCHS=armv7 ONLY_ACTIVE_ARCHS=NO CODE_SIGN_IDENTITY=iPhone\ Developer:\ Eddie\ V\ Phan\ \(QV69QS58FK\) IPHONEOS_DEPLOYMENT_TARGET=5.0 TARGETED_DEVICE_FAMILY=1,2 PRODUCT_NAME=Application1 ADD_SETTINGS_BUNDLE=NO
    [02:34:09 PM] [BEROR]Code Sign error: The identity 'iPhone\ Developer:\ Eddie\ V\ Phan\ \(QV69QS58FK\)' doesn't match any valid, non-expired certificate/private key pair in your keychains
    [02:34:09 PM] Code Sign error: The identity 'iPhone\ Developer:\ Eddie\ V\ Phan\ \(QV69QS58FK\)' doesn't match any valid, non-expired certificate/private key pair in your keychains
    [02:34:09 PM] Command-line execution failed (Return code: 65)
    [02:34:09 PM] Deployment cancelled.
    [02:34:09 PM] ---- Deployment incomplete ----.
    [02:34:09 PM] Failed to build the iOS application bundle.
    [02:34:09 PM] Deployment failed due to one or more errors returned by '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/xcodebuild'. The following is a summary of the returned error(s):
    Command-line execution failed (Return code: 65)
    [BEROR]Code Sign error: The identity 'iPhone\ Developer:\ Eddie\ V\ Phan\ \(QV69QS58FK\)' doesn't match any valid, non-expired certificate/private key pair in your keychains
    Code Sign error: The identity 'iPhone\ Developer:\ Eddie\ V\ Phan\ \(QV69QS58FK\)' doesn't match any valid, non-expired certificate/private key pair in your keychains

  • 研讨会- 通過Oracle ADF Mobile和IDM 创建和保护移动应用 (上海.成都)

    在本次研讨会中,我们将通过一个分步课程来演示如何使用 Oracle ADF Mobile 和 JDeveloper 创建移动应用,您只需具备 Java 和 Web 开发技能。您可以在 iOS 和 Android 移动平台上部署相同的应用。我们还将讨论如何将 Oracle 企业应用和融合中间件扩展到移动设备上,从而使客户能充分实现他们在Oracle 技术上的投资。我们还将简要介绍使用 Oracle Mobile Identity Management SDK 保护移动应用是如何简单,无论是浏览器还是基于本机的应用。
    上海: http://www.itcgb.com/MKTSVCApp/Oracle_ADF_Mobile/index.html
    成都: http://www.itcgb.com/MKTSVCApp/Oracle_ADF_Mobile_CD/index.html

  • ADF-Mobile app will not rotate in iOS simulator or device

    We have been coding an ADF-Mobile app in JDeveloper and testing on both a Motorola tablet and an iPad.
    Both our application, as well as the demo "Deployment Successful" (found here: http://docs.oracle.com/cd/E18941_01/tutorials/MobileTutorial/jdtut_11r2_54_1.html) application rotate fine from portrait to landscape and back on the Motorola device, however, the same code will not rotate on an iPad.
    I understand that the device orientation functionality is controlled in the deployment profile. I have been successful with forcing my app to launch in landscape mode OR portrait mode (By deselecting both portrait settings or both landscape settings, respectively in my deployment profile) however, when I leave all 4 enabled, my app seems to be locked in right-side-up portrait mode (It will not even rotate between portrait modes)
    Has anyone experienced this issue with iOS devices and the rotation functionality, and if so, is there a workaround?
    Any help is appreciated
    Gord Taylor

    Hi,
    There is a known issue when you use Xcode 4.5 and iOS SDK 6 to compile your app - the app would not rotate correctly. If you use Xcode 4.4.1 and the associated SDK, then rotation will work fine on both iOS 5 and 6 devices.
    Xcode 4.5 certification should be coming soon - for now please try to use 4.4.
    If you are already using 4.4, please let me know and perhaps there are configuration issues.
    Thanks,
    Joe Huang

  • ADF Mobile - Debugging iOS through XCODE Pkg

    I downloaded Frank's example on the image upload. I deployed the webservice to my standalone WLS.
    I migrated the mobile app (PhotoBox) to 11.1.2.4 and made the necessary migration changes per the document.
    I deployed the app to a distribution package and opened up the xcode project in Xcode 4.6.2. I added -consoleRedirect=FALSE to my debug scheme and it dumps a lot of output to the console when I run it on my device.
    The issue with this is I am trying to invoke the UPLOAD process on the Image Upload screen on the device. It doesn't error out ... it acts as if it's uploading the image, but doesn't do anything. It just stays on the Image Upload screen.
    The output in my Xcode console doesn't display any error messages as well. It says "Cordova Response Success" after alot of other callbacks.
    Any suggestions on what else I can do to debug this issue?

    Vik2 wrote:
    I know i can deploy the same app to iOS by creating a deployment profile. However, I am little confused on this based on tutorials.
    So, the question is can i develop a ADF Mobile app on a windows machine and keep testing it on a android device and once satisfied can just create a deployment profile and deploy to iOS ?
    what could be the possible issues?
    how much it is important to test it on an actual iOS device during development ?
    Also does iOS emulator work on windows machine as i am seeing in tutorial to use a mac and install xCode.You can't test/deploy iOS apps on a Windows. You will need a Mac with XCode.
    In general, the apps you develop will run very smooth on iOS (better then Android). So you could asume everything works fine in iOS.
    However, you should test it to be sure. Since there are some minor differences between iOS and Android.

  • ADF Mobile selectManyCheckbox ios behavior

    Hello,
    I'm using Jdev 11.1.2.4.39.64.36 and developing a mobile app using ADF Mobile. I'm deploying to Iphone (4 and 5) and Samsung Galaxy S3 (Android 4.1.2).
    Use case: i have a list with many items and i have to scroll and select one or many items within selectManyCheckbox component
    It seems that the selectManyCheckbox is not working properly on IOS devices.
    When i scroll on the Iphone the item gets checked just by scrolling the page. The normal behavior would be scrolling the page first (the item remains unchecked) and then click the item wich i'm looking for (the item gets marked/checked).
    I have tested with the CompGallery Sample provided with JDeveloper.
    In this demo there´s a Text & Select page and selectManyCheckbox component.
    I've included something like 20 items just to be possible to scroll the page. On my android device worked nicely! On my Iphone i got that behavior described above.
    Any help?
    Thanks

    Hi Vik,
    If you have the webservice WSDL, you can use SOAP UI, create a Mock Service and use that one for testing.
    Soap UI has a feature to create a mock service. Basically a stub web service, based upon a WSDL.
    In this mock service, you can define the response that is sent back upon a request, so you can test your application with 'live' data.
    With this mock service, you can create a data control based on the web service in JDeveloper and use this one for testing.
    Regards Luc

  • ADF Mobile : iOS Developer Certificate and Provisioning profile for Team

    Hi,
    We are starting to build Mobile apps using ADF Mobile. In order to deploy on to iOS devices, Developer Certificates are a mandate. When you go to developer.apple.com, there is a option to Buy Individually or For a company. Query is how should one go about buying the Developer certificates, since we would be working as a team, would it be better to buy as a Company or Individual Certificates? Also if some one can share the implications of the individual versus company certificates/provisioning profile, much appreciated.
    Regards
    Naveen

    Hi,
    At a high level, as an individual (annual fee is $99 USD) allows you to deploy to developer devices (i.e. register the device in Apple Developer portal), and distribute through the app store (only).
    As an enterprise (annual fee is $299) development program, you canalso deploy to developer devices that are registered, as well as distribute the app directly to any device within your company. Technically you can deploy an app compiled with Enterprise Certificate to any device, but Apple SDK terms specify that it can only be deployed to company internal devices.
    Thanks,
    Joe Huang

  • How to call java function with parameter from javascript in adf mobile?

    how to call java function with parameter from javascript in adf mobile?

    The ADF Mobile Container Utilities API may be used from JavaScript or Java.
    Application Container APIs - 11g Release 2 (11.1.2.4.0)

  • Regular Expression and jUnit in ADF Mobile

    Hi Guys,
    I tried to implement Regular Expression in ADF Mobile, but in my jUnit that I was configured to unit test purpose in my application.
    Shown error below inside jUnit plane.
    java.lang.NoClassDefFoundError: oracle/adfmf/util/regex/Pattern
    How to solve this issue for jUnit ?

    I'll start by answering your Q2 - while in theory you can use the same application for both accessing from a browser on a pc and on a phone - in reality the user experience on the phone is not going to be good because of the limitation of the screen size. Users will need to constantly zoom-in scroll around etc. This is why many people who target application for smart phones prefer to build a separate UI for the mobile device.
    Now question 4 which relates to 1 - We haven't tested the ADF Faces components on the browser of blackberry and so there is a chance that some of their functionality won't work there. We did test and certify the ADF Faces components with the safari mobile browser (iOS) - so this is why you see them work there better.
    This is why we recommend that if you are targeting a blackberry (and other mobile devices) you'll use the Trinidad set of components and in general ADF Mobile Browser project type.
    (see example here: https://blogs.oracle.com/shay/entry/building_iphone_interfaces_for_oracle ). This also means that you'll have the check box checked for mobile device when you create a JSF page.
    For question 3 - when the next ADF Mobile solution will be released you'll be able to create applications that install on the device itself.

  • How to get imei number and mac address of mobile device on adf mobile

    Hi experts,
    I need to get imei number and mac address of device (supposed to be works on both android and iphone) on adf mobile
    bgrds

    Hi,
    Adf mobile support phonegap api. Version must be 2.0(you can check it by below code snippet) You can just reach uuid from both platform via cordova. Espescially, IOS restriction limits you to get device infos that you mentioned, but you can get uuid.
       getCordovaVersion = function ()
            var cordovaVersion = device.cordova;
            return cordovaVersion;
        getDeviceUUID = function ()
            var uuid = device.uuid;
            return uuid;

  • ADF Mobile: Apple App Store: Encryption Registration Number for Sqlite

    When submitting apps to Apple App Store, you have to declare whether or not your app uses encryption. This is for export compliance reasons. If you answer Yes, you need to provide an Encryption Registration Number (ERN). I assume that since the Sqlite DB in ADF Mobile is encrypted, I need to answer Yes. I've gotten a lot of differing opinions on this, but I'm looking for a definitive answer from either Apple or Oracle. Has anyone been through this already?
    Thanks

    Hi, Mike, here is our response on this question. First thank you for your inquiry around Apple AppStore’s Encryption Export question. The exact question from Apple’s iTunesConnect portal is “Have you added or made changes to encryption features since you last uploaded a binary for this product?”. While we will do our best to suggest an answer based on our understanding of the situation, ultimately any answer that relates to an Apple process or website needs to come from Apple.
    Our understanding of the question is that it pertains to the functionality or features of the application you developed using Oracle ADF Mobile and Apple iOS SDK, not to the capabilities of the development tools nor the framework. Furthermore, the question focus on changes between previous (there may be none) and current version of the application. Therefore, for the following scenarios:
    •     V1– no encrypted database nor secured SSL communication to the backend services.
    o     Based on our understanding of the question, the answer would be “No” as you have not added any encryption feature.
    •     V2 – adds encrypted local database and/or secured SSL communication to backend service
    o     Based on our understanding, the answer would be “Yes” as there are changes in the encryption features
    •     V3 – same database encryption and SSL communication as v2.
    o     Based on our understanding, the answer would be “No” as there is no change in the encryption features between v2 and v3.
    Hope this helps, and please let me know if you have any questions.
    Thanks,
    Joe Huang

  • ADF Mobile - XML Parsing

    Previously I posted on calling a remote webservice - Calling remote service using ADF Mobile and I get my weather application working already.
    The webservice returned me a string which is a XML form. I want to parse the XML to make it easy-read.
    The currently output from the webservice (http://www.webservicex.com/globalweather.asmx) is as below.
    *<string><NewDataSet>*
    *<Table>*
    *<Country>Singapore</Country>*
    *<City>Singapore / Paya Lebar</City>*
    *</Table>*
    *<Table>*
    *<Country>Singapore</Country>*
    *<City>Singapore / Changi Airport</City>*
    *</Table>*
    *</NewDataSet></string>*
    How do I parse this output so I can display the string properly in mobile?
    Singapore / Paya Lebar
    Singapore / Changi Airport
    Any direction on how to do this? Or is there any built-in function inside JDeveloper?

    Try to go to this link - http://www.webservicex.com/globalweather.asmx?op=GetCitiesByCountry and use Singapore as CountryName or any country you prefer
    The output is a string
    +<string></string>
    -<string>
    <NewDataSet>
    <Table>
    <Country>Singapore</Country>
    <City>Singapore / Paya Lebar</City>
    </Table>
    <Table>
    <Country>Singapore</Country>
    <City>Singapore / Changi Airport</City>
    </Table>
    </NewDataSet>
    </string>
    The tutorial for ADF Mobile from Oracle website is able to drag the output from data control - return -> value/class. But this webservice only return a single value of string. How do I change it to display properly in ADF Mobile?

Maybe you are looking for