»
S
I
D
E
B
A
R
«
Error: “CGGStackRestore: gstack underflow”
Nov 2nd, 2009 by Anish Kumar

Today while I was working with some CoreGraphics API’s, I encountered a error which I was seeing it for the first time. CG for dumping an error “CGGStackRestore: gstack underflow” in the console everytime I invoked a method that was doing some CG based operations. Googling around I found that in CoreGraphics, you can save (CGContextSaveGState) and restore (CGContextRestoreGState) the graphics state. When the  state is saved, a copy is put on the graphics state’s “stack”, and when it is restored, the top state on the stack is removed and used. If we restore the state more times than we save it and then when we try to remove and use the top item of the stack, the stack is empty, causing a stack “underflow” error. So just make sure you have enough save-restore state methods called and it will fix the issue.

CGGStackRestore

CGGStackRestore

Coming Soon: Develop Native iPhone Application Using Actionscript
Oct 20th, 2009 by Anish Kumar

With Flash Professional CS5, we can now build applications for iPhone and iPod touch using ActionScript 3. These applications can be delivered to iPhone and iPod touch users through the Apple App Store. A public beta of Flash Professional CS5 with prerelease support for building applications for iPhone is planned for later this year. At MAX 2009, Adobe showed a number of applications and games for iPhone that have been built using a prerelease version of Flash Professional CS5. The tooling update allows developers to use Flash technologies to develop content for iPhone and iPod touch. Developers can write new code or reuse existing web content to build applications for iPhone. Because the source code and assets are reusable across the Flash Platform runtimes,—Adobe AIR and Flash Player—it also gives developers a way to more easily target other mobile and desktop environments.

Read the rest of this entry »

Titanium User Group Kick Off Meeting
Sep 8th, 2009 by Anish Kumar
Titanium Developer Meet, Bangalore

Titanium Developer Meet, Bangalore

The first Titanium User Group meeting took place in Bangalore on 4th September 2009. The event was organized by Mohammad Khan (The guy in the blue T-Shirt in the snap)and others Of Esberi. The event started at 6:00PM and close to 15 people attended the event. It all began with an introduction to Titanium SDK and how to use the Titanium Developer tool to create applications for both iPhone and Android mobile platform. Since I already had played around using Titanium Developer tool, most of the stuff I heard there about using the tool was already known.

The meet was useful in that I got to learn what are the features and API’s provided by Titanium SDK to write applications for mobile. Some of the code samples shown at the meet were encouraging and I would say the code would be familiar to a person who had already worked on say Adobe Flex. Even for beginners, it’s not so tough to learn it.

Read the rest of this entry »

Best Practices For Creating Video For iPhone
Aug 26th, 2009 by Anish Kumar

Safari supports audio and video viewing in a webpage on the desktop and iPhone OS. You can use audio and video HTML elements or use the embed element to use the native application for video playback. In either case, you need to ensure that the video you create is optimized for the platform and different bandwidths.

iPhone OS streams movies and audio using HTTP over EDGE, 3G, and Wi-Fi networks. iPhone OS uses a native application to play back video even when video is embedded in your webpages. Video automatically expands to the size of the screen and rotates when the user changes orientation. The controls automatically hide when they are not in use and appear when the user taps the screen. This is the experience the user expects when viewing all video on iPhone OS.

Read the rest of this entry »

iPhone OS 3.0 Bug Leads to Disappearing Photos
Aug 21st, 2009 by Anish Kumar
MISC Directory

MISC Directory

After moving to iPhone OS 3.0, from past few days i have been experiencing a strange bug. The camera photos, images saved from the web, or iPhone screenshots are not showing up in the Camera Roll. The iPhone’s Camera Roll keeps a correct cumulative count, and I have no problem transferring the images files to my MacBook  using iPhoto or Picasa. Read the rest of this entry »

iPhone 3GS Battery Percentage Meter
Jul 28th, 2009 by Anish Kumar
iPhone 3GS Battery Meter

iPhone 3GS Battery Meter

iPhone 3GS now supports showing the battery charge level as a percentage rather than just the icon indicator.  Percentage indicator is really helpful. Most of the times I plug the charger to my macbook when it starts showing the battery level at less than 3%. And with iPhone I usually end up plugging the charger only when it shuts down completely running out of battery.  The 10% battery remaining warning is too early.

Unfortunately Apple has put this new option only in new iPhone 3GS. Its not available for iPhone 3G or the 1st gen iPhone. Apple is so cruel.

I wonder what big pain would it cause to Apple to include that feature in all iPhone models. Apple acts crazy.

Error Starting Executable
Jun 18th, 2009 by Anish Kumar
Error Starting Executable

Error Starting Executable

Quite a few times in our iPhone application development cycle we would encounter XCode error “Error Starting Executable – No provisioned iPhone OS device is connected.” even when we know the device is connected to the machine.   This error occurs when the connected device is not configured in the XCode->Organizer. Organizer would fail to mount the device as the version of XCode installed on the developer machine may not support the version of iPhone OS installed on the device.

Read the rest of this entry »

iPhone Online Mockup Creator
Jun 11th, 2009 by Anish Kumar

I found this web based iPhone mockup creator.
Nice tool. Supports sharing the design creation with multiple users and collabrate on the mockup….

iPhone 3GS
Jun 9th, 2009 by Anish Kumar

The all new iPhone 3GS has arrived. ‘S’ standing for speed. The internal hardware has undergone lots of changes while still retaining the same good old look externally. The new iPhone 3GS supposedly loads 2.1x faster to launch Messages, 2.4x to load SimCity, 3.6x faster to load an Excel attachment, 2.9x faster to load a large website.

Read the rest of this entry »