// メッセージを削除
receivedMessage = null;

// 写真を表示する画面に遷移する
Intent intent = new Intent(this, ImageViewActivity.class);
startActivity(intent);