Android Date Picker for Flex Hero
Nedeľa, November 7th, 2010I’ve been testing new Flex Hero SDK with AIR 2.5 on my HTC Desire HD. In Flash Builder Burrito it works very nice and smooth. Even debugging on mobile works nicely (computer and mobile must be connected to same wifi). I’m just playing and testing some new stuff and have needed date picker for choosing date, but there is no such component in Flex Hero SDK I can use. So I’ve checked native Android Date Picker and try to create it from scratch in Flex. It’s pretty easy component, you can make it on your own in few minutes. But if you don’t want to bother to recreate it, you can just use mine.

Flex Android Date Picker:
Download sources as Flash Burrito project with .apk file.
This file is hosted straight from our web hosting provider.
If you have already use another DatePicker or made your own one, let me know your thoughts. I’ve just tested it only on HTC Desire HD (screen resolution 480x800px).
2 Trackbacks/Pingbacks
13 Comments
Paul Kukiel
• Visit Site
November 10th, 2010
Did you have trouble getting the HTC Desire running directly from FlashBuilder? I have so far not been able to deploy to or debug directly to the device.
We have a HTC desire and I have been following this: http://blogs.adobe.com/cantrell/archives/2010/09/packager-for-iphone-refresher.html
And cannot add the device properly and have it seen in FlashBuilder.
.-= Paul Kukiel´s last blog ..Apple MacBook Air 11 =-.
admin
• Visit Site
November 10th, 2010
Hi Paul,
how are you connecting your HTC desire to your computer? I’m using USB cable for seen it properly added (in Flash Builder Burrito, but also from Android SDK). For debugging it needs to be connected to same wifi as your computer (little bit strange, but that how it’s working currently. Hopefully this is not final state and Adobe will fixt it). So you really needs to be connected via USB cable.
Please let me know, if this helps you or not. I will try to help you more, just let me know how are you connected to your computer.
Franto
Paul Kukiel
• Visit Site
November 10th, 2010
Via USB. I used this method to setup the device:
http://help.adobe.com/en_US/flex/preview_release/mobileapps/WSa8161994b114d624-33657d5912b7ab2d73b-7fdf.html
.-= Paul Kukiel´s last blog ..Apple MacBook Air 11 =-.
admin
• Visit Site
November 11th, 2010
Hmm, I didn’t do anything. USB debugging is ON on my device. I’m on Mac, if you are on Windows, did you install USB driver for device (as it’s written there) ?
Maybe try download Android SDK a check if device is listed there. in SDK there is folder tools and there is adb command. Just write in your console “./adb devices” and it lists connected devices. So you can test if it is problem of Flash Builder Burrito or any other problem.
admin
• Visit Site
November 11th, 2010
Btw. USN Drivers for Windows are here: http://developer.android.com/sdk/win-usb.html
Paul Kukiel
• Visit Site
November 15th, 2010
OK got the drivers installed ( thanks ). Still no luck deploying to the phone but we are goign to try a different device tomorrow.
.-= Paul Kukiel´s last blog ..Apple MacBook Air 11 =-.
admin
• Visit Site
November 15th, 2010
hmm, that’s very strange. Try ask in Adobe forums? I can try install Burrito on my Windows computer at home and try to connect Desire. I will let you know if I will have succes with that.
Randy Nielsen
• Visit Site
November 17th, 2010
Paul, one thing we learned just before MAX (and I think it’s mentioned on the page you reference) is that some phones give you USB options that let you choose among Charge Only, Mass Storage, Media Player, . If you have these options, be sure that it is set toCharge Only.
HTH
Randy Nielsen
Flex Content and Community Manager
Adobe Systems Incorporated
.-= Randy Nielsen´s last blog ..Optimizing FXG =-.
Paul Kukiel
• Visit Site
November 17th, 2010
Tried on a different PC and different phone ( same model ) and it worked!
.-= Paul Kukiel´s last blog ..Apple MacBook Air 11 =-.
admin
• Visit Site
November 18th, 2010
Hi Randy and Paul.
I have such settings on my HTC Desire HD, and I’ve set Charge Only. I’ve never changed that settings, maybe because of that it always worked for me. Paul can you check that settings on both phones? if that makes difference?
Alex B
• Visit Site
December 6th, 2010
Glad to know that this app is works on hetc desire hd
.-= Alex B´s last blog ..Guide- How to Adjust HTC Desire HD Screen Brightness =-.
veri kurtarma
• Visit Site
Apríl 27th, 2011
Paul, one thing we learned just before MAX (and I think it’s mentioned on the page you reference) is that some phones give you USB options that let you choose among Charge Only, Mass Storage, Media Player, . If you have these options, be sure that it is set toCharge Only.
HTH
Yann Graufogel
• Visit Site
Jún 7th, 2011
Hi,
First, thanks for this mobile datePicker!
I’ve noticed something wrong with this component: you set manually the width of the main group. It is ok with your HTC HD but with a “small” device, the picker is not entirely visible.
The only quick solution I found is to set the width depending on the application size:
creationComplete="{this.width = (FlexGlobals.topLevelApplication as Application).width}"
And to be complete, you could also:
- Adapt the fontsize with media queries
- Listen to the orientation change in order to adapt / resize the layout
- Listen to the back key pressed to remove the datePicker to the popManager
...
Regards.
Sorry, comments for this entry are closed at this time.