package com.letscode.lcg;

import java.util.Random;

import android.os.Bundle;

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

public class MainActivity extends AndroidApplication {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
        cfg.useGL20 = false;
        String nickname = "Player " + (new Random().nextInt(12415124));
        
        initialize(new LcgApp("localhost", nickname), cfg);
    }
}
package com.letscode.lcg;

import java.util.Random;

import android.os.Bundle;

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

public class MainActivity extends AndroidApplication {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
        cfg.useGL20 = false;
        String nickname = "Player " + (new Random().nextInt(12415124));
        
        initialize(new LcgApp("localhost", 80, nickname), cfg);
    }
}
Set default port for Android device.
Set default port for Android device.
