FileDocCategorySizeDatePackage
FakePhoneActivity.javaAPI DocAndroid 1.5 API2798Wed May 06 22:42:46 BST 2009com.android.phone

FakePhoneActivity

public class FakePhoneActivity extends android.app.Activity
A simple activity that presents you with a UI for faking incoming phone operations.

Fields Summary
private static final String
TAG
private android.widget.Button
mPlaceCall
private android.widget.EditText
mPhoneNumber
com.android.internal.telephony.test.SimulatedRadioControl
mRadioControl
Constructors Summary
Methods Summary
public voidonCreate(android.os.Bundle icicle)


    
        
        super.onCreate(icicle);

        setContentView(R.layout.fake_phone_activity);

        mPlaceCall = (Button) findViewById(R.id.placeCall);
        mPlaceCall.setOnClickListener(new ButtonListener());

        mPhoneNumber = (EditText) findViewById(R.id.phoneNumber);
        mPhoneNumber.setOnClickListener(
                new View.OnClickListener() {
                    public void onClick(View v) {
                        mPlaceCall.requestFocus();
                    }
                });

        mRadioControl = PhoneApp.getInstance().phone.getSimulatedRadioControl();

        Log.i(TAG, "- PhoneApp.getInstance(): " + PhoneApp.getInstance());
        Log.i(TAG, "- PhoneApp.getInstance().phone: " + PhoneApp.getInstance().phone);
        Log.i(TAG, "- mRadioControl: " + mRadioControl);