FileDocCategorySizeDatePackage
NotifyingController.javaAPI DocAndroid 1.5 API2082Wed May 06 22:41:08 BST 2009com.example.android.apis.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 savedInstanceState)

        super.onCreate(savedInstanceState);

        setContentView(R.layout.notifying_controller);

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