当前位置: 动力学知识库 > 问答 > 编程问答 >

android - Prepare extras for next Activity launch

问题描述:

I want to set some Extras for the next startup of an activity. However, I want the user to start the activity, i don't want to start it programatically with startActivity();

It should also work if the target activity is currently killed.

Could you tell me how to do so?

Thanks

网友答案:

You might use SharedPreferences and store variables to non-volatile memory. Then read them in the onCreate() of your activity.

分享给朋友:
您可能感兴趣的文章:
随机阅读: