Showing posts with label Flash Builder. Show all posts
Showing posts with label Flash Builder. Show all posts

Thursday, September 29, 2011

Google Android Development with Flash Builder - Preparation Guide

This is the third in a series of articles explaining how to set up your development environment to prepare for attending my Adobe MAX preconference hands-on code camp.  The previous articles covered setting up Flash Builder and devices for iOS Application Development and BlackBerry Tablet OS development with Adobe Flash Builder.

In this post, you will learn how to set up Flash Builder and your Google Android device (running Android 2.2 or later) to get ready for development.

1.  The first step is to install Adobe AIR on your device if you have not already done so.  Simply visit the Android Market on your device, search for Adobe AIR, and complete the free install.  Here's a link: https://market.android.com/details?id=com.adobe.air&hl=en

2.  Next, you need to enable USB debugging on your device.  From the Home screen, tap Settings, and then select Applications > Development. Enable the USB debugging option.  If there is an option to stay awake while charging, enable that too.  NOTE:  This cannot be set while your phone is tethered to your computer.  Unplug the mini-usb cable before setting this.





3. If you're running Windows, you'll need to set up a USB device driver for your device.  For more information on this, see Connect Google Android Devices.   Depending on which version of Windows you're running and what Android device you have, the device driver set up can take some time.

This AdobeTV video by Platform Evangelist Bhakti Pingale walks through the setup steps for a Samsung Galaxy Tab: http://tv.adobe.com/watch/adc-presents/mobile-device-debugging-using-usb/.

4.  Plug your phone into your computer and open Adobe Flash Builder 4.5 or later.

5. Choose New > Flex Mobile Project and give your application a name.  Ensure that the defaults are selected as shown below.


6. Click Next and ensure that under Mobile Settings the Google Android checkbox is checked.  If you are only developing for this one platform, deselect the others.   Click the Permissions tab and ensure you have the appropriate permissions selected for each item you want to use.  For example, if your  app needs to use the Internet and access the camera on a Google Android device, you must select the permissions as shown below.


7. If you are building for both Tablet and smart phones, your application will have to be scaled for different screen densities and sizes.  I usually select the Scale Up From 160 dpi checkbox.  Click Finish.

8. Build your application.  If you want to see how easy this is, open the file created under the Views package, switch to Design view, and add a button.  Double-click the button to change the name to something unique (like "Hello Technoracle").  If you are looking for some easy tutorials for mobile application development, please download the course from http://www.22ndcenturyofficial.com/MAX2011/BL3453-ALL.zip

9. Once your application is complete, you may wish to release it to the Google Market.  To do this, you first need to make a proper certificate.  This process is described in this blog post on generating a P12 certificate for the Google Market using the Adobe AIR SDK.

10. When your application is complete, choose File > Export.  In the dialog box that appears, select Flash Builder > Release Build and click Next.

11. Ensure that the correct project is selected in the next screen along with the proper path location at which you wish to place your APK file.  APK files are the install packages for Google Android.  Also ensure that the Signed Packages For Each Platform setting is checked and click Next.

12. A screen will appear asking you for the location of the certificate and password that you created in step 9 above.  Fill these in and click on the deployment header and ensure that Install And Launch Application on Any Connect Devices is checked.  Make sure your Android device is connected and click Finish.


That is it!  Your application will compile into an *.APK file and install itself on your Google Android device.  If your application was built with a simple button it will appear and run as shown below.



Your application can be placed in the Google Market by creating an account and following the instructions at https://market.android.com

Wednesday, December 15, 2010

Mobile Slashdot RSS Reader Tutorial - Free Source Code

NOTE:  This is Part 1 of a two part series.  Part two is now posted here: http://technoracle.blogspot.com/2011/01/this-is-part-2-of-tutorial-to-build.html

This post will sum up a new AIR for Android tutorial I have been working on.  The video will explain everything (will be posted shortly).    The project is an RSS reader for Android mobile devices.  I chose Slashdot (News for Nerds. Stuff that Matters!) and used their RSS feed from this URL.  The end result was a functioning mobile application that installed and worked on both the Google Nexus One phone and the Samsung Galaxy Tab.  There are some lessons to be learned though as you will see from the video.


Building an Android Mobile RSS Reader in 30 Minutes from Technoracle on Vimeo.

The source code for the project is available here: SlashdotRSS.fxp
The Slashdot.apk (Android installer package) is here: SlashdotRSS.apk

Here are some screenshots.  I plan to upload a complete tutorial soon!

   

Here are some of the source code views:

Thursday, December 02, 2010

Video Article - Comparing AIR for Android Development Processes

Yesterday I made a post about my experiences with the new Flash Builder 4.5 and 4.1 IDEs while developing mobile applications. Today, we follow this up with a video to illustrate some of the key points you'll need to get started.



Flash Builder 4.5 download

FileBrowser.fxp (Flash Builder 4.01/AIR 2.5 SDK project - 76 kb)
FileBrowser.apk (Android Package - 1.02 MB)
Installed application size = 1.02 MB (without graphics, icons, splash images etc)

MobileFileBrowser.fxp (Flash Builder 4.5 project - 840 kb)
MobileFileBrowser.apk (Android Package -1.78 MB)
Installed application size = 768 kb (with graphics, icons, splash images etc)

Have fun!

Thursday, April 22, 2010

Using LiveCycle ES2 on the Cloud

This video is a complete tutorial on how to get set up and start developing against LiveCycle ES2 running on the Amazon cloud. If you want to get set up, here are the physical links to reproduce this demo:

1. Download and install the LiveCycle ES2 trial. You will need the libraries in the SDK folder to complete this exercise - https://www.adobe.com/products/eula/livecycle/es/trial/

2. Get access to a cloud account via the Adobe Enterprise Developer Program - http://www.adobe.com/devnet/aedp/dev_exp/.

Here is the video tutorial:



LiveCycle Services Discovery Plug-in for Flash Builder 4 is another component you may wish to download. Tutorials on using this will be forthcoming shortly. With this plug-in you can quickly build Flex and AIR applications that invoke a LiveCycle service through remoting endpoints. You must have an installation of Flash Builder 4 before installing the Modeler.

Thursday, November 26, 2009

Flex Builder Linux Alpha 5 release

The Flex Builder for Linux alpha bits posted on Adobe Labs have been updated to extend the hardcoded timeout period. The current FB Linux Alpha 4 product will expire on Dec. 1st, 2009, so if you are currently using Flex Builder for Linux be sure to download the updated Alpha 5 bits from Adobe Labs http://labs.adobe.com/technologies/flex/flexbuilder_linux/ prior to Dec. 1st. There are no changes to the functionality of the product in these new bits; however they have been tested on later versions of Linux distros. Please see the release notes http://labs.adobe.com/technologies/flex/flexbuilder_linux/releasenotes.html posted on Adobe Labs for complete details.

Wednesday, May 20, 2009

Video tutorial - talking to BlazeDS from Flex

This is a simple tutorial you can complete in about 5 minutes once you have the required files. Download the full BlazeDS package from http://www.web2open.org/courses.html (get the Building Service Clients course) and follow along with the video. Written instructions and the source code for this are available from the download.