FileDocCategorySizeDatePackage
NotifyingController.javaAPI DocGoogle Android v1.5 Example2049Sun Nov 11 13:01:04 GMT 2007com.google.android.samples.app

NotifyingController

public class NotifyingController extends android.app.Activity
Controller to start and stop a service. The serivce will update a status bar notification every 5 seconds for a minute.

Fields Summary
private android.view.View.OnClickListener
mStartListener
private android.view.View.OnClickListener
mStopListener
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);

        setContentView(R.layout.notifying_controller);

        Button button = (Button) findViewById(R.id.notifyStart);
        button.setOnClickListener(mStartListener);
        button = (Button) findViewById(R.id.notifyStop);
        button.setOnClickListener(mStopListener);