Android - Removing a dialog themed activity
<p>Android 2.1 via eclipse</p>

<p>I have an activity that opens a dialog themed activity via checkbox onChecked function</p>

<p>Im creating this new dialog themed activity with an Intent.</p>

<p>Problem is, how do i dismiss the dialog themed activity once i finish with it? (the way it stands now, i have to send a new intent in order to go back to the previous activity via click of a button)</p>

<p>Any help would be greatly apprieciated!</p>

<p>Code snippet:</p>

<p>Main activity:</p>

<pre><code>cbReminder.setOnCheckedChangeListener(new OnCheckedChangeListener() {

    public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
        if (isChecked)
        {                   
            Intent intent = new Intent(getApplicationContext(), DateTimeDialog.class);
            startActivity(intent);
        }
    }
});
</code></pre>

<p>Dialog themed activity:</p>

<pre><code>public void onClick(View v) {
    if (v.getId() == R.id.b_datetime_save)
    {

    }
    else if (v.getId() == R.id.b_datetime_cancel)
    {
        finish();
        Intent intent = new Intent(getApplicationContext(), MakeNoteActivity.class);
        startActivity(intent);
    }
}
</code></pre>
