Android Open Source - 29onlinemultiplayer Constants






From Project

Back to project page 29onlinemultiplayer.

License

The source code is released under:

MIT License

If you think the Android project 29onlinemultiplayer 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 com.shaheed.online29;
//from ww w  .  ja v  a  2s  . co  m
import android.app.Activity;

/**
 * Created by Shaheed on 11/17/2014.
 */
public class Constants {

    public static final String URL_REGISTRATION = "http://10.0.3.2:8080/Online29/RegistrationServlet";
    public static final String URL_LOGIN = "http://10.0.3.2:8080/Online29/LoginServlet";
    public static final String URL_CREATE = "http://10.0.3.2:8080/Online29/CreateGameServlet";
    public static final String URL_GAMELIST = "http://10.0.3.2:8080/Online29/GameList";
    public static final String URL_JOINGAME = "http://10.0.3.2:8080/Online29/JoinGameServlet";

    public static final String METHOD_GET = "GET";

    public static String username;
    public static int actionUserId = 0;

    public static Boolean hostingGame = false;
    public static Boolean joiningGame = false;
    public static String gameId = "0";

    public static void quitButton(Activity activity){
        activity.finish();
        System.exit(0);
    }

}




Java Source Code List

.CreateGameServlet.java
.DatabaseHandler.java
.GameList.java
.JoinGameServlet.java
.LoginServlet.java
.RegistrationServlet.java
com.shaheed.online29.AccountMenuActivity.java
com.shaheed.online29.AccountMenu.java
com.shaheed.online29.ApplicationTest.java
com.shaheed.online29.Constants.java
com.shaheed.online29.GameActivity.java
com.shaheed.online29.GameJoinerActivity.java
com.shaheed.online29.GameListActivity.java
com.shaheed.online29.GameListAdapter.java
com.shaheed.online29.GameList.java
com.shaheed.online29.JsonParser.java
com.shaheed.online29.LoginActivity.java
com.shaheed.online29.RegistrationActivity.java
com.shaheed.online29.StartActivity.java
com.shaheed.online29.Variables.java