Deployment on ADF Mobile (Android emulator) problem

Nice day

I use Jdeveloper 11.1.2.3.0

I have a problem when deploying my app on the Android emulator. Here is the log:

[13: 54:56] update Android profile dependencies with FAR profiles created from application projects...

[13: 54:56]-deployment began.  ----

[13: 54:56] the target platform's (Android).

[13: 54:56] early deployment of ADF Mobile application 'FirstMobileApp' in Android using «TestProfile» profile

[13: 54:56] check the State of the Android Debug Bridge server...

[13: 54:56] Server Android Debug Bridge already running.

[13:55] check a single Android emulator is online and connected to the ADB server...

[13:55] early deployment of ADF Mobile application 'FirstMobileApp' in Android using «TestProfile» profile

[13:55] analysis of the dependence running...

[13:55] building...

[13:55] deployment of 3 profiles...

[13: 55:01] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ApplicationController\deploy\ApplicationController.jar

[13: 55:01] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ViewController\deploy\ViewController.jar

[13: 55:01] start preparing the package...

[13: 55:07] check the Application Controller project exists...

[13: 55:07] checking dependencies of applications...

[13: 55:07] Validation of the application XML files...

[13: 55:07] Validation of the XML files in the ApplicationController project...

[13: 55:07] Validation of the XML files in the ViewController project...

[13: 55:08] copy of FARs in the application of the Mobile ADF framework...

[13: 55:08] far from the source of the copy: ViewController...

[13: 55:08] copy by far the source: ApplicationController...

[13: 55:08] copy of resource files java framework...

[13: 55:24] copy of the common javascript files...

[13: 55:38] deployment of counting files...

[13: 55:38] copy of the application image files...

[13: 55:38] copy of the ADF Mobile configuration files...

[13: 55:38] .adf files...

[13: 55:38] copy of file security related to the application of the Mobile ADF framework...

[13: 55:38] Creation of preferences Android XML files...

[13: 55:39] creating AndroidManifest.xml file...

[13: 55:39] Creation of unsigned Android application file...

[13: 55:50] compile the file of the Android resource identifier...

[13: 55:52] create file classes.dex Android since the class files...

[13: 55:54] run command line: ['C:\Users\Nasir Amin\AppData\Local\Android\sdk1\platform-tools\dx.bat»,--dex,--keep-classes,--output="C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes.dex', C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\AND_ksoap.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\Container.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\IDMMobileSDK.jar] C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\logging_dalvik_release.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\phonegap.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\vmchannel_dalvik_release.jar]

[13: 55:54] "" C:\Windows\system32\java.exe"" is not recognized as an internal or external, order

[13: 55:54] operable program or batch file.

[13: 55:54] command-line execution failed (return code: 1).

[13: 55:54] run command line: 'C:\Users\Nasir Amin\AppData\Local\Android\sdk1\platform-tools\dx.bat»--dex--keep-classes--output="C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes.dex' C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\AND_ksoap.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\Container.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\IDMMobileSDK.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\logging_dalvik_release.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\ framework\build\ jar\phonegap.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\vmchannel_dalvik_release.jar

[13: 55:54] undeployment.

[13: 55:54] - incomplete deployment.

[13: 55:54] deployment failed due to one or more errors returned by "C:\Users\Nasir Amin\AppData\Local\Android\sdk1\platform-tools\dx.bat".  What follows is a summary of the returned error:

Command-line execution failed (return code: 1).

You have Java 1.6 installed SDK? If Yes, can you specify the environment variable JAVA_HOME for this?

See you soon

AJ

Tags: Java

Similar Questions

  • Oracle ADF Mobile - Android SDK problem

    Hello

    I use Jdev11.1.2.4.0 with ADF Mobile framework 11.1.2.4.39.64.71 EQUIPPED. While I'm deploying application in the Android emulator more precisely Android SDK Manager 22.2.1.

    I got an error like.

    CreateProcess error=2, The system cannot find the file specified in android "C:\Program Files\Android\platform-tools\aapt"":;
    
    

    of this error. I got to know, aapt is not in the path mentioned during execution.

    But see my configuration below. I loaded different directory.

    Location of the Android SDK:

    F:\adt-bundle-Windows-x86_64-20130917\adt-bundle-Windows-x86_64-20130917\adt-bundle-Windows-x86_64-20130917\sdk

    Location of the Android platform:

    F:\adt-bundle-Windows-x86_64-20130917\adt-bundle-Windows-x86_64-20130917\adt-bundle-Windows-x86_64-20130917\sdk\platforms\android-18.

    Little, I've observed, earlier we use ADF Mobile framework 11.1.2.3.xx.xx. Now, we are updated to 11.1.2.4.39.64.71. And,

    Also AVG Antivirus installed.

    I did a few months ago before deployment. I force get this error.

    My basic questions:

    1. how to solve this error. ?

    2. I loaded different directory. Why is he trying to extract from another directory. ?

    More clearly... / Platform-tools\aapt is available in drive f but it is looking for drive C Program Files...

    Help me understand...

    During this time. I have goggled out, I got a link from Jobinesh.

    Binary: Error during the deployment of the CRG app for android - cannot run the program "adt-bundle-windows-x86_64-20140321\sdk\tools\zi..."

    This link is not accurate. But it helps me understand, I need to move the files to the mentioned location. But it is not sensible for me in my case.

    Thank you

    Kaim.

    You must use Oracle MAF instead of Oracle ADF Mobile in the future.

    Google continues to change the location of the files in their installation of SDK - so change between versions of the API of the location of the files.

    Make sure that you use the API right supported by your Mobile ADF or the version of the MAF.

  • JDeveloper ADF Mobile - Android context

    Hello

    I'm new to the development of the ADF Mobile. I wanted to use an existing library of android. which requires the context as a parameter because this isn't some back-end database activities. How can I get the Android context if I develop hybrid application using ADF Mobile.

    It's very urgent for the development of mu. Any help is appreciated.

    Kind regards
    Kathia

    Hi, unfortunately I don't think that it is easy to use an existing library of Android, because the JVM Dalvik on Android device is different from the JAVA virtual machine integrated into ADF Mobile. ADF Mobile integrates its own JVM to ensure cross-platform compatibility.

    However, that said, what is the use case exact application you have in mind? In the backend, you mean you are trying to use the Android library communicates with the database server and synchronize data and download data in the local SQLite Database?

    Thank you

    Joe Huang

  • ADF mobile application deployment: the Android Dalvik (.dex) file does not exist. (oracle.adfmf.framework.dt.deploy.android.deployers.ApkDeployer)

    Nice day

    I use Jdeveloper 11.1.2.3.0

    I'm getting following error when deploying my first app on the android emulator, please help me solve this problem. The exception log is the:

    [10: 50:12] update Android profile dependencies with FAR profiles created from application projects...

    [10: 50:12]-deployment began.  ----

    [10: 50:12] the target platform's (Android).

    [10: 50:12] early deployment of ADF Mobile 'FirstMobileApp' to Android application using the profile "ANDROID_MOBILE_NATIVE_archive2."

    [10: 50:12] check the State of the Android Debug Bridge server...

    [10: 50:17] Server Android Debug Bridge started.

    [10: 50:17] check a single Android emulator is online and connected to the ADB server...

    [10: 50:17] early deployment of ADF Mobile 'FirstMobileApp' to Android application using the profile "ANDROID_MOBILE_NATIVE_archive2."

    [10: 50:17] analysis of the dependence running...

    [10: 50:17] building...

    [10: 50:17] deployment of 3 profiles...

    [10: 50:17] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ApplicationController\deploy\ApplicationController.jar

    [10: 50:18] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ViewController\deploy\ViewController.jar

    [10: 50:18] start preparing the package...

    [10: 50:18] check the Application Controller project exists...

    [10: 50:18] checking dependencies of applications...

    [10: 50:18] Validation of the application XML files...

    [10: 50:18] Validation of the XML files in the ApplicationController project...

    [10: 50:18] Validation of the XML files in the ViewController project...

    [10: 50:18] copy of FARs in the application of the Mobile ADF framework...

    [10: 50:18] far from the source of the copy: ViewController...

    [10: 50:18] copy by far the source: ApplicationController...

    [10: 50:18] copy of model Android...

    [10: 50:48] copy of the framework resource files...

    [10: 50:48] copy of resource files java framework...

    [10: 50:57] copy of the common javascript files...

    [10: 51:02] deployment of counting files...

    [10: 51:02] copy of the application image files...

    [10: 51:02] copy of the ADF Mobile configuration files...

    [10: 51:02] .adf files...

    [10: 51:03] copy of file security related to the application of the Mobile ADF framework...

    [10: 51:03] Creation of preferences Android XML files...

    [10: 51:03] creating AndroidManifest.xml file...

    [10: 51:03] Creation of unsigned Android application file...

    [10: 51:31] compile the file of the Android resource identifier...

    [10: 51:33] create file classes.dex Android since the class files...

    [10: 51:33] update of Android application file not signed with content file and .adf DEX...

    [10: 51:33] Server Android Debug bridge closure...

    [10: 51:33] undeployment.

    [10: 51:33] - incomplete deployment.

    [10: 51:33] the Android Dalvik (.dex) file does not exist. (oracle.adfmf.framework.dt.deploy.android.deployers.ApkDeployer)

    Hello

    I found the answer to this error, it's like actually had reinstalled Studio Android, whereby a new directory has been created with the software, called SDK as sdk1. And in my tools-> preferences, path of the plate-shape and tools platform was given as the sdk (old directory). Now, I've updated the path in the new directory as sdk1 and it works fine.

    Best regards,

    Julien

  • ADF deployment Mobile & Android SDKit

    Hi people,

    There are quite a few days, I go through the mobile document from the ADF. After a big gap again, I gave a try to continue my learning in the 'ADF Mobile Bases' section.

    Where I found the oracle doc to start ADF Mobile with simple Oracle JDeveloper 11 g tutorials

    [11:25:53 AM] ----  Deployment started.  ----
    [11:25:53 AM] Target platform is  (Android).
    [11:25:53 AM] Beginning deployment of ADF Mobile application "Application2MobileApp" to Android using profile "Android2".
    [11:25:53 AM] Checking state of Android Debug Bridge server...
    [11:25:57 AM] Started Android Debug Bridge server.
    [11:25:57 AM] Verifying a single Android emulator is online and connected to the ADB server...
    [11:25:57 AM] Running dependency analysis...
    [11:25:57 AM] Building...
    [11:25:59 AM] Deploying 3 profiles...
    [11:25:59 AM] WARNING: No Resource Catalog enabled ADF components found to package
    [11:25:59 AM] Wrote Archive Module to C:\JDeveloper\mywork\Application2MobileApp\ViewController\deploy\ViewController_MobileFeatureArchive1.jar
    [11:26:00 AM] Wrote Archive Module to C:\JDeveloper\mywork\Application2MobileApp\ApplicationController\deploy\ApplicationController_MobileFeatureArchive1.jar
    [11:26:00 AM] Starting to prepare the packaging...
    [11:26:00 AM] Verifying existence of the .adf source directory of the ADF Mobile application...
    [11:26:00 AM] Verifying Application Controller project exists...
    [11:26:00 AM] Verifying application dependencies...
    [11:26:00 AM] Verifying project dependencies...
    [11:26:00 AM] Validating application XML files...
    [11:26:00 AM] Validating XML files in project ApplicationController...
    [11:26:00 AM] Validating XML files in project ViewController...
    [11:26:00 AM] Copying FARs to the ADF Mobile Framework application...
    [11:26:00 AM] Extracting Feature Archive file, "ApplicationController_MobileFeatureArchive1.jar" to deployment folder, "ApplicationController".
    [11:26:00 AM] Extracting Feature Archive file, "ViewController_MobileFeatureArchive1.jar" to deployment folder, "ViewController_MobileFeatureArchive1".
    [11:26:00 AM] Copying Android template...
    [11:26:37 AM] Copying framework resource files...
    [11:26:37 AM] Copying framework java resource files...
    [11:26:41 AM] Copying common javascript files...
    [11:27:16 AM] Deploying skinning files...
    [11:27:20 AM] Copying application image files...
    [11:27:20 AM] Copying ADF Mobile configuration files...
    [11:27:20 AM] Copying .adf files...
    [11:27:20 AM] Copying security related files to the ADF Mobile Framework application...
    [11:27:20 AM] Creating Android preferences XML files...
    [11:27:21 AM] Creating AndroidManifest.xml file...
    [11:27:21 AM] Creating Google Cloud Messaging intent service file GCMIntentService.java...
    [11:27:21 AM] Creating unsigned Android application file...
    [11:27:50 AM] Compiling Android Resource Identifier file...
    [11:27:52 AM] Creating Android classes.dex file from class files...
    [11:28:03 AM] Updating unsigned Android application file with DEX file and .adf content...
    [11:28:12 AM] Creating debug key store...
    [11:28:14 AM] Signing application...
    [11:28:24 AM] Deploying ADF Mobile Framework application to Android emulator (this may take a few minutes)...
    [11:34:30 AM] ADF Mobile Framework application successfully deployed to Android emulator.
    [11:34:30 AM] Shutting down Android Debug Bridge server...
    [11:34:30 AM] ****************************************************************************************
    [11:34:30 AM] This ADF Mobile app was deployed in Debug mode and should not
    [11:34:30 AM] be used for performance evaluation purposes.
    [11:34:30 AM] Set the deployment profile Build Mode option to Release for performance testing.
    [11:34:30 AM] ****************************************************************************************
    [11:34:30 AM] Elapsed time for deployment:  8 minutes, 37 seconds
    [11:34:30 AM] ----  Deployment finished.  ----
    
    
    
    
    

    After deployment, I noticed that this simple Application hardly take 10 minutes for me to deploy and document also produce the same.

    SDkit Android is seems to slow down to see my deployed App

    Is it possible to improve performance, as these things. ?

    See the line from 46 to 48 log says: "something harmful.

    I followed the document as suggested I did int Exchange anything. document that also has the same.

    From my understanding, I have to change the mode while deploying. I also cross check that there is no mode option when creating the deployment profile

    Please someone tell me. What is going on.

    Jdev 11.1.2.4.0

    Anderoid SDK Manager. 22.2.1 review

    Thank you.

    Subramanian,

    As already mentioned in post using mode of publication, not only didn't it reduces deployment time in minutes (from 10 minutes you specified), but also to reduce the size of archive to a third party.

    See more details about the release mode alongwith configuration configure the keystore-

    https://blogs.Oracle.com/Shay/entry/speed_up_adf_mobile_deployment

  • "aapt file not found" Exception during deployment on the Android emulator

    Nice day

    I use Jdev 11.1.2.3.0.

    When I deploy my application on the Android emulator, I get this error, here is my log information:

    [16: 56:41] update Android profile dependencies with FAR profiles created from application projects...

    [16: 56:45]-deployment began.  ----

    [16: 56:45] the target platform's (Android).

    [16: 56:45] early deployment of ADF Mobile 'FirstMobileApp' to Android application using the profile "ANDROID_MOBILE_NATIVE_archive1."

    [16: 56:46] check the State of the Android Debug Bridge server...

    [16: 56:48] Server Android Debug Bridge already running.

    [16: 57:01] check a single Android emulator is online and connected to the ADB server...

    [16: 57:03] early deployment of ADF Mobile 'FirstMobileApp' to Android application using the profile "ANDROID_MOBILE_NATIVE_archive1."

    [16: 57:04] analysis of the dependence running...

    [16: 57:05] building...

    [16: 57:24] deployment of 3 profiles...

    [16: 58:06] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ApplicationController\deploy\ApplicationController.jar

    [16: 58:06] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ViewController\deploy\ViewController.jar

    [16: 58:06] start preparing the package...

    [16: 58:12] check the Application Controller project exists...

    [16: 58:12] checking dependencies of applications...

    [16: 58:12] Validation of the application XML files...

    [16: 58:13] Validation of the XML files in the ApplicationController project...

    [16: 58:13] Validation of the XML files in the ViewController project...

    [16: 58:15] copy of FARs in the application of the Mobile ADF framework...

    [16: 58:15] far from the source of the copy: ViewController...

    [16: 58:15] copy by far the source: ApplicationController...

    [16: 58:15] copy of resource files java framework...

    [16: 58:30] copy of the common javascript files...

    [16: 58:41] deployment of counting files...

    [16: 58:41] copy of the application image files...

    [16: 58:42] copy of the ADF Mobile configuration files...

    [16: 58:42] .adf files...

    [16: 58:42] copy of file security related to the application of the Mobile ADF framework...

    [16: 58:42] Creation of preferences Android XML files...

    [16: 58:42] creating AndroidManifest.xml file...

    [16: 58:42] Creation of unsigned Android application file...

    [16: 58:42] run command line: "C:\Users\Nasir Amin\AppData\Local\Android\sdk\platform-tools\aapt ' p - debug mode - f m-J"C:\JDeveloper\mywork\FirstMobileApp\deploy\ANDROID_MOBILE_NATIVE_archive1\src"- M"C:\JDeveloper\mywork\FirstMobileApp\deploy\ANDROID_MOBILE_NATIVE_archive1\AndroidManifest.xml"- min-sdk-version 9 - target-sdk-version 9 - version-code 1 - oracle.idm.mobile extra-packages - F 'C:\JDeveloper\mywork\FirstMobileApp\deploy\ANDROID_MOBILE_NATIVE_archive1\firstmobileapp.apk'-I 'C:\Users\Nasir Amin\AppData\Local\Android\sdk\platforms\android-21\android.jar's 'C:\JDeveloper\mywork\FirstMobileApp\deploy\ANDROID_ '. MOBILE_NATIVE_archive1\res""C:\JDeveloper\mywork\FirstMobileApp\deploy\ANDROID_MOBILE_NATIVE_archive1\java_res"

    [16: 58:42] undeployment.

    [16: 58:42] - incomplete deployment.

    [16: 58:42] cannot run the program "' C:\Users\Nasir Amin\AppData\Local\Android\sdk\platform-tools\aapt" ": CreateProcess = 2 error, the system cannot find the file specified

    [16: 58:42] CreateProcess error = 2, the system cannot find the file specified

    When I go to ' C:\Users\Nasir-Amin\AppData\Local\Android\sdk\platform-tools\ ' I am not able to find the aapt file.

    Please let me know the solution for this problem.

    Best regards,

    Julien

    Check out this https://blogs.oracle.com/onesizedoesntfitall/entry/adf_mobile_deploying_to_android

    Timo

  • ADF Mobile | to deploy an application in release mode

    Hello

    I use Jdev 11.1.2.4.0.

    This im unable to see the password key in mobile tab of ADF platform, although it can I deploy an application in release mode. »

    I m getting an error

    -The deployment began.  ----

    [16: 50:24] the target platform's (Android).

    [16: 50:24] early deployment of ADF Mobile 'JavaScriptDemo' to Android application using the profile "JavaScriptDeployment."

    [16: 50:24] undeployment.

    [16: 50:24] - incomplete deployment.

    [16: 50:24] the following configuration of Android preference is invalid or missing. Set these options in the preferences of JDeveloper on the Panel of the ADF Mobile:

    Key to past

    (oracle.adfmf.framework.dt.deploy.android.deployers.ValidatePreferencesDeployer)

    Kind regards

    Sainaba

    See the deployment section of this tutorial - Oracle JDeveloper 11 g Release 2 tutorials - creating apps with Oracle ADF Mobile

    You may need to expand the dialog box if the field is hidden. should look like - t0105rls4.gif

  • 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.

  • Oracle ADF Mobile application is very slow in Android

    Hello

    I am new to oracle ADF.
    When I tried to deploy an application in an android device, it takes a lot of deployment time, and each click on a button in the application takes more time to load. Is it possible to speed up the deployment process?

    And this one as well
    ADF Mobile: Android performance is very slow--when is this corrected?

  • 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

  • Exception while trying to get the selected value for the choice of SelectOne in ADF Mobile

    I added the following code after arriving through this post https://forums.oracle.com/thread/2536419

    DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("facilitySelectItems");

    Attribute String = (String) iterBind.getCurrentRow () .getAttribute (0);

    But Jdeveloper complained class BindingContext wasn't available and I get the jar file adfm.jar has not been added to the project. I added it manually the path C:\JDeveloper11r24\oracle_common\modules\oracle.adf.model_11.1.1\adfm.jar. Once I've deployed code on an android emulator, I get the below error. Can someone please?

    07-25 13:18:03.812: D/CordovaLog (869): [SEVERE - oracle.adfmf.framework - adf.mf.internal - logError] request: {classname: oracle.adfmf.framework.api.Model; method: evaluateMethodExpression; params: [0: #{pageFlowScope.IBCMSearchBean.getSearchParams}] [1:] [2: {}] [3:] ;} exception: {message: oracle/adf/model/binding/DCBindingContainer (unsupported major.minor version 50.0); the severity: ERROR; .Guy: oracle.adfmf.framework.exception.AdfException; .exception: true ;}}}

    The version of the compiler maximum the JDev shows that 1.4. And I'm using version 11.1.2.4.0 for JDeveloper. The JDK version is 1.6.0_24.

    Sorry I missed the question!

    First of all, to get the value of selectedItem in selectOneChoice do not have another function in the domain controller. Here is an excellent article by Frank that explains this. Or you can use the below function to get the selected value immediately. Here the market is the value of selectOneChoice attribute. I wasn't aware of this method until you have read this article.

    {} public void getAndSetMarketValue (market of the object)

    ValueExpression ve = (ValueExpression) AdfmfJavaUtilities.getValueExpression ("#{bindings.marketSelectItems}", Object.class);

    AmxAttributeBinding attrBinding = (AmxAttributeBinding) ve.getValue (AdfmfJavaUtilities.getAdfELContext ());

    access the iterator that populates the list of values in

    the selectManyChoice component

    AmxIteratorBinding amxListIterator = attrBinding.getIteratorBinding ();

    the AmxIteratorBinding is a wrapper for the BasicIterator

    iterator which sets out the information we need

    ListIterator BasicIterator = amxListIterator.getIterator ();

    for each index value, query the name of the service (you can

    access and attribute from the line) to display

    SelectedValue = string

    (String) listIterator.getAttributeValueAtIndex (((New Integer ((String) market))) .intValue (), "Value");

    }

    Second, you can use #{row} in commandLink's action since it is something that is evaluated when the user clicks on the link and we do not have access to #{line} after that the entire component is rendered. To remedy this give an action for the commandlink which is a function in the bean and the function of bean back to the action of the link selected.

    ListOfReports.amx

    .......

    .......

    LoginBean.java

    ......

    public String returnClickValue() {}

    Option of string = AdfmfJavaUtilities.evaluateELExpression("#{viewScope.selectedItem}").toString ();

    return option;

    }

    ......

  • Getting error while deploying ADF Mobile App in the android emulator

    Hi all
    I'm getting following error when the mobile deployment app in the android... emulator I went through google search and I did all the steps as follows...


    1 keytool - genkey - v - keystore debug.keystore - alias androiddebugkey - keyalg RSA - keysize 2048 - validity 10000

    I gave the password, last name, organization, State and country
    2 jarsigner - sigalg MD5withRSA - digestalg SHA1-verbose - keystore /Users/Admin/.android/debug.keystore C:\JDeveloper\mywork\GeneralMobileApp\deploy\ANDROID_MOBILE_NATIVE_archive1/generalmobileapp.apk
    3 / e - platform-tools/adb install - r C:\JDeveloper\mywork\GeneralMobileApp\deploy\ANDROID_MOBILE_NATIVE_archive1/generalmobileapp.apk

    After the above step... I got the SUCCESS message (while performing the steps above in the command prompt).

    Even after this... I get the same error while deploying my application using jdeveloper in the android emulator...


    ERROR:

    [09: 40:02] failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
    [09: 40:02]
    [09: 40:02] command-line execution failed (return code: 0)
    [09: 40:02] run command line: 'E:\android\adt-bundle-windows-x86_64\sdk\platform-tools\adb' EI setup - r "C:\JDeveloper\mywork\GeneralMobileApp\deploy\ANDROID_MOBILE_NATIVE_archive1\generalmobileapp.apk".
    [09: 40:02] undeployment.
    [09: 40:02] - incomplete deployment.
    [09: 40:02] deployment failed due to one or more errors returned by "E:\android\adt-bundle-windows-x86_64\sdk\platform-tools\adb". What follows is a summary of the returned error:
    Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]


    Kind regards
    Nani

    Published by: 962874 on January 12, 2013 06:46

    The emulator can run out of space for applications - so if you have other applications that are deployed to the emulator remove them and then try again.
    Other options here:
    http://StackOverflow.com/questions/2239330/how-to-increase-storage-for-Android-emulator-install-failed-insufficient-Stora

  • ADF Mobile: Error when accessing the app from the Android emulator

    I am trying to build a mobile app ADF with JDeveloper (11.1.2.4.0) and its extension ADF Mobile Framework (11.1.2.4.39.64.69). The version of the Android API is 23 and the SDK build tools and platform version 20.

    I built the app and the deployment of the android emulator has been a success, but when I try to access the application on the emulator, it throws an error indicating that the application has stopped working.

    When I check logcat he showed the exception stack trace below that throws an UnsupportedOperationException

    Any help would be really appreciated.

    I/ActivityManager( 1240): Start proc com.company.OracleMobile for activity com.company.OracleMobile/oracle.adfmf.Container: pid=1782 uid=10019 gids={50019, 1028, 1015, 3003}
    D/WearableConn( 1443): Connecting via TCP to /10.0.2.2:5601
    W/System.err( 1782): No properties file. Taking properties from ClassLoader resources
    D/dalvikvm( 1782): GC_CONCURRENT freed 152K, 12% free 2199K/2476K, paused 9ms+9ms, total 50ms
    D/dalvikvm( 1782): GC_CONCURRENT freed 119K, 10% free 2491K/2740K, paused 13ms+10ms, total 44ms
    W/System.err( 1782): Opening "logging.properties" also failed
    W/System.err( 1782): java.io.IOException: BufferedInputStream is closed
    D/dalvikvm( 1782): GC_FOR_ALLOC freed 168K, 12% free 2542K/2884K, paused 14ms, total 15ms
    I/dalvikvm-heap( 1782): Grow heap (frag case) to 4.062MB for 1536012-byte allocation
    D/dalvikvm( 1782): GC_CONCURRENT freed <1K, 8% free 4041K/4388K, paused 9ms+1ms, total 32ms
    E/WebViewFactory( 1782): Chromium WebView does not exist
    E/WebViewFactory( 1782): Chromium WebView does not exist
    D/gralloc_goldfish( 1782): Emulator without GPU emulation detected.
    I/ActivityManager( 1240): Displayed com.company.OracleMobile/oracle.adfmf.Container: +1s55ms
    I/Choreographer( 1240): Skipped 33 frames!  The application may be doing too much work on its main thread.
    D/dalvikvm( 1782): GC_CONCURRENT freed 189K, 7% free 4453K/4768K, paused 17ms+17ms, total 90ms
    I/Choreographer( 1240): Skipped 96 frames!  The application may be doing too much work on its main thread.
    I/Choreographer( 1240): Skipped 122 frames!  The application may be doing too much work on its main thread.
    I/Choreographer( 1240): Skipped 202 frames!  The application may be doing too much work on its main thread.
    D/dalvikvm( 1782): GC_FOR_ALLOC freed 376K, 10% free 4746K/5268K, paused 15ms, total 16ms
    D/dalvikvm( 1782): GC_FOR_ALLOC freed 495K, 14% free 4944K/5724K, paused 14ms, total 15ms
    D/dalvikvm( 1782): GC_CONCURRENT freed 507K, 11% free 5335K/5964K, paused 16ms+16ms, total 58ms
    D/dalvikvm( 1782): GC_CONCURRENT freed 287K, 7% free 6075K/6484K, paused 18ms+11ms, total 61ms
    D/dalvikvm( 1782): GC_CONCURRENT freed 596K, 10% free 6755K/7472K, paused 17ms+9ms, total 61ms
    W/dalvikvm( 1782): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/oracle/cvm/channel/VM;
    W/System.err( 1782): java.lang.reflect.InvocationTargetException
    W/System.err( 1782):  at java.lang.reflect.Constructor.constructNative(Native Method)
    W/System.err( 1782):  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    W/System.err( 1782):  at oracle.adfmf.framework.FeatureContextManagerFactory.createFeatureContextManager(FeatureContextManagerFactory.java:37)
    W/System.err( 1782):  at oracle.adfmf.framework.FeatureContextManagerFactory.getInstance(FeatureContextManagerFactory.java:72)
    W/System.err( 1782):  at oracle.adfmf.Application.initializeFeatureContextManager(Application.java:328)
    W/System.err( 1782):  at oracle.adfmf.Application.initApplication(Application.java:298)
    W/System.err( 1782):  at oracle.adfmf.Container$LayoutLoader.resumeApplicationLoad(Container.java:865)
    W/System.err( 1782):  at oracle.adfmf.Container$LayoutLoader.run(Container.java:786)
    W/System.err( 1782):  at android.os.Handler.handleCallback(Handler.java:733)
    W/System.err( 1782):  at android.os.Handler.dispatchMessage(Handler.java:95)
    W/System.err( 1782):  at android.os.Looper.loop(Looper.java:136)
    W/System.err( 1782):  at android.app.ActivityThread.main(ActivityThread.java:5026)
    W/System.err( 1782):  at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 1782):  at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err( 1782):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
    W/System.err( 1782):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
    W/System.err( 1782):  at dalvik.system.NativeStart.main(Native Method)
    W/System.err( 1782): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load cvm from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.company.OracleMobile-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.company.OracleMobile-1, /system/lib]]]: findLibrary returned null
    W/System.err( 1782):  at java.lang.Runtime.loadLibrary(Runtime.java:358)
    W/System.err( 1782):  at java.lang.System.loadLibrary(System.java:588)
    W/System.err( 1782):  at com.oracle.cvm.channel.VM.<clinit>(Unknown Source)
    W/System.err( 1782):  at oracle.adfmf.JavaStarter.startJVMWithFeatureClasspaths(JavaStarter.java:351)
    W/System.err( 1782):  at oracle.adfmf.JavaStarter.startJava(JavaStarter.java:65)
    W/System.err( 1782):  at oracle.adfmf.framework.NativeFeatureContextManager.<init>(NativeFeatureContextManager.java:113)
    W/System.err( 1782):  ... 17 more
    D/dalvikvm( 1782): GC_CONCURRENT freed 1574K, 21% free 6714K/8416K, paused 15ms+18ms, total 81ms
    W/ActivityManager( 1240): Bad activity token: android.os.BinderProxy@b22d6f30
    W/ActivityManager( 1240): java.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.android.server.am.ActivityRecord$Token
    W/ActivityManager( 1240):  at com.android.server.am.ActivityRecord.forToken(ActivityRecord.java:338)
    W/ActivityManager( 1240):  at com.android.server.am.ActivityRecord.isInStackLocked(ActivityRecord.java:1031)
    W/ActivityManager( 1240):  at com.android.server.am.ActivityRecord.getStackLocked(ActivityRecord.java:1039)
    W/ActivityManager( 1240):  at com.android.server.am.ActivityManagerService.getEnclosingActivityContainer(ActivityManagerService.java:7101)
    W/ActivityManager( 1240):  at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:2026)
    W/ActivityManager( 1240):  at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2023)
    W/ActivityManager( 1240):  at android.os.Binder.execTransact(Binder.java:404)
    W/ActivityManager( 1240):  at dalvik.system.NativeStart.run(Native Method)
    W/ActivityManager( 1240): Bad activity token: android.os.BinderProxy@b22f2490
    W/ActivityManager( 1240): java.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.android.server.am.ActivityRecord$Token
    W/ActivityManager( 1240):  at com.android.server.am.ActivityRecord.forToken(ActivityRecord.java:338)
    W/ActivityManager( 1240):  at com.android.server.am.ActivityRecord.isInStackLocked(ActivityRecord.java:1031)
    W/ActivityManager( 1240):  at com.android.server.am.ActivityRecord.getStackLocked(ActivityRecord.java:1039)
    W/ActivityManager( 1240):  at com.android.server.am.ActivityManagerService.getEnclosingActivityContainer(ActivityManagerService.java:7101)
    W/ActivityManager( 1240):  at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:2026)
    W/ActivityManager( 1240):  at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2023)
    W/ActivityManager( 1240):  at android.os.Binder.execTransact(Binder.java:404)
    W/ActivityManager( 1240):  at dalvik.system.NativeStart.run(Native Method)
    D/AndroidRuntime( 1782): Shutting down VM
    W/dalvikvm( 1782): threadid=1: thread exiting with uncaught exception (group=0xb1d31ce8)
    E/AndroidRuntime( 1782): FATAL EXCEPTION: main
    E/AndroidRuntime( 1782): Process: com.company.OracleMobile, PID: 1782
    E/AndroidRuntime( 1782): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.company.OracleMobile/oracle.adfmf.LocalHTMLActivity}: java.lang.UnsupportedOperationException
    E/AndroidRuntime( 1782):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197)
    E/AndroidRuntime( 1782):  at android.app.ActivityThread.startActivityNow(ActivityThread.java:2037)
    E/AndroidRuntime( 1782):  at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:135)
    E/AndroidRuntime( 1782):  at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:347)
    E/AndroidRuntime( 1782):  at oracle.adfmf.Container.activateHiddenBackgroundFeature(Container.java:2128)
    E/AndroidRuntime( 1782):  at oracle.adfmf.Container.activateAdfApplication(Container.java:1277)
    E/AndroidRuntime( 1782):  at oracle.adfmf.Container.activateAdfApplication(Container.java:1263)
    E/AndroidRuntime( 1782):  at oracle.adfmf.Container$LayoutLoader.resumeApplicationLoad(Container.java:867)
    E/AndroidRuntime( 1782):  at oracle.adfmf.Container$LayoutLoader.run(Container.java:786)
    E/AndroidRuntime( 1782):  at android.os.Handler.handleCallback(Handler.java:733)
    E/AndroidRuntime( 1782):  at android.os.Handler.dispatchMessage(Handler.java:95)
    E/AndroidRuntime( 1782):  at android.os.Looper.loop(Looper.java:136)
    E/AndroidRuntime( 1782):  at android.app.ActivityThread.main(ActivityThread.java:5026)
    E/AndroidRuntime( 1782):  at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime( 1782):  at java.lang.reflect.Method.invoke(Method.java:515)
    E/AndroidRuntime( 1782):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
    E/AndroidRuntime( 1782):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
    E/AndroidRuntime( 1782):  at dalvik.system.NativeStart.main(Native Method)
    E/AndroidRuntime( 1782): Caused by: java.lang.UnsupportedOperationException
    E/AndroidRuntime( 1782):  at com.android.webview.nullwebview.NullWebViewFactoryProvider.createWebView(NullWebViewFactoryProvider.java:41)
    E/AndroidRuntime( 1782):  at android.webkit.WebView.ensureProviderCreated(WebView.java:2058)
    E/AndroidRuntime( 1782):  at android.webkit.WebView.setOverScrollMode(WebView.java:2116)
    E/AndroidRuntime( 1782):  at android.view.View.<init>(View.java:3461)
    E/AndroidRuntime( 1782):  at android.view.View.<init>(View.java:3517)
    E/AndroidRuntime( 1782):  at android.view.ViewGroup.<init>(ViewGroup.java:470)
    E/AndroidRuntime( 1782):  at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:52)
    E/AndroidRuntime( 1782):  at android.webkit.WebView.<init>(WebView.java:498)
    E/AndroidRuntime( 1782):  at android.webkit.WebView.<init>(WebView.java:475)
    E/AndroidRuntime( 1782):  at android.webkit.WebView.<init>(WebView.java:455)
    E/AndroidRuntime( 1782):  at android.webkit.WebView.<init>(WebView.java:444)
    E/AndroidRuntime( 1782):  at android.webkit.WebView.<init>(WebView.java:434)
    E/AndroidRuntime( 1782):  at org.apache.cordova.CordovaWebView.<init>(CordovaWebView.java:118)
    E/AndroidRuntime( 1782):  at oracle.adfmf.phonegap.PhoneGapAdapterWebView.<init>(PhoneGapAdapterWebView.java:30)
    E/AndroidRuntime( 1782):  at oracle.adfmf.phonegap.AdfPhoneGapActivity.createWebView(AdfPhoneGapActivity.java:523)
    E/AndroidRuntime( 1782):  at oracle.adfmf.phonegap.AdfPhoneGapActivity.init(AdfPhoneGapActivity.java:506)
    E/AndroidRuntime( 1782):  at oracle.adfmf.phonegap.AdfPhoneGapActivity.onCreate(AdfPhoneGapActivity.java:442)
    E/AndroidRuntime( 1782):  at android.app.Activity.performCreate(Activity.java:5242)
    E/AndroidRuntime( 1782):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    E/AndroidRuntime( 1782):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161)
    E/AndroidRuntime( 1782):  ... 17 more
    W/ActivityManager( 1240):   Force finishing activity com.company.OracleMobile/oracle.adfmf.Container
    D/gralloc (  926): Registering a buffer in the process that created it. This may cause memory ordering problems.
    E/libEGL  (  926): called unimplemented OpenGL ES API
    E/libEGL  (  926): called unimplemented OpenGL ES API
    E/libEGL  (  926): called unimplemented OpenGL ES API
    E/libEGL  (  926): called unimplemented OpenGL ES API
    E/SurfaceFlinger(  926): glCheckFramebufferStatusOES error -286649159
    E/SurfaceFlinger(  926): got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
    E/libEGL  (  926): called unimplemented OpenGL ES API
    E/libEGL  (  926): called unimplemented OpenGL ES API
    W/WindowManager( 1240): Screenshot failure taking screenshot for (164x246) to layer 21005
    I/Choreographer( 1240): Skipped 30 frames!  The application may be doing too much work on its main thread.
    W/ActivityManager( 1240): Activity pause timeout for ActivityRecord{b25294d8 u0 com.company.OracleMobile/oracle.adfmf.Container t7 f}
    I/Choreographer( 1240): Skipped 386 frames!  The application may be doing too much work on its main thread.
    I/Choreographer( 1240): Skipped 418 frames!  The application may be doing too much work on its main thread.
    I/Choreographer( 1240): Skipped 442 frames!  The application may be doing too much work on its main thread.
    D/rpctransport( 1443): sendRpc: failed: 46
    

    Hi SayantanSinha,

    If you look under API supported levels, the maximum is 19 API.  I can't speak for the ADF 11.1.2 but the lines of code in the (more recent) MAF, who have a similar support matrix, we have noted problems with the API 20.

    You can download older versions of the API of the Manager of Android SDK tool.  Remember to update your EPCO or JDev SDK configuration with the version that you want to use once it is installed.

    Oracle JDeveloper 11g Release 2 (11.1.2) Certification

  • Problem with ADF Mobile on Android

    Hello

    I am trying to perform a very simple test with adf mobile on android emulator.

    But when I try to open the application, the startup screen never changes.

    Only when I go to the menu and go back to the application in the menu device, it shows the main screen.

    And...

    When I try to open a page very simple amx, the app launch a message that says:

    Failed to initialize the AdfcContext {classname: oracle.adfmf.framework.api.Model; method: pushPageFlowScope; params: ;}}

    Can someone help me?

    I use:

    Framework Mobile ADF oracle.adf.mobile 11.1.2.4

    SDK Android 22

    Message: http://db.tt/mIqcekCI

    Journal: http://db.tt/0frlguNq

    Thank you!

    Hi, there, a number of things to double check your settings of the emulator:

    • When the Android emulator configuration, make sure that the emulator emulates the ARM processor (armeabi - v7).  ADF Mobile works only with the ARM processors - device so the emulator.
    • Under Options, memory, please ensure that RAM is at least 768 or higher.  It is of course also constrained by the amount of memory that your development computer has, but in general, you should have at least 768 MB allocated.  ADF Mobile app itself will almost RAM of course, but there are lots of Android apps that are started in the background when the Android emulator starts.
    • Also make sure, there are 500 MB of internal storage configured - you can go as low as 200 MB, but the space will be quickly.

    Finally, compile/deploy again, please open JDeveloper menu Build - Clean all to clean up any left over deployment artifacts.

    Thank you

    Joe Huang

  • 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

Maybe you are looking for