Max number Activities support in android?

浪尽此生 提交于 2019-12-22 10:46:37

问题


I created an application with tab and many number of activities and child activities.But am getting an StackoverFlow error.Its because more number of layers of activity remaining in the stack.Now am planing it to rebuild with separate activities.Near to 30 activities will be needed for the app and I have also more functionalities in activities.So I want to know is there any limit for the number of activities.If not will any thing happen to app if the the number of activities are more than 25 like memory issues and stackoverflow.if yes what is the limit of the number of activities in app.

Looking for good advices

.Thanks in advance...


回答1:


We can have any number of activities, but good to limit max to 25 activities (as Google suggests). We can reduce number of activities by using Fragments. I hope this will help you.



来源:https://stackoverflow.com/questions/12102840/max-number-activities-support-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!