Android Open Source - toyapp Toy Hello World Activity






From Project

Back to project page toyapp.

License

The source code is released under:

Copyright (c) 2013, Chris Dawes All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * ...

If you think the Android project toyapp 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.advancedtelematic.toyapp;
//from w  w  w  . ja  v  a2  s . com
import android.app.Activity;
import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;

public class ToyHelloWorldActivity extends AndroidApplication {
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
        cfg.useAccelerometer = false;
        cfg.useCompass = false;
        cfg.useWakelock = true;
        cfg.useGL20 = true;
        initialize(new MyToyApp(), cfg);
    }
}




Java Source Code List

com.advancedtelematic.toyapp.AboutScreen.java
com.advancedtelematic.toyapp.AbstractScreen.java
com.advancedtelematic.toyapp.DesktopStarter.java
com.advancedtelematic.toyapp.GameScreen.java
com.advancedtelematic.toyapp.MainScreen.java
com.advancedtelematic.toyapp.MyToyApp.java
com.advancedtelematic.toyapp.ToyHelloWorldActivity.java