ADF Mobile: contact is created on the device that, after the user selects the button AUTHORIZE

My app allows users to quickly and easily add contacts on their IOS phone.  I need help capturing the "do not ALLOW" button click.

Background:

When you add a contact to the users device phoneGap prompts the user "Allow PAP to access Contacts?".  After that this alert is displayed, the user must select "Allow" or "Disallow".  Of course if the user selects "Allow" my code works perfectly.

However, if the user selects "Do not allow" I'm not able to capture this selection and process accordingly.

Here's the line of code that treats the newContact for this user to the application.

Contact newContact = device.createContact (contact);

where the 'contact' has been resolved with the user data

You would offer your expert opinion on how to do it please?

Thank you very much!

Tree Strepek

The permissions for iOS in the config.xml file.

https://github.com/Apache/Cordova-plugin-contacts/BLOB/master/src/iOS/CDVContacts.h

Tags: Java

Similar Questions

  • ADF Mobile - How will I know which device is using my application?

    Hello, I am developing an app in adf mobile and I need to know if a device running that this application is a mobile phone or tablet, there no way to know what device is running in my application?

    Thank you!

    deviceScope is where you get that kind of thing. Found a tutorial that should help you get started.

    https://blogs.Oracle.com/mobile/entry/tablet_layouts

  • ADF Mobile: Deploy my project to the APK file

    Hello...

    How can I deploy my project to the APK file.

    Thank you very much

    Right-click your application > Deploy > new profile of deployment
    Select ADF Mobile for Android and give it a name, press 'OK '.
    Right-click your application > Deploy > here you will see the profile of your freshly prepared deployment, click on it choose to "Deploy a package" press next and finish wait JDev build.
    Now, you will find your .apk file "deploy" of your application.

  • My webcam freezes when I clikc the button authorize

    When I go to get on the internet I plug my webcam and then I click on allow and it crashes as if he took a picture, and that's all. What is wrong, what would be a problem? I've already deleted my cache and browsing history all my Regstry etc is clean I don't know what else to do. I got a blue screen, a few seconds after I plug in the day that began. The blue screen says to follow certain steps if you've seen this before, but I did not and it happened quickly outside. He says he could have damaged something I don't remember

    I suspect that this is not a problem with your system, but rather a possible bug with the latest version of the player.  Can you please take a few minutes to visit the following bug voted so that it can be fixed?

    https://BugBase.Adobe.com/index.cfm?event=bug&ID=3160365

  • ADF Mobile access protected web service with the user name and password

    With Jdev 11.1.2.4 (with the extension of the ADF Mobile) I am creating a data control that uses a SOAP web service. The web service is not protected by a policy of wss, but its point of endpoint URL is only protected by simple HTTP authentication (internal weblogic server is not accessible public.) We use an Apache server that is configured with a location that is a simple proxypass on url of the web service endpoint weblogic. This apache location apply simple HTTP authorization). I can invoke successfully the methods with parser HTTP by simply adding to the request HTTP header "authorization: xxxxxxxxxxxxxxxxxx base =" (where xxx = user name and encrypted password).

    In the mobile application of ADF, I used the DataControls.dcx-> window to connect to the Web Service change and provided the username and password to the URL of the endpoint. The problem is that after the deployment and execution of this application on the emulator (or the device itself), I get no data by the web service since with the HTTP 401 error http server responses. It seems that that the credentials are not deployed to the device, so while the application is running can not find them.

    I searched a lot and found a similar article (quite old) in the RTO by Frank Nimphius here access_protected_web_services_from_adf.htm

    Is there a way to do this, or if I'm missing the entire image?

    Thank you very much.

    Christos

    Check out blog Shay https://blogs.oracle.com/shay/entry/accessing_secure_web_services_from

    or Andrejus http://andrejusb.blogspot.de/2012/11/adf-mobile-secured-web-service-access.html

    Timo

  • Play Google store does not accept the ADF Mobile apps for tablets

    My ADF Mobile app is published on the Google game, but he says that the app is not compatible with the tablets, for the following reasons:

    1. properly target the Android Versions

    I fixed this by going into the properties of the Application > deployment > Android profile > edit > Options Android > change target SDK API level from 9 to 14.

    Note to the ADF Mobile Team: I recommend that you change the default target SDK API level from 9 to a higher level (Google recommends 14 today).

    2. correctly report physical dependencies

    I understand the problem, but I need help to find a good solution.

    The problem is, when ADF Mobile deploys on the package, it creates an AndroidManifest.xml file and since my application uses SMS, it necessarily adds a < permission > element for telephony.  In general, approval will be "implies" that phone is a "requirement of functionality of the material" unless we also add an element of <>uses feature corresponding with android: required = "false".  However, ADF Mobile not set the < uses > function in the AndroidManifest.xml.

    Does anyone know a good solution for this?  (I searched for a way to configure this in ADF Mobile and in the docs, but it found nothing. "And I can't manually change the AndroidManifest.xml because ADF Mobile it creates in the middle of the deployment process).

    3. take advantage of the extra screen available on shelf area

    I have no start troubleshooting this in detail yet, but I'm curious to know how the Google game store, determines exactly?

    Anyway, if anyone can help me with #2, I would be grateful.  Thank you!

    Patrick

    Edit: Title changed this message, because I believe it is a more serious current problem.  Will respond with more information soon.

    Hi, Patrick, recently Google game made a number of changes, so it is much stricter in terms of supported Android.  Successfully, we applied workarounds and found the combination that seems to work for Google play.  Here are the details based on your questions:

    (1) the level of the API should not matter as long as it's 9 or above - 9 is the current default value.  Nothing specific in ADF Mobile that requires the level more high API.  However, if you are interested you should limit your application to 4.x devices, you can set the minimum and target API level accordingly to assert that.

    (2) by default, ADF Mobile says all the permissions of the device which may potentially be required by the framework.  This is why, for example, even if the application accesses a camera, the AndroidManifest.xml file will still contain references to the permissions of the camera.  Possibility to choose the correct hardware permissions selectively is planned for the next version of Mobile of the ADF.  In the meantime, you can change the AndroidManifest.xml file template in an extension of the ADF Mobile as the workaround.

    (3) Google game uses the element of "Supports the screen" in the file AndroidManifest.xml to determine what factors shape/devices are supported.  Summary of form factors supported and densities are described here: supporting multiple screens | Android developers.  ADF Mobile supports the display of different density already.  In what concerns the size of the screen, you must add the element "supports the screen" in the model of manifest file xml for the size of the screen that you want to support.  For example, if you want to add in support of all devices:

    Android: normalScreens = 'true '.

    Android: largeScreens = "true".

    Android: xlargeScreens = "true" / >

    The Android site would give you definitions of what mean these sizes.

    Finally, here are the instructions on changing the template AndroidManifest.xml:

    -Access file /JDeveloper/JDev/Extensions/oracle.adf.mobile/Android/Oracle_ADFmf_Framework.zip

    -Make a backup copy of the zip file

    -Unzip the file, which would be to extract all files in a directory of 'framework '.

    -Navigate to the framework/template/AndroidManifest.template.xml file

    -Use a text editor to change the permissions of the device, as well as the addition of the screen element supports as indicated above.

    -Zip up the framework directory and name the file zip as Oracle_ADFmf_Framework.zip, replacing the old.  Please make sure that the zip file has the same directory structure exactly as before.

    -In JDeveloper, before you deploy the application, please do a "Clean All" to clean up all the old objects deployment.

    -Deploy the application - the application should now be visible for tablets, as well as with adequate permissions.

    -Download the application on Google game - no further action is necessary in the game of Google around form factors supported and the permissions of the device.

    Now the Android deployment process does not additional validation for the device permissions are actually necessary, therefore, to ensure that these are properly defined.

    I'll also cross post this on the blog of the ADF Mobile team.

    Thank you

    Joe Huang

  • 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 - app image and name in the iphone

    Hi all

    How to display the custom in the iphone app icon and also do where I put the name of the application that appears under the icon of the iphone app please?

    Thank you

    Hello

    the name is set in the adfmf configuration file - application.xml. For icons, choose

    Application--> Application--> Deployment Properties--> New--> ADF Mobile for iOS.  Expand the node 'ios Options' and you will see the settings app icons. Then, you deploy the application using the deployment file later.

    Frank

  • The ADF Mobile preview pane does not work under Windows 8.

    The ADF Mobile preview pane does not work under Windows 8 64-bit even I use Jdeveloper 11.1.2.4.0 version, but I use windows 7 64-bit or windows xp works fine.

    How to solve this problem, please.

    Thank you!

    Hello

    I installed JDeveloper 11.1.2.4 on my machine Windows 8 and the extension of the ADF Mobile. I can open the ADF Mobile Viewer. There is therefore no problem with this on Windows 8. I used the generic facility, which is that I have installed the JDK and then run the command for installing JDeveloper Java-jar.

    Frank

  • How to test my application of ADF mobile browser on Android emulator?

    Hello

    I created a Mobile browser app. Could someone tell me please how to test on the Android emulator?

    I read the information on downloading and configuring (Blackberry) simulators and emulators (Microsoft Windows) to browser Mobile ADF in 'Running Mobile Device simulators with JDeveloper and ADF Mobile'. However they mention no details on downloading and configuring "* Android emulators." Could someone help me please in the present.

    Concerning
    Raja

    If you want to test the browser applications Mobile ADF (those built with components of the Trinity) - then you run your application in the JDev, copy the URL and open in the browser, which is part of the Android emulator.

    If you want to test ADF Mobile apps - you deploy to the emulator, and then start the application like this:
    http://docs.Oracle.com/CD/E18941_01/tutorials/MobileTutorial/jdtut_11r2_54_2.html

  • ADF Mobile Java Version

    Hi all

    JDeveloper 11 g 2 11.1.2.3
    XCode 4.5.1
    NB: I'm running the Simulator and have not yet deployed to iPhone development

    I notice some strange things and compilation and the ADF Mobile application development.

    Under the following menu:
    Classpath & application - project properties - libraries

    My Version of Java has the value "CVM_JDK". In my view, that it is a mobile version of java that is packed (phoneme_advanced)?
    It is not until I tried to create a generic data type as a Collection that I'm running into issues...

    Collection < String > strCollection = new ArrayList < String > ();

    I get the error following design pop up when I hover my cursor on the line of code above (and Yes, it is highlighted in red):

    java.util.Collection is not a generic type

    I have tried the following to work around the problem:
    "" - changed my version of Java at 1.6.0_37 in the "libraries & Classpath" (which is the default on my machine)
    -includes all the libraries that were attached to the 'CVM_JDK '.
    -changed the compatibility JDK Version to a version higher than 1.4, i.e. 1.5/1.6
    (NB: when I get the JDK Version 1.4 and compilation, the compiler returns an error: Error (8,9): generic drugs are not supported in - source 1.4)

    Then, I get runtime error:

    Version unsupported major.minor [number indicating the version of java]

    Wouldn't be fair to say that the version of the JAVA virtual machine running on the mobile device only supports version 1.4 and previous and generic versions are not supported...
    Also, this poses and issue when I am creating a carousel of images where the images are NOT in a base database as blobs, but in a folder of the project. There was a thread somewhere on this forum describing to declare a Collection and do hold the binary file... but since I can't create the Collection... I can't create a carousel...


    Any help or advice would be very appreciated =)

    Eddie

    Hey, Eddie:

    ADF Mobile integrates its own Java virtual machine in the container application. The first 2 chapters of the ADF Mobile Developer Guide contains descriptions of details of the different pieces of architecture and would help you to understand how it works. These JavaVMs are specially written for both platforms we supports, the use of mother tongues and are optimized to be light to support mobile application development.

    Currently the Java virtual machine is based on the specifications of CDC JavaME and is based on Java 1.4. You cannot change the embedded VM because the devices don't have a Java SE virtual machine that can run the code. The app must rely on the built-in virtual machine.

    This, because currently, only JavaME CDC VM is optimized for mobile devices. Despite progress in the mobile processor, it is still not at the height as the PC desktop processors. Therefore, we have implemented the JavaME CDC VM proven for iOS and Android.

    Further, there is a longer-term effort to converge JavaME in JavaSE in all areas, and ADF Mobile will be able to pick up the update when this happens.

    Now what you want to do - you can add images and other resources in the view controller - public HTML folder and referencing it in the component of the image of your application. If add you a picture to the carousel component and then to determine a schema for naming the images so it refers to the right image in the folder. The sample application CompGallery might help.

    Thank you

    Joe Huang

  • No Extension for JDeveloper 11.1.1.4.0 ADF Mobile?

    Hello
    I have recently improved and jdev 11.1.1.3 to 11.1.1.4.0 when checking for extension, can't find one for the ADF Mobile Client extension.
    But the tutorial at: http://www.oracle.com/webfolder/technetwork/tutorials/obe/jdev/obe11jdev/ps3/adf_mobile_top/adf_mobile/jdtut_11r2_54_1.html, says that she is available.
    Can someone please clarify if it is available for the 11.1.1.4.0 and if so, how to get it?
    If this is not the case, how to build projects adf mobile using this version? Or should I roll back 11.1.1.3 if I want to create mobile client applications? And guess which also apply to the browser mobile apps?
    Kind regards
    Hemant

    Published by: HVT on March 2, 2011 02:55

    Hi, Hemant, both Android and iOS are both on the roadmap for ADF Mobile Client, with Android as the first target. iOS is much more difficult, and we take a multiphase approach to solve it.

    Windows Phone 7 is still under review - a direction of Nokia it give Windows Phone 7 a little more important now.

    There are currently no J2SE / provided for the "Windows" version - if there is strong demand for the approach on the laptop, please let us know. It seems that tablets (iPad, Android, BlackBerry PlayBook tablet, etc.) are taking more and more the mobile use case who traditionally filled by the laptop.

    We will also see if WebOS/Palm catches ever.

    Symbian is unlikely, given the Nokia seems to have indicated that it will with Windows Phone.

    It is also probable that we would target consumer/J2ME phones type at this point. It is not commonly used as enterprise mobile application devices, and also the trend seems to be that this smart phone will finally exceed the phones to consumers in terms of volume.

    Thank you

    Joe Huang

    Published by: Joe Huang on March 4, 2011 19:00

    Published by: Joe Huang on March 4, 2011 19:05

  • ADF Mobile Application to filter sms

    Hello ADF Experts.

    In the ADF, Mobile Application, we could use some features of the device / Device Manager to send text messages, emails, etc..

    Can we build a capacity in mobile application to filter the sms messages received in mobile by keywords and to send the text message to certain URL via a HTTP POST request callback.

    Help with this would be appreciated. Thanks in advance.

    Kind regards

    Dexell

    Hello

    ADF Mobile has no access to the SAM. When you send an SMS then you actually call the customer request (no matter what your mobile uses for texting) and pass strings to the URL schema. This does not, however, a two-way API, you can use to read the SMS of ADF Mobile or invoke any kind of recall

    Frank

  • Jersey on ADF Mobile client

    Is it possible to use Jersey client to invoke a WS rest in ADF Mobile? I have included the jars of Jersey in the deployment, but it doesn't seem to work.

    Here is an example of the code:
    customer com.sun.jersey.api.client.Client = com.sun.jersey.api.client.Client.create ();
    WebResource webResource = client.resource ("http://server:7001/mycontext/maillot/mobile/getSomeRestData"); ")

    Hello.

    Jersey will not work in the current version of Mobile of the ADF. Must at least Java SE 6. CVM JDK (Java ME - CDC) deployed along your Mobile application of the ADF is Java 1.4. We have plans to put a more modern JVM stack in future versions.

    Best regards

    Frédéric.

  • ADF mobile for Android is not available

    Hi all

    I created Oracle ADF Mobile application. I need to deploy my project view controller using the deployment "ADF" mobile for android But for some reason that this option is not in the deployment. I have an option of "ADF Mobile feature Archive", but I need to deploy the application by using the Android emulator.

    I use Jdeveloper 11.1.2.3.0. I have installed mobile extension of the ADF.

    I already have Android SDK and program in the preferences. Can someone help me on this?

    Thank you!

    You deploy in the application menu, not for the project controller View menu.

Maybe you are looking for