Using The PlayBook AIR SDK with Flex “Hero” Mobile Projects

Posted by magician | Posted in Web | Posted on 20-02-2011

4

When I first started doing PlayBook development with Flash Builder “Burrito” I found it kind of confusing how the PlayBook SDK installed itself. During the install process, the PlayBook AIR SDK installer prompts you for two locations; one is the location of your Flash Builder installation and the second is an existing AIR 2.5 SDK installation. If you’re using Burrito, it drops a new SDK into the sdk folder of the Burrito install (blackberry-tablet-sdk-0.9.x) and then defaults to the 4.5.0 sdk in the next screen as the AIR 2.5 SDK.

If you’re used to doing Android development then the first thing you probably did was go to create a new Flex Mobile or ActionScript Mobile Project using the PlayBook SDK. Unfortunately you’ll get this screen:

Luckily, when you selected the existing AIR 2.5 SDK (assuming you put it in the default 4.5.0 folder or any version of the “Hero” SDK with mobile components) the PlayBook installer has already linked the PlayBook SDK to that sdk. So when you create a Flex Mobile project with the Flex Hero SDK set you’ll see the required QNX .swc files already linked:

But I ran into an issue when I tried to upgrade. My colleague Mihai has a great runthrough of how to migrate from the 0.9.1 PlayBook SDK to the 0.9.2 SDK. But after I tried to upgrade all of my Flex Hero projects kept referring to the old 0.9.1 SDK. And any new Flex Hero projects I created would reference the old 0.9.1 installation. What I discovered was that something during the install process wasn’t overwriting the link in the 4.5.0 folder to the old SDK.

It seems like there is a bug that won’t overwrite the reference to the 0.9.1 correctly but the SDK is referenced in the Flash Builder preferences under Target Platforms. I just had to change it from 0.9.1 to 0.9.2 and all of my old projects as well as all of the new projects started using the new version.

View full post on Digital Backcountry – Ryan Stewart’s Flash Platform Blog

PlayBook Development: Flex Mobile Framework or the QNX Components?

Posted by magician | Posted in Web | Posted on 19-02-2011

4

Flex or QNX

One of the first decisions you’ll have to make when you start building a PlayBook application is whether you want to use the Flex Framework for mobile devices or the QNX component set that ships as part of the AIR SDK for PlayBook. Even if you’re a Flex developer it’s not a straightforward decision so it’s important to be able to weigh the pros and cons of each side. I’ve been talking to a number of developers about Flex versus QNX and wanted to put down my thoughts to help developers decide. If you think I missed something, let me know in the comments and I’ll add it.

Performance

I don’t yet have a PlayBook to test the differences on, but in talking to people that do, performance generally seems like a wash. There’s something to be said for the fact that the QNX team is working really closely with the hardware to optimize their component set, but I also know the Flex team has made leaps and bounds in performance for Flex Mobile. When I get an actual device I’ll update this section.

Component Set

This is an area where I thought Flex would have a decided advantage. And if you count the entire component set, it does. But if you limit the comparison to mobile-optimized components, Flex ends up a little behind. For both platforms the core components are there, lists, buttons, etc. Flex has a TextArea component while QNX doesn’t, but QNX has a slider component while Flex’s hasn’t been mobile-optimized yet. Where QNX ends up winning though is in the number of components that are being built to support UI features of the PlayBook. QNX has support for a number of different dialog components including the LoginDialog component as well as built in support for lists with sections. If you’re sticking to the normal base components, Flex is a perfect fit, but the QNX components are a bit higher level and provide some specific UI elements that your users will see across the PlayBook that you can then add to your own application.

The Picker component from the PlayBook AIR SDK


The Picker component selected

Layout

Flex wins this hands down in my opinion. The layout system that the QNX components employ works just fine, and it’s elegantly simple. It uses a container system and I’ve been told it’s similar to Java. I did a screencast on how to use it and it generally accomplishes most of what you’ll need to do. But if you want to do anything above and beyond, the Flex layout system still rules. Having to use things like a Spacer container to align a component in the middle of the screen just seems hacky compared to being able to set properties on a Group. Plus, with Flex you can very easily create your own layouts, which means you can create far more customized looking applications with Flex than with the QNX components.

Skinning/Designer-Developer Workflow

Currently I see this one as a draw. The Spark components of Flex offer a lot of customization and on the desktop provide some great integration with tools like Flash Catalyst, Illustrator, and Photoshop. The only problem is that you don’t really get those integrations if you’re building mobile Flex applications because for most components you won’t want to use MXML-based skins, you’ll want to use AS3 skins. Because all of the designer-developer tooling uses MXML, you won’t be able to pull out all of the benefits of Spark on mobile devices. On the other hand, the QNX components don’t really have any designer developer workflow either. I found the skinning model for QNX to be similar in a lot of ways to the skinning model of Spark. Either way, when you skin these applications you’ll be doing a lot of ActionScript and relying a lot on images.

Mobile UI Paradigms

The TabNavigator UI Paradigm

The Flex mobile team has done a fantastic job of building the framework from the ground up with mobile user interface paradigms in mind. A base Flex Mobile application gives you an ActionBar, which can contain global content, an easy way to add and remove pages from within the application (complete with default transitions between screens), and components for tabbed navigation. With QNX you’re going to be creating most of those from scratch. On one hand it means that you can build up your own mobile UI paradigms if for some reason you don’t want to use what Flex has to offer. On the other hand, the paradigms that Flex Mobile uses are ubiquitous at this point and I’ve found myself trying to copy them in my PlayBook applications.

Flex Mobile’s ActionBar Component

Native

This is one of those intangible things but I think it’s important to look at critically. Alex Payne noted some of the issues with AIR applications and how they compare to native applications (also read Ed Finkler’s post on the subject). One of the things I find most exciting about the PlayBook is that it’s the only platform where Flash is native. The QNX components that you use in the SDK are the exact same ones that are being used across the device. It’s very exciting to be able to build native UIs with my Flash/Flex skills. I’m obviously a big fan of Flex and AIR for a lot of things, but given the chance to build native apps, I’ll do it. And it couldn’t be easier for Flash developers to use the QNX components to create native PlayBook apps. That being said, the native APIs and device functionality are all exposed via ActionScript APIs so even if you’re building a Flex app you can still take advantage of the same native and device-specific functionality that developers who use QNX can. So it just comes down to how you want your application to feel compared to other applications on the device.

Another important consideration is being able to reuse your code to deploy to other devices. If you’re looking for a consistent brand across multiple devices and the ability to reuse big chunks of code, Flex is the only answer. You won’t be able to use the QNX components outside of the PlayBook environment so you’ll have to rewrite the application for iOS or for Android or for any of the other devices AIR supports.

Conclusion

I don’t really see a winner for either one of these because I think it comes down to developer skills and what kind of experience you’re going for. I’ve really enjoyed diving into the native QNX components because I like when applications have a native look and feel. If you’re primarily a Flex developer you’re probably going to miss some of the things that you’ll lose by moving to the QNX components. And someone may come up with a Flex skin that mirrors the look and feel of the QNX components so you can get the best of both worlds. Either way building applications for the PlayBook will be right up the alley of any Flash developer. It’s a device that has basically been built from the ground up to support Flash and I’ve been enjoying it immensely. I’m hoping to have a Pintley application out for the PlayBook at launch so if you’re a beer lover, check back here.

One good place to start hashing out the differences is to take a look at the developer documentation for each: Flex, QNX. That will give you a feel for some of what’s supported in each one. And again, I’ll be updating this post with comments so feel free to comment below or to drop me an email.

View full post on Digital Backcountry – Ryan Stewart’s Flash Platform Blog

The Hidden Dangers of Free WordPress Themes

Posted by magician | Posted in Web | Posted on 17-02-2011

0

I have this terrible (or awesome, I suppose) tendency to create new blogs. In fact, just today I bought a new domain (another terribly awesome tendency) and will soon begin the process of setting up “just another WordPress blog.”

That means searching for a new WordPress theme. And those who’ve done this before know how difficult it can be to find a good theme in what is arguably the underbelly of the SEO beast: the search string “WordPress themes.”

As if finding a good WordPress theme isn’t challenging enough, Siobhan Ambrose points out the dangers and security issues when you’re searching for – or rather, installing, “free WordPress themes.”

Ambrose makes the argument in a blog post aptly titled “Why You Should Never Search for Free WordPress Themes in Google or Anywhere Else.” And it isn’t simply because the search is frustrating or spammy.

She takes themes from the top ten websites that are returned for such a search and finds that many of the themes there are out-of-date and won’t work with the latest version of WordPress. Many generated errors upon installation.

But more troubling, many of these sites contain themes with security exploits. Most common in Ambrose’s findings was Base64, which can be used to hide malicious code. In one example, Base64 stripped out the footer she wanted – her name and copyright information at the base of the blog – and replaced it with a link to a free Antivirus site.

In fact, of the top 10 sites that she looked at based on a Google search for “free WordPress themes,” only one was safe – WordPress.org. One she deemed “iffy.” But the other 8 all contained themes with some sort of potential exploit or malicious code.

Ambrose lists several “trusted sites,” including Smashing Magazine and Theme Shaper, where you can find free themes. She also points to sites like Woo Themes that offer premium themes, as well as some free options. But her suggestion is to avoid the search phrase “free WordPress themes” altogether, and to use exploit decoders to help double-check the safety of any suspcious themes.

View full post on Web Technology News, Social Media and Web Apps

Firefox 4 To Arrive in February

Posted by magician | Posted in Web | Posted on 11-02-2011

0

Get ready, Firefox fans, because Firefox 4 is on the way.PCWorld writes that the next version of the second most popular browser worldwide is “nearly ready for release” and should be available starting next month.

Mozilla’s senior director Damon Sicore wrote on a developer mailing list that “Firefox 4 is gonna kick ass,” but that, until the launch “we need *everyone* to help in testing.”

Mozillahad planned to ship the latest version of its popular browser by November, 2010, but too many bugs remained to release a final candidate. According to Sicore, Flash, Silverlight and “other major plug-ins” were continuing to cause problems, with users “affected by hardware acceleration causing crashes or other issues.” According to PCWorld, Sicore said that “about 160 ‘hard blockers’–or significant bugs–remain in the project.”

Hardware acceleration is one of the key features boasted by Microsoft to boost Internet Explorer 9 ahead of other browsers. Currently, Firefox is second in popularity worldwide only to Internet Explorer, with Chrome and Safari following behind.

For a full look at what to expect in the latest version of Firefox, take a look at Frederic Lardinois’in-depth review from earlier this year. The long and short of it is that the next version will be faster, sleeker, with “do not track” capabilities to enhance user privacy.

DownloadSquad points out that, if you want to help Firefox along, you can take part in beta testing the product bydownloading the latest version and reporting any bugs you come across.

What do you think? Will you try out Firefox 4? Is that your browser of choice or will Chrome keep your attention? Or has IE9 brought you back to the Microsoft side?

  • Related posts:
  1. Bing Took Another Slice Of Yahoo’s Market Share in February February search results show that Bing continues to grow as…
  2. Write On Top of the Internet With New Firefox Add-On A new browser add-on by L.A.-based Border Stylo aims to…
  3. Mozilla Shows Off First Screenshots of Firefox for Android Just a few days after releasing Firefox for the Nokia…

Related posts brought to you by Yet Another Related Posts Plugin.

View full post on Web Technology News, Social Media and Web Apps

5 Ways an Internet Sales Tax Will Impact Your Online Business by Volusion | Two minute Tuesdays

Posted by magician | Posted in Web | Posted on 10-02-2011

0

In this video, Matt Winn from Volusion discusses 5 ways an internet sales tax will impact your online business. From new software integrations to a shift in local marketing, youll learn how federal legislation creating an online sales tax will change your operations.

While weve seen this type of legislative chatter before, it seems that an internet sales tax has more backing than ever, thanks to a growing deficit and shrinking budgets. But in the event that The Mainstreet Fairness Act is turned into law, what are the ramifications for your online store?

Take a look at these five predictions regardless of your political standing on this issue, youll want to pay attention and start planning ahead.

Related posts:

  1. 5 New Year’s Resolutions for Your Online Business in 2011 by Volusion | Two minute Tuesdays [Video] In today’s episode of Two Minute Tuesday, Volusion’s Matt Winn…
  2. Boost your online sales! Online selling would give a big boost to one’s business….
  3. New IRS Rules Impact Online Sellers in the U.S. Starting on January 1, many U.S.-based businesses and individuals who…

Related posts brought to you by Yet Another Related Posts Plugin.

View full post on Web Technology News, Social Media and Web Apps

Powered by Yahoo! Answers