Manoj
Manoj

Reputation: 23

IBM Worklight - Installing applications on a device

We are currently using Worklight Enterprise Edition running in Windows. We created a mobile application using jQuery Mobile (and another Using Dojo Mobile) but we were unable to deploy it to a the device.

Is this the correct procedure to install the .apk file in device?

Upvotes: 1

Views: 3284

Answers (1)

Idan Adar
Idan Adar

Reputation: 44516

Try the following:

  • Make sure the device is setup for development. Follow these instructions to enable so.

    1. Connect your device to the computer using a USB cable
    2. In Eclipse, make sure that the device is recognized in the Devices view (Ctrl+3 and search for "Devices" to add the panel).
    3. Right-click on your Worklight application and choose Run As >> Build All and Deploy
    4. Right-click on the generated Android project (should appear below the Worklight project) and choose Run As >> Android Application

This will generate an unsigned .apk and install it onto the device.
Observe LogCat (Ctrl+3 and search for "LogCat" to add the panel) for errors.

If you cannot connect the device to the computer:

  • Make sure the enable the option to allow installing applications from "Unknown Sources".
  • Setup an email account on the device and email the .apk to yourself. Tapping the attached .apk should then install it.
  • Alternatively, and only if your device is rooted, you can use an app called ADB Wireless, which allows remote installing and debugging of applications.

As a final attempt,

  • From the Android SDK Mananger, install API Level 8.
  • Go to the android\native\AndroidManifest.xml file and change minSdkValue to 8.
  • Build and deploy, install on device.

Upvotes: 6

Related Questions