|
You can connect a Google Android device to your development
computer to preview or debug the application on the Android device.
Supported Android devicesFlex mobile projects and ActionScript mobile projects require
AIR 2.6 or a higher version of AIR. You can run or debug mobile
projects only on physical devices that support AIR 2.6 or a higher
version.
You can install AIR 2.6 on supported Android devices running
Android 2.2 or a higher version. For a list of supported devices,
see http://www.adobe.com/flashplatform/certified_devices/.
Also, review the minimum system requirements to run Adobe AIR on
Android devices at Mobile System Requirements.
Configure Android devicesTo run and debug Flex mobile applications from an Android
device, enable USB debugging as indicated below:
On the device, follow these steps to ensure that USB
debugging is enabled:
Tap the Home button to display
the home screen.
Go to Settings, and select Applications > Development.
Enable USB debugging.
Connect the device to your computer with a USB cable.
Pull down the notification area at the top of the screen.
You see either USB Connected or USB Connection.
Tap
USB Connected or USB Connection.
If a set of options appears that includes Charge Only mode,
select Charge Only and tap OK.
If you see a button for turning off mass storage mode, click
the button to turn off mass storage.
(Windows only) Install the appropriate USB driver for your
device. See Install USB device drivers for Android devices (Windows).
Pull down the notification area at the top of the screen.
If
USB Debugging does not appear as an entry, check the USB mode as described
in step 3 above. Make sure that the USB mode is not set to PC Mode.
Install USB device drivers for Android devices (Windows)Device drivers and configurationsWindows
platforms require installation of a USB driver to connect an Android device
to your development computer. Flash Builder provides a device driver
and configuration for several Android devices.
These device
driver configurations are listed in the android_winusb.inf. Windows
Device Manager accesses this file when installing the device driver. Flash
Builder installs android_winusb.inf at the following
location:
<Adobe Flash Builder 4.6 Home>\utilities\drivers\android\android_winusb.inf
For
the complete list of supported devices, see Certified devices. For Android devices
that are not listed, you can update android_winusb.inf with
USB drivers. See Add Android USB device driver configurations.
Install USB device driverConnect
your Android device to your computer’s USB port.
Go to the following location:
<Flash Builder>/utilities/drivers/android/
Install
the USB driver using either the Windows Found New Hardware wizard or
the Windows Device Manager.
Important: If
Windows is still unable to recognize your device, you need to install
the appropriate USB driver from your device manufacturer. See OEM USB drivers for links to the websites
of several device manufacturers from where you can download the appropriate
USB driver for your device.
Add Android USB device driver configurationsIf you have a supported Android device not listed in Install USB device drivers for Android devices (Windows), update
the android_winusb.inf file to include the device.
Plug the device into a USB port of your computer. Windows
informs you that it cannot find the driver.
Using the Windows Device Manager, open the Details tab of
the device properties.
Select the Hardware IDs property to view the hardware ID.
Open android_winusb.inf in a text editor.
Find android_winusb.inf at the following location:
<Adobe Flash Builder 4.6 Home>\utilities\drivers\android\android_winusb.inf
Note the listings in the file that apply to your architecture,
either [Google.NTx86] or [Google.NTamd64].
The listings contain a descriptive comment and one or more lines
with the hardware ID, as shown here:
. . .
[Google.NTx86]
; HTC Dream
%CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C02&MI_01
. . .
Copy and paste a comment and hardware listing. For the device
driver you want to add, edit the listing as follows:
For the comment, specify the name of the device.
Replace the hardware ID with the hardware ID identified in
Step 3 above.
For example:
. . .
[Google.NTx86]
; NEW ANDROID DEVICE
%CompositeAdbInterface% = USB_Install, NEW HARDWARE ID
. . .
Use the Windows Device Manager to install the device, as
described in Install USB device drivers for Android devices (Windows) above.
During
the installation, Windows displays a warning that the driver is
from an unknown publisher. However, the driver allows Flash Builder
to access your device.
|
|
|