ADF Mobile - function getPicture in iOS

Hi all

We use getPicture method in ADF Mobile to take photos in our application. Problem is that the function returns a path of the tmp in the iOS and the photos are deleted once the application has been closed. How do we store pictures permanently? Do we need to copy and save elsewhere when they are stored or is there a better way to do it?

Any suggestions would be helpful.

Thank you

Hello

This thread on StackOverflow says this is a limitation with Phonegap Get Picture() Cordova, which is used internally by ADF Mobile.

http://StackOverflow.com/questions/8514560/iOS-PhoneGap-camera-cant-save-image-to-photo-library

The work around of this thread is to use caprureImage from JavaScript

navigator.device.capture.captureImage(onSuccess,
  onFail,
   {
  limit: 1
   });
}

Unfortunately, this seems to require the support of plugins, which will be added to the next version of ADF Mobile

Perhaps, as an alternative, try to read the image in the temp directory and try to explicitly write elsewhere. The code is in this chapter for a view and remote file access

http://docs.Oracle.com/CD/E37975_01/doc.111240/e24475/amxbinding.htm#CHDFDBJG

Frank

Post edited by: FrankNimphius

Tags: Java

Similar Questions

  • ADF Mobile: deployment on multiple iOS Devices

    Hello

    I have developed a custom application of ADF Mobile and successfully deploy the same on an iPad using the certificate of distribution companies.

    As I borrowed someone's iPad I returned the unit and the device is somewhere else now.

    After deploying to the device, I had made the same request to the iOS Simulator using a different profile of deployment.

    Now, I want to get the. File API to run the application on another iPad, but when I checked the deployment folder in the workspace that I can't see everything. IPA file.

    If I deploy the application on iOS Simulator using the deployment profile configured for the distribution company profile I would be able to run on any other iPad .app file.

    And is it possible to extract the. IPA file from the old iPad? Any other alternative that someone might suggest.

    Kind regards

    Himanshu

    Solved. The .ipa file located in "Music/iTunes/iTunes/Mobile Media Applications.

    Kind regards

    Himanshu

  • ADF Mobile: give application to another person for iOS

    I am building an iOS application using ADF Mobile. My friend another is in a remote location.
    For android, I can easily create an apk and send it for him but for iOS while creating a configuration profile it ask for the device id. So, looks like I can't do the same in the case of iOS for him to see and test on his device.
    is that correct or I missed something?

    Please notify

    Vik2 wrote:
    I have a license and to generate the provisioning certificate, he asks me the ID unique to my device.

    so once I have provide it then the profile will be just on my phone. How my friend will be able to get the app on the phone even with the source code? used to another license?

    Your friend must save his camera as well (with Apple) before it can deploy in its device.
    If you need basically to do the same process you did.

  • ADF Mobile: Create contact

    I am trying to add the functionality of contact to create my mobile app and followed the instructions here - http://www.youtube.com/watch?v=kpkJDeRH2ys

    I created a bean managed and added the following code:

    {} public void newPhoneContact (ActionEvent actionEvent)

    DeviceManager device = DeviceManagerFactory.getDeviceManager ();

    Contact = new Contact();

    ContactName, contactName = new ContactName();

    contactName.setFamilyName ("Doe");

    contactName.setGivenName("John");

    contact.setName (contactName);

    ContactField phoneNo = new ContactField();

    phoneNo.setType ("mobile");

    phoneNo.setValue("815-000-0000");

    ContactField [] phoneNos = new ContactField [] {phoneNo};

    contact.setPhoneNumbers (phoneNos);

    Contact newContact = device.createContact (contact);

    }

    When I run the application, nothing happens, and there is no error message in the logs. Page AMX code is:

    "< amx:commandButton id ="cb6' icon="/images/add_contact.png '.

    actionListener="#{viewScope.newContact.newPhoneContact}"/ >

    I don't know if I'm missing something here.

    Any help is appreciated.

    Thank you

    I checked this with success in JDev ADF Mobile 11.1.2.4.39.64.64 against XCode 5.0.2 & iOS Simulator 7.0 11.1.2.4.0 and separately 4.2.2 Android API level 17.  It works on both platforms.

    Please indicate which versions of platforms and software that you use, you deploy too.  More information the better.  It is also important on iOS when first invited to allow the application to access the contacts on the unit you click Yes.

    CM.

  • Possible to use USB with ADF Mobile devices

    Hi guys,.

    I have found a few reader (include chip) chip card that works with a mobile device through their ports (port 30 pins, micro usb) in mobile native development(iOS/Android)

    but I want to know can be used with ADF Mobile as we Smartcard reader SDK JAR that working in the 1.4 jvm that I'm not sure on the support of usb-host function in ADF Mobile.

    Thank you.

    Hello.

    In the current version, the only way to get what you want is to build your own plugin of Cordova. This means that you will need to write native Android and iOS code to interact with the device, but also a JavaScript wrapper that will expose your API to Mobile ADF application. You can find more information in the Documentation of the API Apache Cordova.

    Best regards

    Frédéric Desbiens.

  • ADF Mobile: Want to reuse the moving components of the adf.

    Hi all

    I need to use an application mobile adf newly created in an existing App. I want to use data controls to the new application in my consuming application to create some pages that I tried to do by FAR of the draft view controller of the new application, adding the FAR to my former PPP as a library... I am referring to 4 definition of a Mobile Application (version 2.0.0.0.0).

    Ideally, I should get two options when adding library (FAR)-

    1 application library

    2 ViewController project.

    But I'm only option 1.


    Jdev version: 11.1.2.4

    ADF Mobile version: 11.1.2.4.39.64.71

    Is the problem with the jdev m using an older version of the MAF.

    You are looking at documentation, Oracle MAF but working with ADF Mobile.

    You must migrate ADF mobile at the CRG as soon as POSSIBLE, and then you will get the functionality you need.

    No reason to stay with the old Mobile ADF which is not supported any longer, migration to the MAF should be smooth.

  • Oracle Adf Mobile Browser

    Hi all

    I use JDeveloper 11.1.2.3.0, I created browser mobile ADF application similar to an application developed by Mr. Andrejus Baranovskis in his bolg Andrejus Baranovskis Blog: iPhone Web App Development with ADF Mobile Browser with all respect and regards the Mr. Andrejus Baranovskis.

    All things is OK when I run the application in the Test Center MobiOne - iphone ios 6.0.

    But when I run the iPhone application 6. iPhone shrinks the pages until they are too small to read.

    Are it the special parameters I need to be aware of?

    Kind regards


    I think so, but see for yourself Oracle Mobile Platform | Mobile applications | Oracle

    Timo

  • Support of ADF Mobile

    ADF Mobile will support Xcode 6 / 8 IOS SDK?

    According to the requirements of Apple https://developer.apple.com/news/?id=12172014b new submitted applications must be built with iOS SDK 8.

    What should I do now if I Don t update to the MAF?

    Thank you.

    As a thread that you can get a special "embedded" or "limited use" licenses for Oracle technology you are using (for example, MAF).

    This will make it much cheaper for your solution based on Oracle technology.

    Please ask your account manager for these options.

  • ADF Mobile: Can I add Badging to the features of Mobile?

    Nice day:

    I'll put up the Push Notifications.  Is this possible in ADF Mobile badge function icons?  Here is my goal.  When a Push Notification comes in the badge number is displayed on the icon of the application.  After that the user launches the app I want to display badges for each feature that requires attention.

    Use case: A Manager has the badge number 40 on the application icon.  When the application is launched, I want this number be broken down into service level badging.  For example: the Manager must answer the following questions: 15 claims, 5 applications for leave, 2 requests for home work, etc...

    I looked and didn't see any documentation.  I'm under JDK 7_55, JDev 11.1.2.4, XCode 5.0

    Thank you for your expert opinion on how to proceed,

    Tree Strepek

    Function icon badges is not supported, otherwise get listed in the documentation.

    http://www.Oracle.com/pls/as111240/search?remark=quick_search&Word=+badging&PartNo=

  • ADF Mobile: Gray background for default springboard

    Use case: users should see a slight contrast between the sliding platform and active functionality located below.

    I am aware of the skin mobilAlta & default css files ADF Mobile uses.  In addition, I created a custom.css & added the extra skin in adfmf_skins.xml (code below).  My research told me that this feature is available for most of the components of the ADF.  Specifically, I can create some custom CSS and assign CSS styles using components of the ADF 'style =' syntax. 


    It remains that I am not able to change the background color of my springboard.   I want the springboard to have light gray contrast as he slips that 170 pixels & screen feature active behind it is white.  Appears white on white.  The UX is not aesthetic.

    Can someone tell me a solution please?  I must be missing something simple.

    Here's what I've done

    in AMX. CSS I changed the springboard by default CSS

    / * - < platform >-* /.

    {.adfmf-panelPage-springboard

    background-color: #c2c7c8;

    }

    in amx-mobileAlta - 1.1.css , I modified the springboard by default CSS

    / * - < platform >-* /.

    {.adfmf-panelPage-springboard

    background-color: #c2c7c8;

    }

    inside the adfmf_skins.xml , I added a skin.

    < skin-added id = "s1" >

    <>skin-id myAST-Mobile < / skin-id >

    < name-sheet-style >custom.css < / name of style sheet >

    < / skin-add >

    in my custom.css

    {.adfmf-springboard

    background-color: #c2c7c8;

    }

    It seems that Oracle has taken my advice and the MAF springboard offers a bit of contrast.  Problem solved at the CRG.

  • Accidents of Simulator XCode5 ADF Mobile update

    Then I updated my JDev ADF Mobile update (11.1.2.4.39.64.62).

    I'm in XCode Version 5.0.2 (A 5, 3005). I can create a new simple application with a single page (home.amx) and when I deploy it in the Simulator he closes my Simulator, opening a new and behaves as the launch of my application and then does nothing. There is no icon and nothing has been implemented in the Simulator.

    [07:37:27 PM] ****************************************************************************************
    [07:37:27 PM] This ADF Mobile app was deployed in Debug mode and should not
    [07:37:27 PM] be used for performance evaluation purposes.
    [07:37:27 PM] Set the deployment profile Build Mode option to Release for performance testing.
    [07:37:27 PM] ****************************************************************************************
    [07:37:27 PM] Elapsed time for deployment:  34 seconds
    [07:37:27 PM] ----  Deployment finished.  ----
    
    

    When I open the temporary application of Xcode, I am able to launch the app in XCode 5 successfully.

    Any suggestions?

    Chris,

    Yes, I am aware that it is soft on the 2nd page. This isn't a "request" I ask.

    My steps were this:

    -deploy the app on iOS Simulator

    -iOS 7.03 (B 11, 508) Simulator closed

    -iOS 7.03 (B 11, 508) Simulator would open

    -l' screen would flash and everything just to sit on the home screen

    -J' then tried to navigate to page 2. At the time only my other apps were on the 2nd page. (not that I tried to deploy)

    -J' I reset the content and settings and tried again, same thing. A flash (as he tried to run automatically), then displays the home page.

    I was finally able to make it work by:

    -Uninstall XCode 5.0.2 (A 5, 3005)

    -uninstalled jDev 11.1.2.4

    -reinstalled xcode and jdev

    -install the updated mobile

    -open my test application, he managed to put the app on the 2nd page

    The flash and the stall on the homepage is now gone. I understand, it can be confusing to what exactly the problem I had with this update, but if all goes well in breaking it down it makes clear.

    It has never been an icon of the application on the 2nd page. He simply behaved as he tried to launch automatically. Never be able to launch an application with this update, I thought he was trying to run automatically (as a new feature) instead of the old way.

    I hope this post helps others that may encounter the same problem.

  • ADF Mobile EL substring

    Hello!

    I shows this method (https://blogs.oracle.com/adf/entry/string_manipulation_functions_inside_el) that you import jstl functions and use the fn:substring, fn:length, etc.

    but I am applying it in an AMX:PAGE, but it does not work there at - it a way to apply the substring, indexOf to EL in adf mobile?

    line 48 shows: I tried #{fn:substring(row.url,0,5)} I need and I get 'number invalid EL incorrect Expression of the operands'}

    <?xml version="1.0" encoding="UTF-8" ?>
    <amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
              xmlns:fn="http://java.sun.com/jsp/jstl/functions"  
              xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"
              xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt">
        <amx:panelPage id="pp1">
            <amx:facet name="header">
                <amx:outputText value="Bienvenido #{pageFlowScope.usuario.nombres}" id="ot1"/>
            </amx:facet>
            <amx:facet name="primary">
                <amx:commandButton id="cb1" actionListener="#{viewScope.bLogin.salirAplicacion}"
                                   icon="/resources/img/out.png" iconPosition="trailing"/>
            </amx:facet>
            <amx:facet name="secondary">
                <amx:commandButton id="cb2" action="GO_LOGIN" icon="/resources/img/lock.png" iconPosition="trailing"/>
            </amx:facet>
            <amx:outputText value="#{deviceScope.device.name}" id="ot4"/>
            <amx:outputText value="#{deviceScope.device.platform}" id="ot5"/>
            <amx:outputText value="#{deviceScope.device.version}" id="ot6"/>
            <amx:outputText value="#{deviceScope.device.os}" id="ot7"/>
            <amx:outputText value="#{deviceScope.device.model}" id="ot8"/>
            <amx:outputText value="#{deviceScope.hardware.networkStatus}" id="ot9"/>
            <amx:outputText value="#{deviceScope.hardware.screen.width}" id="ot10"/>
            <amx:outputText value="#{deviceScope.hardware.screen.height}" id="ot11"/>
            <amx:outputText value="#{deviceScope.hardware.screen.availableWidth}" id="ot12"/>
            <amx:outputText value="#{deviceScope.hardware.screen.availableHeight}" id="ot13"/>
            <amx:tableLayout id="tl1" shortDesc="features-table" inlineStyle="width:100%;">
                <amx:rowLayout id="rl1">
                    <amx:cellFormat id="cf1" shortDesc="features-column" inlineStyle="width:100%;">
                        <amx:panelGroupLayout id="pgl1" layout="wrap">
                                <amx:iterator var="row" value="#{bindings.Return.collectionModel}" id="i1">
                                <amx:panelGroupLayout id="plam2" inlineStyle="width:33%;display:inline-block;"
                                                      halign="center" valign="middle">
                                    <amx:tableLayout id="tl2">
                                        <amx:rowLayout id="rl2">
                                            <amx:cellFormat id="cf2" halign="center" valign="middle">
                                                <amx:commandLink id="cl1" >
                                                    <amx:image id="i2" source="data:image/jpg;base64,#{pageFlowScope.usuario.img}"
                                                               inlineStyle="width:40px;height:40px"/>
                                                   <!-- <amx:setPropertyListener from="#{row.id}" 
                                                                             to="#{pageFlowScope.FeatureId}" type="action"/>-->
                                                </amx:commandLink>
                                            </amx:cellFormat>
                                        </amx:rowLayout>
                                        <amx:rowLayout id="rl3">
                                            <amx:cellFormat id="cf3" halign="center" valign="middle">
                                                <amx:commandLink id="cl2">
                                                    <amx:outputText value="#{fn:substring('hi how are you?',0,5)}" id="ot2"/>
                                                  <!--   <amx:setPropertyListener from="#{row.id}"
                                                                             to="#{pageFlowScope.FeatureId}" type="action"/>-->
                                                </amx:commandLink>
                                            </amx:cellFormat>
                                        </amx:rowLayout>
                                    </amx:tableLayout>
                                    <amx:spacer id="s2" height="25"/>
                                </amx:panelGroupLayout>
                            </amx:iterator>
                        </amx:panelGroupLayout>
                    </amx:cellFormat>
                </amx:rowLayout>
            </amx:tableLayout>
            
        </amx:panelPage>
    </amx:view>
    

    AMX pages aren't JSF you cannot use just other JSF/JSP features in them.

    A better approach would probably be to manipulating strings in a bean of support and have card field to this value of bean.

  • County of 'badge' or bubble in Oracle ADF Mobile


    Hello

    Can someone give me a sample of strategy of the County 'badge' or bubble in Oracle ADF Mobile?

    Thank you.

    Hello

    For what I can see there is no such thing for mobile of the box (I hope someone will correct me). For now, you will need to implement your own component using css and so on. The link that I sent is the app icon badge (and it's just for iOS). As for example when you receive new messages and shows you the number of new messages in the application icon. If you find something, please let us know.

    Concerning

  • New guideline of Apple cannot allow ADF Mobile to publish the application in the store in February

    Hi guys,.

    I saw a new rules that sent to the IOS Developer any delay to February 1, 2014 for submission apply new/updated App Store must generate in XCode5 and optimized for iOS7 SDK

    And the current version of the ADF doesn't support or XCode 5 and iOS Mobile 7 SDK.

    Then my current app in the App Store will be a risk with us because we are planning to update the application in the next phase in this month of February.

    So, please fix as soon as possible.

    Ref: https://developer.apple.com/news/

    Hello

    just as an fyi: we are currently working on a new game Patch for ADF Mobile 11.1.2.4 which also addresses the issue of XCODE. Beside that, Timo is correct that the RTO does not help fixing bugs because it is only a forum for communication and assistance

    Frank

  • ADF Mobile: documentation

    Hello

    ADF Mobile: 11.1.2.4.0

    Device: iPhone & iPad

    The customer wants to show the contents of a document that is located on the side server.

    Document types include jpeg, rtf, xls, pdf to docx.

    The user will walk through a few pages in a taskflow and clicks, and then on the reference of a document, which should then open the document.

    I tried the goLink, but then the user is outside of the application and in the ios, there is no way to return directly.

    What are the possibilities?

    Thank you in advance.

    Filip Huysmans

    A few options.

    Use the displayFile method-

    http://docs.Oracle.com/CD/E37975_01/doc.111240/e24475/amxbinding.htm#CHDFDBJG

    Create a new feature local HTML - call this feature from your page AMX - and in the HTML page using a scope setting application to redirect the URL required.

    Then navigate back, you go to the other feature.

Maybe you are looking for

  • I want to search in Yahoo, not ask (what I want on my toolbar).

    When firefox updated recently, Ask appeared on my toolbar and has become my default search engine. I absolutely hate to use Ask because it does not perform as well as Yahoo. I have Yahoo selected in the preferences of Firefox as my default search eng

  • I would like Firefox to HTML for reading and nothing else.

    I would like to be able to browse a domain without sending all the cookies, running a script, or resources other than the URL download or pages I specify - just to get the HTML code and format text for reading, with tables and links and other whatnot

  • I can't the printer to accept a different paper size. I'm trying to print on 6.5x10.

    I have a HP all-in-One 8600 and am printing from a Mac running 10.6.  I changed the layout to 6.5x10, but get a message that do not match the printer and paper size.

  • error code 80004002

    Windows Update will not update, I ran the fix program help went told me to download updated program web site did when he tried to install I got fatal error message so still no update, I need help anyone got an idea "s

  • Windows Update icon - closing

    Hello I am writing because I had a problem since last Thursday, November 12. I am currently working with a x 64 version of Windows 7. As usual, asked me to install updates on this day. I did so and rebooted my laptop, like I always do and everything