Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Re-adding the original README file. afaik if you're not on this list,…

… you're not part of zbridge
  • Loading branch information...
commit 28363708d097ef1abc5fb37bc2a9b6227352dad4 1 parent d57dd59
muralig authored
Showing with 66 additions and 49 deletions.
  1. +11 −0 README
  2. +55 −49 src/im/crate/bridge/clutter/Intro.java
View
11 README
@@ -0,0 +1,11 @@
+Clutter
+=======
+
+A language game for Android. Created by these hackers at NoiseBridge:
+
+Aditya Bhargava
+Robert Fletcher
+Aaron Miller
+Murali Gudipati
+Michael
+Christian
View
104 src/im/crate/bridge/clutter/Intro.java
@@ -11,53 +11,59 @@
import android.view.Window;
import android.widget.Button;
-public class Intro extends Activity implements OnClickListener {
- /** Called when the activity is first created. */
- Button start, instructions;
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- requestWindowFeature(Window.FEATURE_NO_TITLE);
- setContentView(R.layout.intro);
-
- start = (Button)findViewById(R.id.start);
- start.setOnClickListener(this);
-
- instructions = (Button)findViewById(R.id.instructions);
- instructions.setOnClickListener(this);
-
- }
-
- public void onClick(View v) {
- // TODO Auto-generated method stub
- if (v.equals(start)){
- Intent intent = new Intent();
- intent.setClass(this, Clutter.class);
- startActivity(intent);
- }else if (v.equals(instructions)){
- Intent intent = new Intent();
- intent.setClass(this, Instructions.class);
- startActivity(intent);
- }
- }
-
- @Override
- public boolean onCreateOptionsMenu(Menu menu)
- {
- super.onCreateOptionsMenu(menu);
- MenuInflater inflater = getMenuInflater();
- inflater.inflate(R.menu.settings, menu);
- return true;
- }
-
- @Override
- public boolean onOptionsItemSelected(MenuItem item)
- {
- if(item.getItemId() == R.id.settings)
- {
- startActivity(new Intent(this, Prefs.class));
- return true;
- }
- return false;
- }
+public class Intro extends Activity implements OnClickListener
+{
+ /** Called when the activity is first created. */
+ Button start, instructions;
+
+ @Override
+ public void onCreate(Bundle savedInstanceState)
+ {
+ super.onCreate(savedInstanceState);
+ requestWindowFeature(Window.FEATURE_NO_TITLE);
+ setContentView(R.layout.intro);
+
+ start = (Button) findViewById(R.id.start);
+ start.setOnClickListener(this);
+
+ instructions = (Button) findViewById(R.id.instructions);
+ instructions.setOnClickListener(this);
+
+ }
+
+ public void onClick(View v)
+ {
+ // TODO Auto-generated method stub
+ if (v.equals(start))
+ {
+ Intent intent = new Intent();
+ intent.setClass(this, Clutter.class);
+ startActivity(intent);
+ } else if (v.equals(instructions))
+ {
+ Intent intent = new Intent();
+ intent.setClass(this, Instructions.class);
+ startActivity(intent);
+ }
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu)
+ {
+ super.onCreateOptionsMenu(menu);
+ MenuInflater inflater = getMenuInflater();
+ inflater.inflate(R.menu.settings, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item)
+ {
+ if (item.getItemId() == R.id.settings)
+ {
+ startActivity(new Intent(this, Prefs.class));
+ return true;
+ }
+ return false;
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.