Skip to content

Commit

Permalink
Play vs computer, splash page
Browse files Browse the repository at this point in the history
  • Loading branch information
Neugebauer committed Feb 2, 2012
1 parent e808237 commit 4a8104d
Show file tree
Hide file tree
Showing 9 changed files with 664 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .classpath
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
33 changes: 33 additions & 0 deletions .project
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ThreeBy3Activity</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
5 changes: 5 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,5 @@
#Mon Jan 30 20:33:04 EST 2012
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.source=1.5
16 changes: 11 additions & 5 deletions AndroidManifest.xml
Expand Up @@ -10,14 +10,20 @@
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".ThreeBy3Activity"
android:label="@string/app_name" >
<intent-filter>
android:name=".Splash"
android:label="@string/app_name">
<intent-filter >
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ThreeBy3Activity"
android:label="@string/app_name">
<intent-filter>
<action android:name="com.example.thor.threeby3.THREEBY3ACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>

</manifest>
Binary file added res/drawable-hdpi/tttsplash.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions res/layout/main.xml
Expand Up @@ -167,5 +167,11 @@
android:layout_gravity="center"
android:gravity = "center">
</TextView>

<CheckBox
android:id="@+id/checkBoxAI"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Vs Computer" />

</TableLayout>
8 changes: 8 additions & 0 deletions res/layout/splash.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background = "@drawable/tttsplash"
>
</LinearLayout>
39 changes: 39 additions & 0 deletions src/com/example/thor/threeby3/Splash.java
@@ -0,0 +1,39 @@
package com.example.thor.threeby3;

import android.app.Activity;
import android.content.Intent;
//import android.media.MediaPlayer;
import android.os.Bundle;

public class Splash extends Activity{

// MediaPlayer ourSong;
@Override
protected void onCreate(Bundle TTTTime) {
super.onCreate(TTTTime);
// ourSong = MediaPlayer.create(Splash.this, R.raw.tttsplash);
// ourSong.start();
setContentView(R.layout.splash);
Thread timer = new Thread(){
public void run(){
try{
sleep(3000);
} catch(InterruptedException e) {
e.printStackTrace();
} finally {
Intent openStartingPoint = new Intent("com.example.thor.threeby3.THREEBY3ACTIVITY");
startActivity(openStartingPoint);
}
}
};
timer.start();
}

// @Override
// protected void onPause() {
// // TODO Auto-generated method stub
// super.onPause();
// ourSong.release();
// finish();
// }
}

0 comments on commit 4a8104d

Please sign in to comment.