Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Intent Activity

  Intent intent = new Intent(this, DisplayMessageActivity.class);
        EditText editText = (EditText) findViewById(R.id.editTextTextPersonName);
        String message = editText.getText().toString();
        intent.putExtra(EXTRA_MESSAGE, message);
        startActivity(intent);
        
        /*this intent takes us to the activity named DisplayMessageActivity*/
        /*it also carries with us the text message*/
 
PREVIOUS NEXT
Tagged: #Intent #Activity
ADD COMMENT
Topic
Name
6+6 =