Featured Post

Global objects with Singleton

Singleton is a software pattern which ensures that there is only one object of an class. Furthermore this object is globally available. I use this pattern in many of my projects for logging, because it’s really efficient, saves memory and easy to implement. You use singleton if there...

Read More

Tutorial: Local game scores with SQLite

Posted by Bartinger | Posted in Tutorials | Posted on 20-02-2011

Tags: , , , ,

4

Create a standard Android-Project, or include the following into your game.
At first we need a class which creates a database if it doesn’t exist and can access the database.

Make a new class and call it ScoreDatabase and extend it from SQLiteOpenHelper