As others have pointed out, you cannot split the actual file (I see this as a good thing).
You can display viewing-related functions in custom views and snippets. Everything else (business logic, access to web services, access to the database, etc.) can be in the "auxiliary" classes that you use in your work. Despite the fact that actions are objects of God in Android, you do not need to write everything inside a real activity class. It should only coordinate the data and implement the necessary callbacks and event handlers (which technically can be in their own classes).
Nikolay Elenkov
source share