3

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...

Sreedev
  • 6,563
  • 5
  • 43
  • 66
  • As i know there is no limit in number of activities, but more than 25 is really more..hope u gone through these questions too. http://stackoverflow.com/questions/3608347/max-number-of-activities http://stackoverflow.com/questions/6717473/starting-too-many-activities – Vins Aug 24 '12 at 04:15
  • I find it hard to believe you are getting a StackOverflow due to the number of activities. This sounds more like an infinite loop in code somewhere. Post the stacktrace from your StackOverflow error. – David Wasser Aug 24 '12 at 08:07

1 Answers1

3

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.

Aju
  • 4,597
  • 7
  • 35
  • 58