Android 活动仅初始化一次并多次使用
我正在寻找一种方法来初始化所有游戏活动一次并在需要时在它们之间切换。如果可以的话可以怎样做吗? 如何将一个活动从另一个活动置于前面而不再次初始化它并且不完成调用活动?
I am looking for a way to Initialize all my game activities once and switch between them when needed. Is it possible if so how?
How can I bring an Activity to front from another Activity without Initializing it again and not finishing the calling activity?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是活动不可能实现的。
但是,为了使其成为可能,您可以使用片段而不是活动,无论如何建议使用活动。
This is not possible with activities.
However to make it possible you could use fragments instead of activities, which is recommended to use anyway.