Deploy your ADF Mobile App to a virtual Android device from JDeveloper IDE

Posted by Torsten Kleiber on September 20, 2013 Tags: Oracle JDeveloper ADF-Mobile Android External-Tools

If you tired from the android emulator speed you may have read Chris Muir’s article ADF Mobile: Avoiding the Android Emulator with AndroVM. In the meantime the successor AndroVM is GENYMOTION. Let’s integrate this instead now!

If you have configured the port forwarding section from the AndroVM or use GENYMOTION, then you have to deploy your ADF Mobile app first to apk-File and manually install this into to the virtual android image via the android sdk command adb. The virtual Android device must be started to do this.

To do the last step from JDeveloper IDE directly with 1 click following steps help to reach this:

  • Convention over configuration: Name all of your deployment profiles for android with the same name, eg. all adf mobile samples use the name "ANDROID_MOBILE_NATIVE_archive1"

  • Create in JDeveloper an external tool

    • Select from the menu Tools > External Tools > New

    • Select Tool Type: External Program

      Deploy your ADF Mobile App to a virtual Android device from JDeveloper IDE   Select Tool Type External Program
    • Select Program Executable: adb.exe from your Android SDK. Enter Arguments: install ${workspace.dir}\deploy\ANDROID_MOBILE_NATIVE_archive1\${file.name.no.ext}.apk

      Deploy your ADF Mobile App to a virtual Android device from JDeveloper IDE   Select Program Executable
    • Enter Caption for Menu Items, eg.: Install apk file to virtual Android device

      Deploy your ADF Mobile App to a virtual Android device from JDeveloper IDE   Enter Caption for Menu Items
    • Select Add Items to Menus: Navigator Context Menu

      Deploy your ADF Mobile App to a virtual Android device from JDeveloper IDE   Select Add Items to Menus
    • Select Enabled When Specific File Types are selected: Application

      Deploy your ADF Mobile App to a virtual Android device from JDeveloper IDE   Select Enabled When Specific File Types are selected

Now you first deploy your Application to an Android package:

Deploy your ADF Mobile App to a virtual Android device from JDeveloper IDE   deploy your Application to an Android package
Deploy your ADF Mobile App to a virtual Android device from JDeveloper IDE   deploy your Application to an Android package 2
Deploy your ADF Mobile App to a virtual Android device from JDeveloper IDE   deploy your Application to an Android package 3

Then you can install this via application context menu directly to your virtual android device:

Deploy your ADF Mobile App to a virtual Android device from JDeveloper IDE   install this via application context menu directly to your virtual android device
Deploy your ADF Mobile App to a virtual Android device from JDeveloper IDE   install this via application context menu directly to your virtual android device 2

Now you can test your app in the virtual Android device:

Deploy your ADF Mobile App to a virtual Android device from JDeveloper IDE   test your app in the virtual Android device

That’s it!