Android Open Source - ARGiE D B Test






From Project

Back to project page ARGiE.

License

The source code is released under:

MIT License

If you think the Android project ARGiE listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package headrick.brandon.utilities;
/*from   w w  w  .ja  va 2 s.  co m*/
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class DBTest extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_main);
         
        DatabaseHandler db = new DatabaseHandler(this);
         
        /**
         * CRUD Operations
         * */
        // Inserting quests
        Log.d("Insert: ", "Inserting .."); 
        
        //db.clearTable();
        
        /*
        LatLng point = new LatLng(1.11, 2.22);
        
        db.addQuestNode(new QuestNode("title1", point, "script1", "answer1"));        
        db.addQuestNode(new QuestNode("title2", point, "script2", "answer2"));
        db.addQuestNode(new QuestNode("title3", point, "script3", "answer3"));
        db.addQuestNode(new QuestNode("title4", point, "script4", "answer4"));
        db.addQuestNode(new QuestNode("title5", point, "script5", "answer5"));
         
        // Reading all quests
        Log.d("Reading: ", "Reading all quests.."); 
        List<QuestNode> questNodes = db.getAllQuestNodes();       
         
        for (QuestNode qn : questNodes) {
            String log = "Id: "+qn.getId()+" ,title: " + qn.getTitle() + " ,script: " + qn.getScript()
                + " ,latitude: " + qn.getLatitude() + " ,longitude: " + qn.getLongitude();
                // Writing quests to log
        Log.d("db output: ", log);
        }
        */
    }
}




Java Source Code List

android.UnusedStub.java
headrick.brandon.activities.AboutScreenActivity.java
headrick.brandon.activities.CreateGameActivity.java
headrick.brandon.activities.EditQuestActivity.java
headrick.brandon.activities.GameChooserActivity.java
headrick.brandon.activities.GameOptionsActivity.java
headrick.brandon.activities.RunGameActivity.java
headrick.brandon.activities.SettingsActivity.java
headrick.brandon.activities.SplashActivity.java
headrick.brandon.activities.TitleScreenActivity.java
headrick.brandon.gamedata.Constants.java
headrick.brandon.gamedata.GameSettingsState.java
headrick.brandon.gamedata.GameState.java
headrick.brandon.models.BaseGame.java
headrick.brandon.models.QuestNode.java
headrick.brandon.models.WaypointGame.java
headrick.brandon.utilities.DBReadWrite.java
headrick.brandon.utilities.DBTest.java
headrick.brandon.utilities.DatabaseHandler.java
headrick.brandon.utilities.MapHelper.java