Skip navigation

Tag Archives: iPhone

Android 1 – iPhone 0 (eventually sorted though)

I have used PhoneGap before without the aid of Dreamweaver and although it works well the setup process is a little complex and I never really got it working for IPhone on my Mac. A lot of students have been asking for training sessions for writing apps so I thought that the CS5.5 / PhoneGap integration might streamline the whole process. As with most things Adobe do the workflow is very simple and when using the jQuery mobile template and exporting out to Android everything worked really well. The problems came when I started trying to export for the IPhone (Surprise surprise). The main issue was that once I pointed the setting to the the developer folder at the root of my hard drive and clicked build and emulate I got an error:

The build of application failed to complete successfully

After hunting round in the settings for a while I decided to hit up Google. I found the solution in the Adobe forums, here is the link:

http://forums.adobe.com/message/4170843#4170843

I was unsure if I was supposed to change the camera.h file @

/Users/alcwynparker/Documents/DW_NAF

or

/Applications/Adobe Dreamweaver CS5.5/Configuration/NativeAppFramework/DWPhoneGap

So I changed them both for good measure and everything now works fine.

Try to keep up! The statement I have been telling myself a lot recently. The shift to HTML5 and CSS3 has left me scrambling for browser support comparisons and video encoding specifications. Web technologies like tectonic plates are shifting, some struggling to find their place while others are emerging powerful with claims of modularity and future proofing. All this change has rekindled my love for web development but there have been a couple of changes that I really want to shout about so here it goes:

Starting with the most obvious first – jQuery

This JavaScript library is an awesome alternative to the Flash based websites of the past. Don’t get me wrong I am addicted to AS3 and spend a lot of time tinkering with FLAR Toolkit (Flash augmented reality), Papervision 3d and APE (Actionscript physics engine) but the idea of having to install a third party plug-in to view a standard web page seems a little outdated. jQuery is a very capable library allowing tweening, DOM manipulation (Document object model) and AJAX capabilities all in an easy simple to implement package. I am not convinced that Flash will be run out-of-town by this JavaScript alternative, instead the technologies will settle in their own rightful places.

I love the power and ease of use that the processing.org java framework provides so I was excited to hear that an evolution of this framework has been developed, again utilizing the power of JavaScript. processingjs.org is a port of processing that runs within the browser without having to install a third-party plug-in (Are you starting to notice a pattern here?) The port has most of the important features of its parent and renders them within the HTML5 canvas tag. I have not had time to experiment with processingjs.org but if it’s as addictive as processing is then my schedule is about to be ruined. This is also a good example of why the move from HTML4 to HTML 5 was so important.

The last few changes that I find interesting are still based around the wonders of JavaScript but this time focusing on mobile technologies. If you have experience with jQuery then you will probably enjoy using jQtouch. The official site describes jQtouch as a “jQuery plugin for mobile web development on the iPhone, iPod Touch, and other forward-thinking devices.” I presume by forward thinking devices they mean other touch screen equivalents to the iPhone. This plug-in allows a developer to emulate a lot of the UI style and functionality of the iPhone within their mobile website. This means that a developer can bypass the rigmarole of getting that app accepted and published in the app store as long as they don’t mind it being run in the browser of the phone instead of installed on the phone itself.

Last but not least I want to talk about PhoneGap. PhoneGap allows you to write apps for many different smart-phones using HTML and JavaScript. I recently spent some time experimenting with the iPhone SDK and learning a bit about xCode (from what I can see xCode is another name for objective C.) The process is very bloated and slow, probably due to my lack of experience in objective C. There are a lot of well written tutorials around though so eventually I managed to get a couple of apps running reasonably well. This being said at the time I had not heard of phoneGap but if I had then I probably would have achieved my end goal in half the time. Not to mention the fact the finish article could have been exported for not just the iPhone but also Android, Symbian and Blackberry phones. What a breath of fresh air.

The underlying theme here is most definitely that 2010 is a good year for JavaScript. There are still some issues with browser compatibility and these are mainly down to Internet Explorer none the less I am excited to see what else can be achieved with a language that has been built into browsers ever since Netscape in 1995.

%d bloggers like this: