Maximum amount of activities in app? Android

前端 未结 2 1722
迷失自我
迷失自我 2021-01-13 03:13

Is there something like maximum activities in android app? I would like to know because I am thinking to create sound app with ringtone feature. It will have roughly around

相关标签:
2条回答
  • 2021-01-13 03:32

    You shouldn't have a problem directly due to the number of activities, but I question your design. It will likely be difficult to get right and suffer performance issues and the APK will probably be very overly large.

    An alternative approach could utilize the fact that you can selectively use/show different layouts for a single activity and that a single layout can selectively show different components in the the same visible space.

    0 讨论(0)
  • 2021-01-13 03:36

    You can have as many activities as you want. There is no constraint on the number. All Android activities are stored in a stack and the one at the top of the stack is the one that is visible. When memory is low, the Android OS will automatically start killing the ones that are lower down the stack and are not running any background tasks or services.

    0 讨论(0)
提交回复
热议问题