Guest User

Untitled

a guest
Aug 8th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. // Get the message from the intent
  2.         Intent intent = getIntent();
  3.         String message_intent = intent.getStringExtra(MainActivity.EXTRA_MESSAGE);
  4.  
  5.         // Create the text view
  6.         TextView MytextView = (TextView) findViewById(R.id.text_msg);
  7.         //TextView MytextView = new TextView(this);
  8.         MytextView.setText(message_intent);
  9.  
  10.         // Set the text view as the activity layout
  11.         setContentView(R.layout.activity_display_message);
Advertisement
Add Comment
Please, Sign In to add comment