I'm new to android and java programming. Recently I came across this
Max. number of activities and it says this-
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.
Now the real question what i wanted to ask is-
- Does every
.java
files in the src of the app count as an activity? If it doesn't then which ones can actually be called activities? - Now as the above mentioned questions's answer suggests the use of fragments.But when creating fragments, I still have to create individual class for each fragment. Now, is that adding to the no. of activities?
- If every fragment class counts as an activity then is it possible to code it all in a single activity?
One more:Does creating too much .java
files affect the app performance?
Thank your for your help.