Tag Archives: AIR

Using Growl in AIR applications with AIR 2 NativeProcess

The AIR2 release is just around the corner and one of my favorite new features is the ability to use native scripts. As I’ve already demonstrated earlier, this is extremely powerful and here’s another good example.

From the moment AIR was released, a lot of developers were asking for Growl support to add toast style notifications. Up until now, there hasn’t really been an easy and flexible solution so most developers opted to build their own notifications. I really like Growl and the fact that you as a user have total control over the look and feel. I use the Mono style created by Christopher Lobay. It’s probably the sexiest toast style notification I’ve ever used.

With AIR 2 you can now call Growl right from within your application. I actually call the Growlnotify command-line tool, which comes as an extra in the Growl download. Most people probably don’t install these extras but that’s no problem. I can bundle the command-line tool as part of my application and call it directly from my applicationDirectory.

So… How does this work? It’s actually extremely easy… The first thing you do is set up a new File object that points to the Growlnotify tool.

var file:File = File.applicationDirectory;
file = file.resolvePath("growlnotify");

As I am going to bundle growlnotify with my application it will just be installed as part of the app and thus resides in applicationDirectory.

The next thing I have to do is set up a NativeProcessStartupInfo object. That’s where I’ll store the basic information that is used to start our NativeProcess.

var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
var processArgs:Vector.<String> = new Vector.<String>();
processArgs[0] = "-n";
processArgs[1] = "My AIR application";
processArgs[2] = "-p";
processArgs[3] = "0";
processArgs[4] = "-t";
processArgs[5] = "Your Growl title";
processArgs[6] = "-m";
processArgs[7] = "Your Growl message";
processArgs[8] = "-a";
processArgs[9] = "Adobe AIR Application Installer";
nativeProcessStartupInfo.arguments = processArgs;
nativeProcessStartupInfo.executable = file;

In this case, I’m also adding a bunch of arguments in my NativeProcessStartupInfo object. These arguments will be passed on to the growlnotify command-line tool. In this example, I’m setting up the name of my application, the notification priority, the title and message of my notification and I’m also telling it to use the icon associated with the Adobe AIR Application Installer. (Check out the Growlnotify docs for more info on these settings)

Next and last step is to actually call the native script.

process = new NativeProcess();
process.start(nativeProcessStartupInfo);

This code above will result in this Growl notification:

The only downside of using native scripts is that you’ll have to package your application specifically for the operating system you wrote your native script for. So in this case, I’d have to package it as a .DMG file since Growl only exists on OS X. That said, I really wouldn’t mind an OS X version of TweetDeck that allows me to use Growl instead of their custom notifications…

I really can’t wait to see what you guys are going to build with AIR 2! You can already start today! Check out Adobe Labs for more information!

Read full storyComments { 31 }

Number 1 on my wishlist: HP’s slate device

I already blogged about how excited I was about HP’s slate device a few weeks ago. These two new videos make me want it even more!

The first one is a teaser ad from HP but make sure you watch the second video! Adobe’s Alan Tam shows the device in action! No CGI tricks here! Alan shows Adobe AIR and Flash in action on the device: Video playback from MTV.com; A Spongebob Squarepants game (most casual games on the Web run in Flash); photo editing at Photoshop.com and reading the digital version of the New York Times. Now that is the web experience I want on a slate device! I’m ordering this the minute it becomes available!

Read full storyComments { 25 }

Happy 2nd birthday, Adobe AIR!

Aaah… They grow up so fast… Adobe AIR is 2 years old today. With AIR 2 now coming to mobile devices like Android devices and Apple’s phones it’s clear that AIR has a bright future ahead.

The AIR 2 release is just around the corner but you can already start building and testing your apps with the public beta available on Adobe Labs.

If you’re interested in learning about the new features AIR 2 has to offer, check out my presentation slides from FITC and the demo files that go with it. Also check out Tour De Flex for more code samples.

I can’t wait to see what you guys are going to build with AIR 2 and its new capabilities!

Photo by Lee Turner.

Read full storyComments { 10 }

Android catching up fast!

Google is selling 60.000 Android devices every day. According to MobileCrunch, that works out to about 5.4 million handsets per quarter, or 21.9 million per year. And the rate is growing rapidly, according to Eric Schmidt who kicked off the Mobile World Live Keynote initiative yesterday.

Android is also not just about handsets anymore. I’ve seen a bunch of tablets running Android as well. The Android OS is free and open source and most of all… you’re in complete control of what you install on it and how you use the web on the device. Very soon you’ll be able to grab Flash Player 10.1 and AIR from the Android Market and install it on your Android device to not only get a full web experience in the device’s browser but also get the power of AIR for standalone applications.

Google’s CEO Eric Schmidt talked about why this is important in his Mobile World Live Keynote while Eric Tseng (Senior Product Manager for Android) demoed Flash Player 10.1 on a Nexus One. He actually summed it up very nicely by saying: “The line is blurring between mobile phones and desktop computing… One of our main goals when we embarked on smartphones at Google was to really mirror the desktop web browsing experience – but for many of you and you know who you are – there’s been a critical component missing – Flash!“. But you don’t have to take my word for it… You can watch it here yourself!

I was telling a few colleagues earlier that I wish I could take a few weeks off and just build Flash/AIR apps for Android. Because now I can use the skills that I already know to create apps for these devices… Android really is the first mobile OS that can really compete with Apple’s mobile OS and the fact that it is going to have Flash Player and AIR very soon is just the cherry on top! Flash on!

Read full storyComments { 17 }

Flash Player 10.1 and AIR coming to BlackBerry devices

For me, day two of Mobile World Congress started with a demo on how to build Flash based applications for BlackBerry devices. Since RIM is one of our Open Screen Partners you will soon see Flash Player 10.1 and AIR on BlackBerry devices. As a Flash developer I am obviously very excited about that. BlackBerry has traditionally been an enterprise platform, one that uses Java as its core developer platform. Bringing Flash Player 10.1 and AIR to these devices opens up a whole new world for Flash Developers but also for BlackBerry users.

At today’s BlackBerry Developer Day we showed some of the new workflows between Adobe’s creative tools and both RIM’s and Adobe’s development environments. With the upcoming BlackBerry plugin for Illustrator, it’s incredibly easy to create assets for different screen sizes. It also simplifies communicating with the developer as he only needs to import one file in to the BlackBerry development environment he’s comfortable with. We’ve also demoed how you can soon build Flash based applications for BlackBerry phones and how Device Central makes it easy to test those applications as if you were using it on the actual device. Developers can use Device Central to test and tweak different screen resolutions and test the application as if it was running on the phone. The next version of Device Central will even allow you to test features like the accelerometer and multi-touch.

I talked to a number of BlackBerry application developers (video will be available on Adobe TV soon) who were at the keynote this morning and it was great to see their enthusiasm. Not only are they very excited about the improvements both RIM and Adobe are trying to make to streamline the communication between designers and developers but I could definitely feel the excitement about Flash Player and AIR coming to these devices as well.

I really like how RIM and the BlackBerry community are embracing the idea of being able to include Flash content in their mobile sites and applications. I can’t wait to see which types of “super apps” the BlackBerry community is going to build once they have Flash Player and AIR on the devices and to see what types of apps the Flash community is going to build for BlackBerry devices.

Make sure you keep an eye on the BlackBerry developer blog. A video of the keynote will be posted there as well as a bunch of information on how to build apps for BlackBerry devices.

Flash on!

Read full storyComments { 17 }

Adobe AIR for Mobile Devices at Mobile World Congress

Today Mobile World Congress kicks off in Barcelona. If you follow my Tweets or are a regular reader of my blog, you already knew we had some big announcements coming to the show. I’m so happy we can finally talk about this ;-)

Adobe AIR for mobile devices
If you are in Barcelona for MWC, make sure you drop by our booth! We are demoing AIR applications running on Android devices. This is fantastic news for Flash Platform developers who can now build applications that not only run across different desktop operating systems but can now also be deployed to Android devices. It’s obvious that AIR for Android takes full advantage of the improvements and new features we added to Flash Player 10.1. Those include multi-touch, gesture inputs, accelerometer input, GPS and screen rotation. My fellow evangelist Kevin Hoyt recently recorded a demo showing a couple of AIR mobile apps (Tweetbox, Southpark, Acrobat Connect) on the Motorola Droid. For more information, visit www.adobe.com/go/airmobile.

Flash Player 10.1 for mobile devices
I’ve been using Google’s Nexus One for a week now. One of the perks of working for Adobe is having access to the prerelease bits of new technology we are working on. The Nexus One I’m using actually has Flash Player 10.1 installed on it. It is extremely refreshing to be able to use the full web on your mobile device! Just the other day I wanted to view a video on Qik.com. While Qik has a mobile HTML5 site, the Nexus One didn’t seem to have the correct video codec. So I opened the normal Qik site which uses Flash Player to play the video… I pressed play and the video played. No blue Lego blocks, no missing plugin headaches. It just worked and that’s the way it should be. So far, I haven’t seen any Flash content that didn’t work on my Nexus One. I think that’s pretty impressive seeing as this is still a prerelease version. So yes… We are still working on it and no… you can’t download it today. But it’s coming soon and it truly is the missing piece in the mobile web puzzle. Whether you are addicted to Farmville or Bejeweled or if you’re like me and don’t want to install an app for every single news site you visit, you’ll be able to use those games and watch those videos in your mobile browser soon!

While most of the content just works, you should really think about tailoring your content to deliver the best possible user experience on mobile devices. Get a head start and learn how to do just that on Adobe Devnet.

I’m also really excited to see the Dell Mini 5 Tablet in action. In the video below Alan Tam shows a sneak peek of Flash content running on Dell’s upcoming touch-based tablet.

We’re demoing Flash and AIR content on a number of different devices at Mobile World Congress in Barcelona this week but if you can’t make it, make sure you don’t miss these demo videos. I’ll also record a few demos at the booth today and post them to my blog later… If there’s anything specific you’d like to see, don’t hesitate to leave a comment. Stay tuned!

It’s a great time to be a Flash Platform developer! Flash on!

Read full storyComments { 18 }

HP’s CTO talks about the HP slate. Can I have one now please?

As I already mentioned before, I won’t be standing in line to get an Apple tablet. If it was running the full OS X, I probably would have but the limited OS they’re putting on the device is just too restricted and not flexible enough.

I recently bought an HP TouchSmart TX2 tablet/notebook to replace my EEE PC netbook. I wanted something small (-ish) to browse the web and watch video on while being on vacation or traveling. While Windows 7 does take some getting used to (especially after using a Mac for the last 7 years or so) I am really impressed by the performance and even more by the price. A lot of people seem to like the pricing of Apple’s tablet but I wonder if these people looked at what is out there today? I paid around $800 for the HP TX2. So the price is similar to Apple’s 64GB 3G/WIFI tablet but my HP has a 12′1 inch screen, 320GB 7200 RPM hard drive, 4GB RAM, DVD drive, 3 USB ports, 1 4 cell and 1 8 cell battery and an AMD chipset powerful enough to even do hardware accelerated Flash Video up to 1080p! And since the TX2 has Windows 7 on it, I can also install every single app and/or plugin I want. I can run my Twitter client when I’m watching a video and most of all I’m not tied to one single store to buy my music, apps and video content. The only problem is its form factor. It’s still a bit bulky but that’s just a minor issue.

Enter the HP slate. While there’s no news yet on how much memory it’ll have, how fast the processor is or how much disk space it’ll have, it does run a full Windows 7! In the video below, HP’s CTO Phil McKinney talks about their slate device. The video also shows the New York Times Reader AIR application (as shown in the screenshot above) and HD video on YouTube using Flash Player. Now that’s a real magical experience! Can I have one now please?

Read full storyComments { 13 }

Help improve Flash Player 10.1 and AIR 2.0

Adobe engineering is headed into the final stretch of development of Flash Player 10.1 and AIR 2.0. We need community help to identify quality issues with your deployed and in-development content. While both Flash and AIR are tested extensively internally, every beta we receive valuable feedback from the Flash community and beyond.

Here is how you can get involved:

  1. Download and install Flash Player 10.1 Beta 2 and AIR 2.0 Beta 2
  2. Test the new beta runtimes with your content and applications.
  3. Log bugs at bugs.adobe.com. Engineering teams use your bug reports to reproduce errors and improve the runtime quality.

As far as beta timelines, beta 3 releases are a few weeks away and release candidates are expected within 60 days. Your involvement and assistance during this critical development window are really important and will only improve Flash Player and AIR quality.

Please also help spread the word about the beta process via Twitter:
Improve Flash 10.1 & AIR 2.0 via Beta 2 http://bit.ly/aN4Qk0 READ & RT #Flash #AIR #QUALITY

Read full storyComments { 19 }

Microwave oven powered by Adobe AIR

Oh wow… Just last April Fool’s day, I joked about this… and now it’s real!

From Crunchgear:

Two researchers from Japan’s Keio University (which yours truly attended just until recently by the way) have developed a kitchen appliance aimed at the total web geek in you, a YouTube-powered microwave. The so-called Castoven [JP] is based on a conventional, unbranded model of “good quality” but sports a 10.4-inch LCD screen in the door panel.

The main idea is to display a YouTube video whose length depends on the time you need to heat up what’s inside the Castoven. Say, you want to prepare a lunch box that takes 3.30 minutes to be ready. The Castoven would then automatically pull a video from YouTube with that length and display it on the screen until the meal is finished

The oven is powered by an AIR application that runs on your computer and gets YouTube videos through its API.

castoven-620x396

This is obviously just the tip of the iceberg. I’m sure you can imagine this with cooking videos, news broadcasts etc.

Ok… So I joked about this a while back and it became a reality. How’s this for the next crazy idea: An AIR/Flash Player powered fridge. The application will suggest recipes based on what’s in your fridge and will tell you when items in it have expired. In the morning it shows you the latest news and weather updates and it can even tell you how much power/money it is using and how to lower the cost. It also tracks your purchases so that it can alert you of promotions in your local supermarket… And obviously all presented in a nice, user-friendly UI. You have 6 months… Go!

Flash on!

Read full storyComments { 15 }

The future of magazines?

I came across this video on Ubergizmo and I wish this was real today…! The video demonstrates a multi-touch tablet to read magazines in full color with video, audio and online capabilities. The video is created by The Wonder Factory and other than that, there really isn’t any more information out there. While it’s only a concept today, I really do hope we’ll see some of this in the future. Maybe we’ll even see it on an Apple tablet in the not too distant future?

UPDATE: Wow… I’ve just read that this is actually a real product. They’ve even showed a working prototype to the press last week. What’s even cooler is that it’s built with AIR & Flex!

Read full storyComments { 14 }
Page 1 of 612345...Last »