I understand that, in Android, all activities must be declared within the manifest. Is this true to all .java files in the project?
I have a few classes that aren't activities (not directly related to an UI) and i'm unsure whether I need to declare them in the manifest.
Thanks!
No, only activities. All other java classes don't have to be declared in the manifest file to be used. If you're having contentproviders or services in your application you also need to declare them in the manifest file.
You don't have to declare all classes in the manifest. Things you do need to declare are Activities, Services and ContentProviders.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With