FileDocCategorySizeDatePackage
SendResult.javaAPI DocAndroid 1.5 API2622Wed May 06 22:41:08 BST 2009com.example.android.apis.app

SendResult

public class SendResult extends android.app.Activity
Example of receiving a result from another activity.

Fields Summary
private android.view.View.OnClickListener
mCorkyListener
private android.view.View.OnClickListener
mVioletListener
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)
Initialization of the Activity after it is first created. Must at least call {@link android.app.Activity#setContentView setContentView()} to describe what is to be displayed in the screen.

        // Be sure to call the super class.
        super.onCreate(savedInstanceState);

        // See assets/res/any/layout/hello_world.xml for this
        // view layout definition, which is being set here as
        // the content of our screen.
        setContentView(R.layout.send_result);

        // Watch for button clicks.
        Button button = (Button)findViewById(R.id.corky);
        button.setOnClickListener(mCorkyListener);
        button = (Button)findViewById(R.id.violet);
        button.setOnClickListener(mVioletListener);