Click here to Skip to main content
15,917,538 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am currently working on a Formula app that has every formula of Physics, Chemistry and Maths.
But the problem is that each subject has atleast 20 chapters, so that's like 60-70 chapters. So if I will make that much activities my app size will definitely increase. And also my code will be complicated. Is there any easy way to do this.

What I have tried:

I tried to make activities of all chapters but that's huge and I couldn't
Posted
Updated 8-Feb-17 19:06pm

1 solution

It makes no sense to create a separate activity for each chapter. This is a matter of separating the presentation and the data. The content of these chapters are data which can be stored in some storage[^] outside of your app. In fact, you only need one Activity (presentation) to display each chapter at any one time. If you need a few different presentations, consider making them into Fragments[^] for embedding in that Activity.
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900