Posts Tagged: android


3
Nov 11

Sugar my Droid

Before I started developing on Android in early 2009, I had very much enjoyed the blessings of Ruby’s ActiveRecord object-relational adapter which makes development very easy and fast compared to such heavyweight und – for my taste – cumbersome approaches as the DAO/JPA-Template/Hibernate layer cake that is commonly found in the Spring-dominated world of Java server development. But what I encountered when I first used Android’s way of creating and accessing SQLite databases was even worse than that. You get the least thinkable amount of support from the system and have to write your mapping and persistence logic (table creation, finders, etc.) as a thin layer directly on top of the SQL query interface.

Hurz.

As a remedy, I used and still useĀ SQLiteGen in some of my projects, which generates a glue layer in the form of Java beans, as directed by the developer through Java annotations. It works, but project development seems to have run dry and the current version could use several improvements.

That’s why I started to look for something new and, a few weeks ago, stumbled across Sugar, a simple but effective object-relational mapper that imitates the behavior of ActiveRecord, mainly by using reflection to inspect the data structures that are mapped to database tables. I liked its general approach and forked Sugar on GitHub to convert it into an Android library project, fix some issues and inject new features, such as support for Enum-typed fields. If you are a an Android developer looking for an alternative way of mapping between your application model and your database, maybe you should give Sugar a spin.


3
Sep 09

Hoccer

I use this posting for blatantly advertising one of the development projects I was recently involved in – an Android application called Hoccer. It was released by ART+COM Technologies as a free app on the Android Market and as entry for the 2nd Android Developer Challenge.

The aim of Hoccer is to simplify the process of sharing data (currently pictures and contacts) between devices – you use certain gestures for one-to-one (tap) or one-to-many (throw/catch) to determine sender and receiver(s) and the data is transferred over the internet subsequently, so no other mechanism of pairing etc. is needed.

An iPhone version is currently under development, and there’s a web client to hoc data from a desktop computer to a mobile device, so no one’s left out.


Better Tag Cloud