The Database will store all the Levels and the records information. There are public methods to fetch levels by type, create records, fetch records and fetch stars.

Table: levels

    • _id – unique identifier
    • level_type – level type, tutorial or normal
    • level_shots – total number of shots
    • level_name – level name

Table: records

    • _id – unique identifier
    • level_id – level id
    • record_score – total score
    • record_misses – total misses

DatabaseAdapter.java

For more information, check the comments and logs inside the code.

SVN Project:

PingPong Madness Tutorial – Part 06 SVN

APK:

PingPong Madness Tutorial – Part 06.apk

Tutorial: