我有:相機意圖後有新的活動
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_foto);
Intent intentFotocamera = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()); //creo un timestamp univoco
File imagesFolder = new File(Environment.getExternalStorageDirectory(), "MyImages");
imagesFolder.mkdirs(); //creo un nuovo album
File image = new File(imagesFolder, "QR_" + timeStamp + ".png"); //concateno
Uri uriSavedImage = Uri.fromFile(image);
intentFotocamera.putExtra(MediaStore.EXTRA_OUTPUT, uriSavedImage);
startActivityForResult(intentFotocamera, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);
}
現在,當用戶按下照片確認按鈕(然後保存在本地),我想創建一個新的活動,因爲我想打印照片在我的應用程序。
如何創建新的活動?
看到這個[相機活動教程(https://www.androidhive.info/2013/09/android-working-with-camera-api/) – Lal