2 ms·
> And the small exposure I had with Android SDK I was shocked at the API design quality, poor documentation. Ho ho ho. You haven't even touched the worst that
by ohgodplsno 6y ago
> And the small exposure I had with Android SDK I was shocked at the API design quality, poor documentation.
Ho ho ho. You haven't even touched the worst that Android has to offer.
- The bluetooth stack. My god the bluetooth stack. A mix of absolutely awful APIs trying to disguise state machines, APIs trying to simplify GATT (but awfully failing at it), the Android lifecycle making you tear your hair out when you want any kind of long lived connection.
- Camera. Thankfully, CameraX from the AndroidX team makes it much easier. But a few years back? I'll just let Google's very own Camera2BasicFragment speak for itself. https://github.com/googlearchive/android-Camera2Basic/blob/master/Application/src/main/java/com/example/android/camera2basic/Camera2BasicFragment.java https://github.com/googlearchive/android-Camera2Basic/blob/m... . 1100 lines of basicness.
- Well, speaking of lifecycle, here's the Fragment lolcycle: http://boloorian.free.fr/_Media/complete_android_fragment_l_med.png http://boloorian.free.fr/_Media/complete_android_fragment_l_...
- The java.io.File API is basically gone. The reasons themselves are "good". The replacement, SAF is a horrible, slow, inconvenient API that breaks pretty much every file manager.
- Looking at the bug tracker is a whole other level of sadness. What's that, You'd need your testing library to ba able to instantiate a Fragment in an arbitrary Activity ? radio silence since 2019