Android Open Source - ConnectedSpace Android Launcher






From Project

Back to project page ConnectedSpace.

License

The source code is released under:

Copyright (c) 2015, Shreyas Raman <skraman1999@gmail.com>.

If you think the Android project ConnectedSpace 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 me.shreyasr.connected.android;
// ww  w  . j  a  v a  2  s.  c  o m
import android.os.Bundle;
import android.util.Log;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;

import java.net.InetAddress;
import java.net.UnknownHostException;

import me.shreyasr.connected.ConnectedSpace;
import me.shreyasr.connected.android.util.AndroidAddressUtils;
import me.shreyasr.connected.network.NetworkHandler;

public class AndroidLauncher extends AndroidApplication {

    public static NetworkHandler network;

  @Override
  protected void onCreate (Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
        InetAddress broadcast = null;
        try {
            broadcast = AndroidAddressUtils.getBroadcastAddress(this);
        } catch (UnknownHostException e) {
            Gdx.app.log("FAIL", "Failed to init address", e);
        }
        Log.d("BROADCAST", broadcast != null ? broadcast.toString() : "null");
        initialize(new ConnectedSpace(network, broadcast), config);
    }
}




Java Source Code List

me.shreyasr.connected.ConnectedSpace.java
me.shreyasr.connected.android.AndroidLauncher.java
me.shreyasr.connected.android.activity.ClientListAdapter.java
me.shreyasr.connected.android.activity.LobbyActivity.java
me.shreyasr.connected.android.networking.BroadcastListenerThread.java
me.shreyasr.connected.android.networking.ConnectionThread.java
me.shreyasr.connected.android.networking.HeartbeatThread.java
me.shreyasr.connected.android.networking.LobbyManager.java
me.shreyasr.connected.android.networking.ServerSocketThread.java
me.shreyasr.connected.android.util.AndroidAddressUtils.java
me.shreyasr.connected.android.util.Client.java
me.shreyasr.connected.desktop.DesktopLauncher.java
me.shreyasr.connected.entities.Laser.java
me.shreyasr.connected.entities.Star.java
me.shreyasr.connected.network.NetworkHandler.java
me.shreyasr.connected.util.MathHelper.java
me.shreyasr.connected.util.SpriteSheet.java