更新时间:2022-11-20 17:37:03
只有一个活动的活动,并在任何时间运行。你可能会更好用2片段,或在你的MainActivity只是一个额外的图形页面,你可以做,而不是具有不同的活动可见还是走了。
There's only one activity active and running at any time. You might be better off with 2 fragments or just an additional MapView in your MainActivity which you can make visible or gone, instead of having different activities.
或者你使用的服务,它可以在后台并行运行,以您的任何活动。
Or you use a service, which can run in the background in parallel to any of your Activities.