Reputation: 1
I want to have a normal class file in my android package that is not a component but will be used by an activity. Is this allowed? How do I add this in the manifest if required?
Right now it is not part of my manifest and I am getting an 'INSTALL_PARSE_FAILED_MANIFEST_MALFORMED' error in my Android project and don't know if it's because of this generic class file.
Thanks
Upvotes: 0
Views: 625
Reputation: 17613
It's not needed to add to the manifest. You can have as many "normal classes" as you wish (by normal i suppose that are classes that do not extend activity).
Take a lot at LogCat during install to check what the problem is.
Upvotes: 0
Reputation: 1006724
Is this allowed?
Yes.
How do I add this in the manifest if required?
You don't put it in the manifest.
Upvotes: 2