I am refactoring my code, and I am organizing my classes into packages. But I find that my program doesn't run开发者_如何转开发 when I create my own subpackages (Java, not android, packages). Is there anything special I need to do if I have several internal packages in my code?
The only Android-specific change you should have to make is updating your AndroidManifest
to use the full class names (e.g. com.example.ClassName
). Post your errors if this doesn't fit it.
(Of course, you will also need to change the imports
just like in any other Java application.)
精彩评论