FileDocCategorySizeDatePackage
AttachImage.javaAPI DocAndroid 1.5 API2186Wed May 06 22:42:46 BST 2009com.android.mms

AttachImage

public class AttachImage extends android.app.Activity

Fields Summary
private static final String
TAG
private static final boolean
DEBUG
private static final boolean
LOCAL_LOGV
private static final int
TAG_COMPOSER
Constructors Summary
public AttachImage()


      
    
Methods Summary
protected voidonActivityResult(int requestCode, int resultCode, android.content.Intent intent)

        if (LOCAL_LOGV) {
            Log.v(TAG, "mms.AttachImage.onActivityResult requstCode " + requestCode + "; result is " + resultCode);
        }

        switch (requestCode) {
            case TAG_COMPOSER: {
                finish();
                break;
            }
        }
    
public voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);

        if (LOCAL_LOGV) {
            Log.v(TAG, "mms.AttachImage.onCreate with " + getIntent().getData());
        }

        Intent intent = new Intent();
        intent.setClass(this, ComposeMessageActivity.class);
        intent.putExtra(Intents.EXTRA_CONTENTS, new Uri[] { getIntent().getData() });
        intent.putExtra(Intents.EXTRA_TYPES,    new String[] { "image/*" });
        startActivityForResult(intent, TAG_COMPOSER);