Android Open Source - PoopSwoop Title Screen






From Project

Back to project page PoopSwoop.

License

The source code is released under:

GNU General Public License

If you think the Android project PoopSwoop 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

// Title Screen/Splash Screen
package poopswoop.appdata;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.SurfaceView;
import android.view.View;
import android.view.View.OnTouchListener;
public class TitleScreen extends Activity implements OnTouchListener { 
  public void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState);     
    setContentView(R.layout.title_screen);  // sets the layout
    SurfaceView title = (SurfaceView) findViewById(R.id.titleSurface);
    title.setOnTouchListener(this);
    Thread titleThread = new Thread() {
      public void run() {  
      }    /* w w w .  ja va  2s . com*/
    };
    titleThread.start();
  }
  public boolean onTouch(View v, MotionEvent event) {
    if (event.getAction() == MotionEvent.ACTION_DOWN) {
      // if the screen is touched, start selection menu
      finish();
      Intent i = new Intent();
      i.setClassName("poopswoop.appdata",
          "poopswoop.appdata.Selection");
      startActivity(i);
      return true;
    }
    return false;
  }
}




Java Source Code List

jomak.outlinetextview.MainActivity.java
poopswoop.appdata.Bird.java
poopswoop.appdata.GameAlgs.java
poopswoop.appdata.Ponder.java
poopswoop.appdata.Poo.java
poopswoop.appdata.PoopSwoop.java
poopswoop.appdata.Selection.java
poopswoop.appdata.TitleScreen.java