A. Configuring Your Mobile Environment

As a supplement to Chapter 20, this appendix contains configuration information on setting up your Android and iOS devices to work with Flash Professional CS5.5 to create mobile applications. This information was correct at the time of publication of this book. For the latest information on how to configure your hardware devices, please refer to these links on the Adobe documentation website:

• Publishing AIR for Android applications: http://help.adobe.com/en_US/flash/cs/using/WSb03e830bd6f770ee317e94381294c702634-8000.html

• Packaging applications for AIR for iOS: http://help.adobe.com/en_US/flash/cs/using/WSb03e830bd6f770ee-29e1e072124c0d552aa-8000.html

Setting Up an Android Device for Testing

Android is the easiest platform to configure to work with Flash Professional CS5.5 for testing. There are a few basic steps to get everything up and running:

On each Android 2.2 and later device, there is a USB Debugging mode that can be activated from the Settings application on your device.

1. In the Settings app, select Applications, and then Development. Make sure that USB debugging is selected (Figure A.1).

Figure A.1. Configuring USB debugging on a Nexus One running Gingerbread (Android version 2.3.x)

image

2. Install the USB drivers for your device.

This step is not required for computers running Mac OS X Snow Leopard; however, if you are running Windows, for each phone there are a set of USB drivers that will allow your computer to communicate with the phone. The driver for your device is available for download from the manufacturer. When you install a driver, Flash Professional will be able to find the device and send the application over USB to the device, install it, and run it for you to test with. In addition, over USB, your testing application can send messages to the Output panel in Flash Professional CS5.5.

Flash Professional CS5.5 ships with drivers for popular Android-based devices. On a typical installation, these are located in the C:Program Files (x86)AdobeAdobe Flash CS5.5AIR2.6 folder on your computer.

3. Plug in your device via USB.

The operating system should recognize your phone, and you should see “USB connected” and “USB debugging connected” in the notifications pull-down bar on your phone (Figure A.2 and Figure A.3).

Figure A.2. Ready to run on Nexus One running Gingerbread (Android version 2.3.x)

image

Figure A.3. Ready to run on Dell Streak running Froyo (Android version 2.2.x)

image

That’s about it. Later you’ll create a test application to verify that everything is up and running correctly.


Note

Some devices require that you are in a Charge Only mode for your device when connecting to your computer to publish applications using Flash Professional CS5.5. Refer to your device documentation for information on how to use Charge Only mode for your specific device.


Setting Up an iOS Device for Testing

Apple iOS devices are a little more involved to get up and running. First, you need to register with the iOS Developer Program from Apple at http://developer.apple.com. Becoming a developer costs approximately $99 per year. In addition, while it is possible to test and run using a Windows computer, it is easier to do it with a Mac with iTunes.

Here’s how you set up your Mac.

1. Install the latest version of iTunes.

2. If you have a new device, configure it with iTunes. Refer to the documentation that came with your iPhone, iPad, or iPod touch on how to set up your device with iTunes.

Make sure you are running the latest version of the iOS operating system on your device.

3. Select your device in the device list and click Update in the Summary tab of iTunes (Figure A.4).

Figure A.4. iTunes indicating an iOS software update is available

image

4. Click the serial number on the Summary tab. It will be replaced with a longer number called the UDID. Write this down, or press Command-C to copy it to the clipboard. You’ll need this later in the process.

5. Open Safari and browse to http://developer.apple.com/.

6. Log in with your Apple ID and password.

7. In the Developer portal, open the iOS Provisioning portal (Figure A.5).

Figure A.5. iOS Developer Member Center

image

8. Scroll down the window and click the link for the Development Provisioning Assistant to get started (Figure A.6).

Figure A.6. iOS Provisioning portal

image

9. Click Continue until you see Create an App ID.

Every application you create for iOS needs to have a unique ID. When you create a new program, you need to repeat this process for each application you are going to create with Flash Professional. For now, you’ll create a testing application that you’ll use to test the connection to the device later in the chapter.

10. Enter myTestApp as the App ID Description and click Continue.

11. Select Assign a new Apple device and click Continue.

12. Enter a descriptive name for your device and re-enter or paste your UDID in the second field (Figure A.7).

Figure A.7. Assigning a development device

image

13. Follow the instructions to generate a certificate signing request and click Continue when finished. Keep track of where you save the certificate signing request file.

A signing certificate is required to test and deploy your application to your testing device. The Keychain Access application in Mac OS X will allow you to do this (Figure A.8).

Figure A.8. Generate a Certificate Signing Request

image

14. Click Choose File, select the file that Keychain Access just saved to your machine, and click Continue (Figure A.9).

Figure A.9. Providing the signing request

image

15. Give your provisioning profile a description and click Generate. Your profile will then be created.

The unique combination of application ID, testing device, and certificate name will allow you to deploy and test your application on your hardware.

16. Click Continue (Figure A.10).

Figure A.10. Generating your provisioning profile

image

17. Download the provisioning profile that was generated for you to your computer.

18. Locate the provisioning profile and drag it to iTunes.

19. Back in the Assistant, click Continue until you get to the Download & Install Your Development Certificate screen.

20. Download your certificate to a location on your computer and remember the location (Figure A.11).

Figure A.11. Download your developer certificate

image

21. Open the .cer file that you just downloaded to launch Keychain Access.

22. Select Certificates from the left side.

23. Locate the iPhone Developer certificate in the list of certificates and open the disclosure arrow to reveal the key within it (Figure A.12).

Figure A.12. Displaying your certificate to export in Keychain Access

image

24. Right-click the key (it should be your name) and select Export.

25. Save the certificate to your computer as a .p12 file.

26. Enter a password for your certificate when asked and click OK.

27. Enter your keychain password (usually your computer login password).

The .p12 file is what you’ll use to sign and prepare your project for export as an iOS IPA file using Flash Professional CS5.5. At this point, you can use a Windows machine to do the testing. You can copy the provisioning profile and the .p12 file to your Windows machine to create and compile the application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.20.125