Flex Mobile Device Back Button – Approach 3

July 17, 2012

In my previous post, Flex Mobile Device Back Button – Approach 2, I provided a brief overview of using states to dynamically display the appropriate device based “Back” button. I was not happy with this approach because the view ran like a dog. The responsiveness was very slow. At the end of the this post, I realized that the creation complete event would allow us to inject the child component before the view becomes visible to the user.

Despite the discussion in this post Air Mobile Performance Tip Using Flex about not recommending using creation complete event because it causes your view to render slowly, I found that this event actually provided me with the behavior I desired. The action bar “Back” button was injected before the view was made visible and the view rendering was very fast as well.

Approach 3 will copy the method used in the first approach, but will replace the ViewActivate method handler with a CreationComplete method handler.

Continue reading

Flex Mobile Device Back Button – Approach 2

July 17, 2012

In my previous post, Flex Mobile Device Back Button – Approach 1, I provided a brief overview of the ViewActivate approach to the button creation process which dynamically adds the correct “Back” button based on the device where the code was running.

Approach 2 will use states to render the appropriate button on the device.
Continue reading

Flex Mobile Device Back Button – Approach 1

July 17, 2012

In my previous post, Flex Mobile Action Bar Back Buttons, I provided a brief overview of the history of “Back” buttons for Android and Apple devices.

Approach 1 uses the Dynamic UI Pattern approach described in the previous article. In essence, I need to toggle the button to be displayed based on which device the code is currently running. This detection occurs in the ViewActivate portion of the life cycle creation of a view.

Continue reading

Flex Mobile Action Bar Back Buttons

July 17, 2012

Brief history of action bars on mobile devices:
1) Apple devices always had a “Back” button on the top action bar defined for their mobile devices.

2) Android devices depended on the hardware based back button to provide this functionality so a software based “Back” button was not included on the action bar.

This button behavior was described in a mobile skinning article on Adobe called Mobile Skinning Part 3.

Continue reading

Creating Multiple App Icons for Mobile/Air Applications

July 10, 2012

The following steps were followed to create multiple png application icons which were used in our mobile apps for both Google (Android) and Apple (IOS) devices:

  • Using Flash created a vector icon whose height = width
  • Exported the vector as a png image with dimension set to 512×512
  • Used Shrink O’Matic AIR application to create smaller png icons

NOTE: Shrink O’Matic provided a better downsize scaling of the image than using flash to export the vector to various png sizes.

Shrink O’Matic is available for download at http://toki-woki.net/p/Shrink-O-Matic/.

Continue reading