ユーザーが写真を撮ってウェブサイトにアップロードするアプリがあります。
私は今このコードを持っています:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == CAMERA_PIC_REQUESTED) {
if(resultCode == RESULT_OK) {
// Maybe add the additional code here?
picture = convertImageUriToFile(imageUri, this);
Thread thread = new Thread(null, uploader, "MagentoBackground");
thread.start();
m_ProgressDialog = ProgressDialog.show(pictures.this, "Please wait...", "Uploading data ...", true, true);
}
} else if (requestCode == EXPERIMENT_CODE) {
if (resultCode == Activity.RESULT_OK) {
experimentInput.setText("" + data.getExtras().getInt("edu.cs.h.exp_id"));
}
}
}
ただし、画像をダウンロードする前に、ユーザーが画像を説明するために選択できるアイテムのリストを含むスピナー (ドロップダウン メニュー) を表示するレイアウトを追加したいと考えています。
OK画像がアップロードされる前に新しいレイアウトが表示され、ユーザーが選択を行ってそのレイアウトのボタンを押してから、このコードに戻ってアップロード プロセスを続行するには、コードに何を追加すればよいでしょうか?