안녕하세요.. 아직 18살 여고생 개발자입니다...ㅠㅠ 간단한 예제를 작성하려 하는데 꼬여서 되지 않습니다 ㅠㅠ 도와주세요

버튼을 클릭하면 다이얼로그가 뜨고 그 안에 내용을 다른 클래스의 내용으로 만들고 싶습니다. 어떻게 해야하나요...


ButtonTest.class

---------------------------------------

package com.example.sms;


import android.app.Activity;

import android.app.Dialog;

import android.os.Bundle;

import android.view.View;

import android.view.View.OnClickListener;

import android.widget.AdapterView;

import android.widget.Button;

import android.widget.EditText;


public class ButtonTest extends Activity{

Button btn ;

Dialog dia;

public void onCreate(Bundle savedInstanceState) {

       super.onCreate(savedInstanceState);

       setContentView(R.layout.main);

       

       btn=(Button)findViewById(R.id.button1);

       

      btn.setOnClickListener(new OnClickListener() {

@Override

public void onClick(View v) {

// TODO Auto-generated method stub

dia=new Dialog(ButtonTest.this);

dia.setContentView(R.layout.activity_sms);

dia.setTitle("번호전송");

btn.setOnClickListener(new OnClickListener() {


@Override

public void onClick(View v) {

// TODO Auto-generated method stub

dia.dismiss();

}

});

dia.show();

}

});

   }

}

-----------------------------------------------------------------------------
SMS.class
-----------------------------------------------------------------------------
package com.example.sms;

import android.app.Activity;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.telephony.gsm.SmsManager;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class SMS extends Activity {
 /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sms);
        
        Button sendBtn = (Button) findViewById(R.id.sendSmsBtn);
        sendBtn.setOnClickListener(new OnClickListener(){

   @Override
   public void onClick(View v) {
    // TODO Auto-generated method stub
    EditText addrTxt = (EditText) SMS.this.findViewById(R.id.addrEditText);
    EditText msgTxt = (EditText) SMS.this.findViewById(R.id.msgEditText);
    
    try {
     sendSMS(addrTxt.getText().toString(), msgTxt.getText().toString());
     
     Toast.makeText(SMS.this, "SMS 발송 완료", Toast.LENGTH_LONG).show();
     
    } catch (Exception e) {
     Toast.makeText(SMS.this, e.toString(), Toast.LENGTH_LONG).show();
     e.printStackTrace();
    }
   }
        });
    }

 protected void sendSmsMessage(String address, String message) throws Exception {
  // TODO Auto-generated method stub
        SmsManager sms = SmsManager.getDefault();
        sms.sendTextMessage(address, null, message, null, null);       

 }
 
 private void sendSMS(String phoneNumber, String message) {        
        String SENT = "SMS_SENT";
        String DELIVERED = "SMS_DELIVERED";
 
        PendingIntent sentPI = PendingIntent.getBroadcast(this, 0,
            new Intent(SENT), 0);
 
        PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0,
            new Intent(DELIVERED), 0);
 
        //---when the SMS has been sent---
        registerReceiver(new BroadcastReceiver(){
            public void onReceive(Context arg0, Intent arg1) {
                switch (getResultCode())
                {
                    case Activity.RESULT_OK:
                        Toast.makeText(getBaseContext(), "SMS sent", Toast.LENGTH_SHORT).show();
                        break;
                    case SmsManager.RESULT_ERROR_GENERIC_FAILURE:
                        Toast.makeText(getBaseContext(), "Generic failure", Toast.LENGTH_SHORT).show();
                        break;
                    case SmsManager.RESULT_ERROR_NO_SERVICE:
                        Toast.makeText(getBaseContext(), "No service", Toast.LENGTH_SHORT).show();
                        break;
                    case SmsManager.RESULT_ERROR_NULL_PDU:
                        Toast.makeText(getBaseContext(), "Null PDU", Toast.LENGTH_SHORT).show();
                        break;
                    case SmsManager.RESULT_ERROR_RADIO_OFF:
                        Toast.makeText(getBaseContext(), "Radio off", Toast.LENGTH_SHORT).show();
                        break;
                }
            }
        }, new IntentFilter(SENT));
 
        //---when the SMS has been delivered---
        registerReceiver(new BroadcastReceiver(){
            @Override
            public void onReceive(Context arg0, Intent arg1) {
                switch (getResultCode())
                {
                    case Activity.RESULT_OK:
                        Toast.makeText(getBaseContext(), "SMS delivered", 
                                Toast.LENGTH_SHORT).show();
                        break;
                    case Activity.RESULT_CANCELED:
                        Toast.makeText(getBaseContext(), "SMS not delivered", 
                                Toast.LENGTH_SHORT).show();
                        break;                        
                }
            }
        }, new IntentFilter(DELIVERED));        
 
        SmsManager sms = SmsManager.getDefault();
        sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);        
    }
 
 @Override
 protected void onDestroy() {
  // TODO Auto-generated method stub
  super.onDestroy();
 } 
}
------------------------------------------------------------------------------------

저 ButtonTest의 다이얼로그 안에 SMS.class의 내용을 넣고 그대로 구동시키려고 합니다. 어떻게 해야하나요 ㅠㅠㅠ
dia.setContentView(R.layout.activity_sms);<<안에 다른 class를 어떻게 부를까요