[Solved] Java/Android, Multiple Classes


You should have every activity in a separate file.

If you have helper classes that that are only used in one activity you can use an inner class or put it below the other one (not public). Activities should be separate files.

What you could do is put code that has to be in the two classes also in a separate class so that both of them can use it.

1

solved Java/Android, Multiple Classes