Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.caliper.fat;
- import android.os.Bundle;
- import android.app.Activity;
- import android.view.Menu;
- import android.widget.TextView;
- public class Display extends Activity {
- String result;
- TextView tvResult;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.display);
- tvResult = (TextView)findViewById(R.id.tvResult);
- Bundle getPacket = getIntent().getExtras();
- result = getPacket.getString("giveResults");
- tvResult.setText(result);
- }
- @Override
- public boolean onCreateOptionsMenu(Menu menu) {
- // Inflate the menu; this adds items to the action bar if it is present.
- getMenuInflater().inflate(R.menu.display, menu);
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement