FileDocCategorySizeDatePackage
SendResult.javaAPI DocGoogle Android v1.5 Example2531Sun Nov 11 13:01:04 GMT 2007com.google.android.samples.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 icicle)
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(icicle);

        // 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);