Sending to a Device
Once you have scanned for a device and selected it (see Scanning for a Device) you can send your application package to it via Bluetooth. Alternatively, if your target device is not Bluetooth-enabled or cannot be detected, you can transfer your package to it via a cable or viaa web server. Here we describe all these methods.
Checking the Target Device and Device Profile Association
Before you send your application to a device, it is always a good idea to check what target device is currently selected and which device profile is associated with it. That's because MoSync will send the package for the device profile associated with the target device.
The association is set up when you first scan for and select a target device:
- In MoSync 2.3, you can chose the device profile that should be associated with the target device,
- In MoSync 2.2, MoSync automatically attaches the device profile active in the project.
Here's how to see the current associations and how to change them if necessary.
Click the small down arrow next to the Select Target Device icon. A drop-down menu will appear:

At the top of the menu you will see the names of the devices followed [in brackets] by the device profiles currently associated with them. In the example above, the phone called "Nokia 6630 demo2" is associated with MoSync "6630" device profile, while the phone called "W715" is associated with the closest match in MoSync's database, the "W710" device profile.
The current target device has a tick against it (here it's the Nokia phone).
Note: The device name is a setting in the mobile device. This name is usually set by the manufacturer, but it is often configurable, which can be helpful if you are testing your application on two otherwise identical devices.
Changing the Target Device and Device Profile Association
You can change the device profile associated with a target device by selecting Edit Device List from the Select Target Device icon's drop-down menu. The Select Preferred Profile window will appear:

Select the target device you want to edit from the top list box. Double-click on a device profile in the bottom list, then click OK. The new device profile will be associated with the chosen target device.
Sending Your Application to the Target Device
Click the Send to Target Device icon to send the package that matches the device profile to the currently selected device:

How the actual installation on the device works is platform- and device-specific. If you are not sure how this is done or where your application is located after installation, consult the user manual for your device.
File transfer over Bluetooth (OBEX) doesn't work?
If your target device does not have Bluetooth file transfer (OBEX), you will need to transfer your package using one of the following methods:
- USB connection/Android device:
Install the device vendor's drivers on your machine. Connect your device using the vendor's USB cable, then select Scan for Android USB Device from the Select Target Device drop-down menu. - USB connection or other cable/any device:
Connect the device to your PC using the cable provided by the device vendor and use the vendor's own file transfer solution. - No cable connection:
Upload the package to a web server, then download it to the device using the device's web browser; or copy the application to a memory card and transfer that to the device.
Finding the Package to Transfer
Open MoSync, select your device profile, and build your project. You will find the executable package that MoSync has built for your application in the folder:
C:\<install-path>\<workspace>\<project>\FinalOutput\<build-config>\<vendor>\<model>\<package>
where <install-path> is the place you installed MoSync.
To install your application, copy the executable package to your device using the vendor's own file transfer solution and run it.
- Printer-friendly version
- Login or register to post comments
Share on Facebook