Hot answers tagged

3

Is 20 Java classes for just making... This is entirely the wrong question. Something is wrong or you wouldn't be asking. It sounds like you're looking for something to blame. Anguishing over the number of classes isn't going to fix it. I've felt this same pain before. You step back and look at everything. It works. You can kinda follow it. But you ...


2

I read quite a few forum topics and mailing list (link), the general answer was that if you are using the Android SDK, and you do not have an MP3 encoder/decoder in your application, then you don't need a license for your app. The MP3 license for playing is already provided by the device manufacturer. Also, basically everywhere else than the USA, MP3 ...


1

Within the Android environment, the answer is the SparseArray that is an optimized structure for the <Integer, Object> type structure. The primary advantages of are the lack of boxing (all keys for a Map must be Objects rather than primitive) and the lack of the additional Object that is the key. A key reason for the creation of this is its lower ...


1

Just a hunch, but are you writing unit tests? Many small classes over a few large ones become more valuable as you test your code more thoroughly and from more levels of mocked out, unit environments or production-like environments. I don't think having a large number of classes in Java is a problem or is unusual, but I am concerned that you feel so ...



Only top voted, non community-wiki answers of a minimum length are eligible