After reading the Nodepad tutorial for Android, which uses the SQLlite
database, I decided to write a version of the same app that uses an
off-board database.  I replaced the SQLlite database adapter class
with a NextDBAdapter class that communicates with the NextDB.net
servers to execute queries, inserts, updates and deletes.  I also
enhanced the example code to make the database calls outside the main
thread, using AsyncTask.  The code is intentionally simple and short,
but it provides a good starting point to using the NextDB.net system
to store application data off-board-- in the "cloud" (I apologize for
the buzzwordery).

Here is the code:

http://code.google.com/p/nextdb/source/browse/#svn/trunk/mobile/android/

The benefits of using an off-board database, over the on-board SQLlite
database is that the data can be shared with other apps, allowing
phone to phone communication.  Also since NextDB has both REST and
AJAX API's, you can also communicate between the phone and the web.
This is an overview on the NextDB.net wiki:

http://nextdb.net/wiki/en/Android

Enjoy,

Brent

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to