Thursday, 22 December 2011

Some things I've found in development

I've been doing quite a bit of coding (with SpotLog and others) and pushed some apps much further down the development path than before.

Some things I've found:

  • Performance of the built-in SQL-Lite db is really quite good.  At least for select and read operations.  Some insert/update opertions on a large db are a bit slow, but the reads are fast - which is more important for my purposes.
  • The Android ListView is pretty good.  Linked to a db query it can display results from a db and still performs well for large data sets, it can be formatted reasonably and still scales well.
  • Android layouts are a bit weird.  I've not really got them to do what I want and scale and adjust in the way I would like - or at least I don't feel that they are working properly and while I'm getting results that are OK, it seems a bit of a compromise with too many hard-coded values.
  • Code re-use is a bit awkward.  I've developed some classes for things like db access and scolling views - but there doesn't seem to be an easy and obvious way to resuse code in multiple projects.  I've found my own ways round it, but it's still a bit clunky.
  • It's quite easy (and very useful) to spawn a worker thread - so if a task requires lengthy processing it can easily be set off in a worker thread while the main thread continues to handle the UI.

No comments:

Post a Comment