Run your app on a phone

You are almost there; you have coded your app and tested it in the emulator to confirm it works as expected. It’s now time to get the app running on a phone. You do this by copying the app’s JAD and JAR files to your phone, then installing and running the app, this section explains how.

Please note that the video shows the Nokia Asha SDK 1.0 — the steps and actions are still applicable to the Nokia Asha SDK 1.2.

  1. Copy the JAD and JAR files to your phone’s memory card over a USB connection or send them over a Bluetooth connection.
  2. Install the app on your phone.
  3. Run the app.
  4. Test your app to ensure it complies with Unified Testing Criteria of the Java Verified Initiative.

Step-by-step — Run your app on a phone

Step 1 — Copy your app to a phone

You can now deploy the app to your phone. These instructions apply to a Nokia Asha platform phone, but a similar process can be used for other Asha and Series 40 phones. First connect your phone to your PC using a USB cable and, when prompted, select the Mass storage option on the phone. From the Projects list in Nokia IDE for Java ME copy your app’s JAD and JAR files to the my_downloads folder on the phone’s memory card. Once the files have been copied, disconnect the phone from the USB cable.

You can also send the files over a Bluetooth connection if you wish.

Step 2 — Install the app on your phone

Now you need to install the application. To do this, on your phone open the Files app then locate the app’s JAD file in the Downloads folder of the Memory card. Tap the JAD item to start the installation process.

If you used a Bluetooth connection to transferred the files they’ll be listed in the timeline home screen and can be installed from there.

Step 3 — Run your app

You can now run the app from on the phone’s App launcher home screen, as shown below, simply scroll down to find your app then tap your app to run it.

Java Getting Started figure 15

You have now seen how to create an environment for developing Java app for Nokia phones: You installed the NetBeans IDE, created a Hello World application, modified its screen, built it, ran it in the SDK emulator, and then deployed and ran the same app on your Nokia Asha platform phone. You’re now ready to use your Java skills to create apps for Nokia Asha platform smartphones.

Step 4 — Test against the Unified Testing Criteria

While you don’t need to undertake any additional testing to complete this getting started, when you are building your first real app you’ll need to ensure it complies with Unified Testing Criteria of the Java Verified Initiative.

Find out about submitting your application to Nokia Store ›
Find more Java learning resources ›