Android a brief intro, slides from Bathcamp

Posted by Kieran on July 21, 2010 under Android, Mobile | Be the First to Comment

My contribution from the Bathcamp evening meet #14 organised by Mike Ellis and Sam Machin

Icon sizes + filenames for iOS devices

Posted by Kieran on July 4, 2010 under Mobile, iPhone | Be the First to Comment

Hopefully someone else will find these useful. Distilled from the Apple guide

  • Icon.png – Home screen icon for iPhone 3 (57×57)
  • Icon@2x.png – Home screen icon for iPhone 4 (114×114)
  • Icon-72.png – Home screen icon for iPad (72×72)
  • Icon-Small.png - Settings/Spotlight icon for iPhone 3 (29×29)
  • Icon-Small@2x.png – Settings/Spotlight icon for iPhone 4 (58×58)
  • Icon-Small-50.png – Spotlight icon for iPad (50×50)
  • iTunesArtwork – Icon for iTunes AdHoc distribution (512×512)

Android future proofing your apps

Posted by Kieran on June 21, 2010 under Mobile, iPhone | Be the First to Comment

Great list of tips from Google developer advocate Reto, on future proofing your apps in the Android market

http://android-developers.blogspot.com/2010/06/future-proofing-your-app.html

The aapt tip for dumping out what features your app requires was certainly new to me!

For anyone who is not aware or newer to Android, I always feel the need to highlight the Draw 9-patch technique as something that  will help immensely when dealing with differing screensizes, and I am sure those that are using vanilla UIImage on iOS devices will come to envy in the future when supporting multiple screen sizes in an easy way that does not require code changes.

The following session video from Google IO on supporting multiple handsets almost goes into far too much detail and makes this problem space seem much harder than it actually is! However I and as am sure many, fully appreciate the highlighting of potential pitfalls that we may run into, rather than having to discover some of these hazards at some point through the development cycle of an application!

For those envious iPhone developers of NinePatch images you may wish to check out the following project http://blog.tortuga22.com/2010/05/31/announcing-tortuga-22-ninepatch/

Rather than banning tools: ideas from Palm to raise the standard of iPhone apps.

Posted by Kieran on April 11, 2010 under Mobile, iPhone | Be the First to Comment

With many channels alight on what people think of the new developer agreement forcing developers to write in “Objective-C, C, C++,or JavaScript as executed by the iPhone OS WebKit engine” you can read John Grubers excellent pieces on what changed and his thoughts on why.

Steve if you believe replied to emails sent stating

“We’ve been there before, and intermediate layers between the platform and the developer ultimately produces sub-standard apps and hinders the progress of the platform.”

Far greater than how something has been written is the problem of shovelware, whilst it allows the store to quote very large numbers of applications compared to the competitors of the app store, how many companies are submitting multiple applications every day of debatable quality or at least that could be combined together. Some of the worst offending companies have been removed from the developer program

So ignoring the arguments on whether what Apple is doing with the new terms in the sdk agreement is right or wrong and what effect it has on native cross platform app development. I was thinking what else they could do for the submission process for their platform if the stated aim is simply to raise the standard of apps, regardless of how they are produced.

One of the reasons for me that the app store has been a success for developers, has been how much easier it is to make an application available to the paid market globally, unfortunately this has meant the friction barrier is so low, that it allows for shovelware to be a positive revenue generating tatic. Thankfully this is actually quite an easy one to stop by implementing a cost barrier like Palm have on their app catalog, quite simply if you wish to make an application available there is a $50 cost. This simple barrier to entry means if the developer doesn’t believe their application is going to return at least $50 they will be unlikely to submit it or burn through cash and be stopped that way.

iPhone Safari exploit uploads sms database

Posted by Kieran on March 25, 2010 under Mobile, iPhone | Be the First to Comment

Some clever people at the PWN2OWN content in Vancouver have managed to prove an exploit involving Safari and the iPhone. Their proof shows how they could execute code from a malicious website to extract the contents of the sms database, you can read full details in
Zynamics press release

Theres a great set of videos explaining buffer overflow attacks starting here
with a hands on demo of return to libc hacks here

Android #londroid live wallpaper slides

Posted by Kieran on February 22, 2010 under Android, Mobile | Be the First to Comment

Slides from the February Android meetup

Know Color released for the iPhone

Posted by Kieran on January 17, 2010 under Mobile, iPhone | Be the First to Comment

Available on iTunes:

http://bit.ly/knowcolor

Amazing how after a few days away from the computer at Xmas can lead to inspiration for a small game, so after I had decided it had been too long since I had made a little fun game and as I wanted to play this myself! I got started, a few days later Know Color was born!

Subsequent posts will show the early stages of this game before there was any artwork and it looked very very different, and some notes on porting this game concept to other platforms.

The app store approval time was truly amazing, with this game being made available for sale 24 hours after submission, so thank you Apple!

For now though here is an app description and some visuals of the game:

Prove you’re smart and know color. Can you beat the Professor and your friends?
A game of speed and skill where you have to select the correct option matching the Professor’s instructions as quickly and accurately as you can. Post your high score to Facebook and Twitter and dare your friends to beat you! Who is the smartest of you all?
In 50 seconds score as high you can, you score one point for each correct answer but will lose 3 points if you answer incorrectly so be careful!
Available on iTunes:
http://bit.ly/knowcolor
View a video here:
http://www.youtube.com/watch?v=dztAKimT5pI
You can find some images of the game here
http://img192.imageshack.us/i/img0422.png/
http://img97.imageshack.us/i/img0424.png/
http://img200.imageshack.us/i/img0425.png/

Prove you’re smart and know color. Can you beat the Professor and your friends?

A game of speed and skill where you have to select the correct option matching the Professor’s instructions as quickly and accurately as you can. Post your high score to Facebook and Twitter and dare your friends to beat you! Who is the smartest of you all?

In 50 seconds score as high you can, you score one point for each correct answer but will lose 3 points if you answer incorrectly so be careful!

View a video on YouTube:

You can find some images of the game here

Tinyline GZIP implementation for JavaME

Posted by Kieran on November 16, 2009 under J2ME, Mobile | Be the First to Comment

One of the parts of JavaME development that always pains me is that for such a resource limited device, in particular when accessing radio networks, is the fact that the zip api is not exposed as standard (despite the fact that the files contained in the JAR itself are zipped)

Andrew Girow has kindly made his lightweight implementation freely available http://tinyline.com/utils/index.html

iPhone 2d game engine Cocos2D

Posted by Kieran on under Mobile, iPhone | Be the First to Comment

Cocos2D is a tremendous opensource resource for the iPhone that is going from strength to strength

http://www.cocos2d-iphone.org/about

Features include

  • Scene management (workflow)
  • Transitions between scenes
  • Sprites and Sprite Sheets
  • Effects: Lens, Ripple, Waves, Liquid, Twirl, etc.
  • Actions (behaviors):
    • Trasformation Actions: Move, Rotate, Scale, Jump, etc.
    • Composable actions: Sequence, Spawn, Repeat, Reverse
    • Ease Actions: Exp, Sin, Cubic, etc.
    • Misc actions: CallFunc, OrbitCamera
  • Basic menus and buttons
  • Integrated physics engine (both Box2d and Chipmunk)
  • Particle system
  • Text rendering support (variable and fixed width fonts)
  • Texture Atlas support
  • Tile Map support
  • Parallax scrolling support
  • Sound support
  • Streak Motion support
  • High Score server (Cocos Live)
  • Touch/Accelerometer support
  • Portrait and Landscape mode
  • Integrated Pause/Resume
  • Fast Textures:Supports PVRTC textures, 16-bit textures and 32-bit textures
  • Language: objective-c
  • Open Source: Compatible with open and closed source projects
  • OpenGL ES 1.1 based

Once you have checked out the latest version from here like so

svn checkout http://cocos2d-iphone.googlecode.com/svn/trunk/ cocos2d-iphone-read-only

navigate to the directory cocos2d-iphone and run the following

. ./install_template.sh

This will install the cocos2d template into xcode for you, which makes setting up and using this framework even easier!
Great demos are available from within the project itself to learn from as well as the wiki documentation which can be found here

Some full open source examples are available from the following links

The greatest part for me personally is the heavy lifting that chipmunk can do for you regarding collisions and physics for your game, the best tutorial I have found for using it is available here

http://www.alexandre-gomes.com/articles/chipmunk/

Adding community features to iPhone apps

Posted by Kieran on November 12, 2009 under Mobile, iPhone | Be the First to Comment

With particular note for free applications that need to increase their “stickyness” to achieve reasonable revenues via in application advertisements such as those provided by Admob, adding community features such as a high score boards and messaging between users.

http://corporate.scoreloop.com/

Provides location aware global high score boards

Ability to post to notifications to Facebook

Issue player challenges

Cross promotion of other games in the score loop system

Example game Wild Solitaire http://linktoapp.com/wild+solitaire

http://www.openfeint.com/

Compare games with friends

Location based scoreboards

game profiles

Achievements

Example game: http://linktoapp.com/alex+the+fox

http://plusplus.com/

Plus Plus is NGMocos private version of the above tools, they do intend to make it open in the future however

Example game: http://linktoapp.com/eliminate