开发者

Do I need to do anything when I create my own internal packages for my Android code?

开发者 https://www.devze.com 2023-02-04 16:13 出处:网络
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 ther

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.)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号