因此,我正在启动更新,然后将其作为消息发送。当消息是我希望它返回应用程序的主屏幕时。我有我认为会这样做的东西,但它只是快速打开另一个活动然后关闭它并加载主屏幕。发送消息完成后,如何让活动返回主屏幕活动。
public void send(View view)
{
savePhoto();
Uri imageUri = Uri.fromFile(pictureFile);
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("image/jpeg");
sendIntent.putExtra(Intent.EXTRA_STREAM, imageUri);
close();
//This activity opens and quickly closes
startActivity(Intent.createChooser(sendIntent, "Send:"));
startActivity(home);
}