Advertisement
arnarg

Display

Jan 7th, 2013
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. package com.caliper.fat;
  2.  
  3. import android.os.Bundle;
  4. import android.app.Activity;
  5. import android.view.Menu;
  6. import android.widget.TextView;
  7.  
  8. public class Display extends Activity {
  9.     String result;
  10.     TextView tvResult;
  11.     @Override
  12.     protected void onCreate(Bundle savedInstanceState) {
  13.         super.onCreate(savedInstanceState);
  14.         setContentView(R.layout.display);
  15.         tvResult = (TextView)findViewById(R.id.tvResult);
  16.         Bundle getPacket = getIntent().getExtras();
  17.         result = getPacket.getString("giveResults");
  18.         tvResult.setText(result);
  19.        
  20.     }
  21.  
  22.     @Override
  23.     public boolean onCreateOptionsMenu(Menu menu) {
  24.         // Inflate the menu; this adds items to the action bar if it is present.
  25.         getMenuInflater().inflate(R.menu.display, menu);
  26.         return true;
  27.     }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement