Android - 活动方法?
我正在实现一个应用程序,它将有大约 200 个活动。我正在考虑两种方法来实现这一目标。首先,我确实可以实现这 200 个活动(我不知道,但我认为这会降低低端或中端设备上应用程序的速度),或者我可以有 2 个活动,并使用适当的数据在它们之间动态切换设计。
我的问题是 - 如果我选择第一种方式(200 个活动),参加活动是否有任何限制?喜欢活动A ->活动B-> ...->活动 G 到目前为止...如果我采取另一种方式,活动之间真的可以动态链接吗? (有 2 个而不是 200 个)我已经寻找这个有一段时间了,但我一直无法找到任何有价值的帮助。
谢谢赫米扎克
I am implementing an aplication, which will have approx 200 activites. I am thinking of two ways of achieving this. First, I really can implement those 200 activities ( I don't know, but I think it will decrease speed of an app on low- or mid- end devices) or I can have 2 activites and dynamicaly swich between them with appropriate data and design.
My questions are - if I take the first way (200 activities), is there any restriction of coming throught activities? Like activity A -> activity B -> ... -> activity G and so far... If I take the other way, is it truely possible to dynamicaly link between activities? (having 2 instead of 200) I have been looking for this for a while and I haven't been able to find any valuable help.
Thanks
Hmyzak
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尽管每个应用程序的活动没有最大限制,但如果活动太多,则会耗尽内存。如果您要查看许多不同的内容,请考虑切换布局而不是活动。
您应该问自己是否真的想为用户提供 200 种不同的东西,或者是否有许多不同的布局背后有相同的活动。
Although there is no maximum limitation of Activities per application, if you have too many you will run out of memory. If you have many different things to view, consider switching layouts and not activities.
You should ask yourself whether there are really 200 different things you want to offer the user or the are many different layouts that have the same activity behind them.