Android Open Source - FallApp Activity Display






From Project

Back to project page FallApp.

License

The source code is released under:

MIT License

If you think the Android project FallApp 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 ie.lc.fallApp;
// w  ww .jav a  2 s.com
import android.os.Bundle;
import android.app.Activity;
import android.view.*;
import android.view.View.OnClickListener;
import android.widget.*;





public class ActivityDisplay extends Activity
{
  protected void onCreate( Bundle savedInstanceState ) {
    super.onCreate( savedInstanceState );
    setContentView( R.layout.activity_display );
    setupComponents();
    setupActions();
  }
  
  
  
  
  
  public boolean onCreateOptionsMenu( Menu menu ) {
    getMenuInflater().inflate( R.menu.display, menu );
    return true;
  }
  
  
  
  
  
  private void setupComponents() {
    TextView bigText = (TextView) findViewById( R.id.bigText );
    Bundle   data    = getIntent().getExtras();
    
    if (data.containsKey( Common.displayHeightIdentifier )) {
      String text = data.getString( Common.displayHeightIdentifier );
      bigText.setText( text );
    }
  }
  
  
  
  
  
  private void setupActions()  {
    Button backButton = (Button) findViewById( R.id.backButton );
    
    backButton.setOnClickListener( new OnClickListener() {
      public void onClick( View v ) {
        finish();
      }
    });
  }
}




Java Source Code List

ie.lc.fallApp.ActivityDisplay.java
ie.lc.fallApp.ActivityFallHeight.java
ie.lc.fallApp.ActivityOptions.java
ie.lc.fallApp.Common.java
ie.lc.fallApp.Interlock.java
ie.lc.fallApp.Physics.java
ie.lc.fallApp.Planet.java
ie.lc.fallApp.TextWatcherAdapter.java