4

I've just finished to create simple HTML/Cordova application on Ubuntu.
It works fine on the desktop.
I just want now to build it, copy to real UBUNTU device and run it (Not from SDK).
Which files should I copy after the build and how can I run the application on the device?
Thanks.

1 Answer 1

3

To test the app in your device, just plug the device to your development pc using a USB cable.

Assuming that your device is recognized by the OS, from the terminal and in app's root directory type:

cordova run --device

Cordova should build the app for your device's platform (assuming you have added a platform during development), copy it to the device and run it automatically.

Tested with Cordova 3.5, Ubuntu 14.04 development machine and Nexus 4 (Android) as the target platform.

For more info about the steps see the documentation for platform guides and the documentation for the CLI (look for the line mentioning how to run on device Alternately, you can plug the handset into your computer and test the app directly:).

4
  • Is it possible to build the app, copy it using say FLASH and run directly without plugging the device to development PC? Jul 15, 2014 at 15:23
  • 1
    from the root directory of your app just type cordova build and then check for the build app into app_root_directory/platforms/your_platform/ant-build/ there you'll see the packaged app. For Android for example, it could be app_root_directory/platforms/android/your_app.apk
    – Stef K
    Jul 15, 2014 at 15:35
  • Thanks, and what is packaged app for UBUNTU platform? Jul 15, 2014 at 16:42
  • 1
    As per Ubuntu Cordova Documentation: 4. Build the HTML5 app to all added platforms, including Ubuntu: $ cordova build That creates a click package suitable for use in Ubuntu. So you will look for that inside the ubuntu platform directory.
    – Stef K
    Jul 15, 2014 at 16:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .