Featured Post

Smart Phone 1.1 – more features for free

So i noticed, that there were to many uninstalls (in my opinion) of Smart Phone Lite. I think I even know the reason for this. I was too strict and locked to many functions in the lite version. So I made an update and decided to call it 1.1, because there are now all 7 settings available in the...

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