Archive for April, 2011

Titanium Mobile Intro Series: Buffer and Codec

Friday, April 29th, 2011

Welcome to the first in a series of articles about some of the new features we’re releasing in Titanium Mobile 1.7.0. These articles are introductory in scope and provide links to additional resources related to the APIs to help give you a broader understanding of the feature.

This article is concerned with Titanium Buffer, a container for bytes, and Titanium.Codec, methods to convert to and from binary data. These two API additions are primarily used in conjunction with Titanium.Network.Socket and Titanium.Stream which will be introduced over the next few days.

Buffer

Buffers are created from the Titanium module with Titanium.createBuffer(). Buffers are similar to byte arrays in other programming languages but have the ability to be resized. Buffers may be grown by setting the length property to a larger value, or when using the insert() or append() methods. Their length may also be reduced by setting the length property to a smaller value or using the release() method.

Examples

Titanium.Codec

Applications that read and manipulate binary data also require the ability to encode and decode that data into easily recognizable primitive types. The Titanium.Codec module addresses this issue by exposing encoding, decoding, and byte order operations. The Codec module supports conversion of two basic primitive types: Numbers and Strings.

Numeric Conversions

Numeric conversion is provided for the following types: byte, short, int, long, float, and double.

Examples

String Conversions

String conversion is provided using the following character sets: ISO_LATIN1, UTF8, UTF16, UTF16BE, and UTF16LE. Titanium.Codec also suports both Big Endian and Little Endian byte ordering.

Examples

Buffer Creation With Encode

Titanium.createBuffer() has convenience options for creating a buffer from existing data and encoding it into the requested representation in the returned Buffer.

Examples

Additional Resources

Buffer Specification: http://wiki.appcelerator.org/display/guides/Buffer+Spec
Buffer Unit Tests: buffer.js

Codec Specification: http://wiki.appcelerator.org/display/guides/Encoding+Spec
Code Unit Tests: codec.js

Upcoming Appcelerator Events

Tuesday, April 26th, 2011

Event season is gearing up, and Appcelerator is coming to a city near you …

AppNation: Show Me The Money (San Francisco – 4/27-28)

We’re in booth #34, and Jeff Haynie is on a panel: “So Many Platforms, So Little Time: Solving Fragmentation: iOS, Android, and What’ Next?” at 4:40pm on Wednesday 4/27. http://bit.ly/dZgUEF

CodeFab (NYC – 4/29-5/1)

Appcelerator Titan Ben Bahrenburg will help developers create mobile apps on Titanium at CodeFab’s MobileDevCamp NYC. This year the focus is on multi-platform/cross-platform theme with iOS and Android hackers. A few tickets are still available at http://bit.ly/hxdMv0

Red Hat Summit (Boston – 5/3-5/5)

Appcelerator joins Red Hat’s Cloud Pavilion in booth #CL22. Learn how Red Hat developers can build, manage, and deploy cloud-connected mobile applications using Titanium. More information is available at http://www.redhat.com/summit/

J and Beyond Joomla Conference (Kerkrade, Netherlands – 5/6-5/8)

Tony Guntharp, Appcelerator’s Director of Developer Relations, will be delivering the keynote, “Opportunities for the Mobile Cloud.” Join your fellow open-source developers for three days of learning, hacking, and socializing. For more information, visit http://jandbeyond.org/.

Titanium Meetup (Amsterdam – 5/8)

Join Tony Guntharp and other Titanium developers for an informal meetup. http://bit.ly/guLH3a

Titanium Meetup (London – 5/9)

Join Tony Guntharp and other Titanium developers for an informal meetup. http://bit.ly/gjUkEL

Web Directions Unplugged (Seattle, 5/12-13)

HTML5 is fast becoming the way to develop not just web apps, but native apps for platforms like Android, iOS and webOS. Join us for two groundbreaking days of practical development and design presented by leading experts in this exploding field. Visit Appcelerator on the show floor. For more information, visit http://unplugged11.webdirections.org/.

Titanium Mobile 1.6.2 is Released

Monday, April 18th, 2011

We try to be as responsive as possible to our developer needs as well as changes in the mobile landscape.

The reason for the timing of 1.6.2 is we’ve noticed that Apple has added a more stringent check in their App Store acceptance process, and we’ve taken action to make sure your Titanium Mobile App will pass that check.

iOS

  • Push Notifications no longer causing App Store rejections.
  • The spinner should be properly invoked when loading for remote streaming.

Android

  • Added support for Custom Fonts
  • Custom Attributes on Pickers
  • Touch and Click event fixes
  • Facebook updates

Please review the complete Release Notes for Titanium Mobile 1.6.2.

In addition you can review the details in our Platform Engineering JIRA view of R1.6.2 Defects.

Code Strong!
The Appcelerator Team

Announcing Appcelerator’s CODESTRONG Developer Conference!

Monday, April 18th, 2011

Save the date: September 18-20, 2011 – San Francisco, CA

Appcelerator’s CODESTRONG developer conference is coming to the InterContinental Hotel in San Francisco, CA for two jam-packed days of all things Appcelerator: rapid prototyping in Titanium, best practices, what’s coming up in mobile, building your business on Titanium … and more! Come listen to speakers, hang out with the Appcelerator team, and meet fellow Titanium developers!

Tell us what you want to hear about! This is our first Developer Conference and we want you to be a part of it. Click here and vote on the topics that you are most interested in and to suggest some topics of your own.

Registration will open in May. Stay tuned for more details!

Platform Engineering transitioning to JIRA for Issue tracking

Thursday, April 14th, 2011

Hello Titanium Developers,

Today the Platform Engineering team is moving the tracking of our projects from Lighthouse to JIRA.

Impact to external developers

 

During our migration:

  • Lighthouse (LH) projects (Ti Mobile, Ti Desktop) are Archived as you read this, in order to ensure a quality migration.
  • We are planning to go-live with JIRA tomorrow, Friday morning 4/15/11 at or before 7am PDT.

 

During our transition period post-migration:

We are working through new workflows and processes in the following days and weeks.

How do I report Defects and Features?

  • For Defect and Feature submissions on the Titanium Mobile and Titanium Desktop projects let’s follow the feedback process we have in place for Titanium Release Candidates and GA.
    • Customers, please use HelpDesk as per normal workflow and our Customer Engineering group will report issues to JIRA.
    • Community developers, please use Q&A forums to report issues Community staff will report Issues to JIRA

Can I access the new JIRA Projects?

Yes, as of tomorrow morning any developers can sign up and login at: http://jira.appcelerator.org/

  • Click on Projects
  • Choose Titanium Mobile or Titanium Desktop
  • You can click on Issues on Left Hand side to browse various views
  • You can click on the Issues tab and Choose Search For Issues.

Are there Restrictions?

  • Currently all developers can login and view  Issues on the Ti Mobile or Ti Desktop Projects.
  • Also all developers can comment on Issues, we welcome your feedback.
  • During this period of workflow, tools and process investigation, developers cannot create new issues in these projects  however they can add Comments.

Going Forward

The JIRA tracking system will help us continue to achieve, measure and improve our progress toward predictable, time-based, quality releases.

We value your feedback and our goal is to delight our customers by solving issues that are pertinent to their issues and needs. We’ll working to find the best processes and tools to incorporate your issues, ideas, and code into this product which is evolving with your help.

Code Strong!

The Appcelerator Team