r/androiddev • u/c0nnector • Nov 12 '17
The android developer starter pack
https://imgur.com/gallery/OFsMt147
Nov 12 '17
Missing the daily new article describing a brand new architecture to solve all android problems and a search tab "speeding up build Android".
73
u/VasiliyZukanov Nov 12 '17
And a definitive answer to "should I start with Java or Kotlin?"
3
1
u/little_z Nov 13 '17
I asked this question at the end-of-conference panel at Kotlin Conference..
Their answer was that there's benefits and drawbacks to both.
0
6
Nov 12 '17
[removed] — view removed comment
2
Nov 13 '17
Java of course, better future for you.
2
79
u/shadowdude777 Nov 12 '17
Missing the "Gradle build" "progress bar" (which shows no actual indicator of progress).
34
u/well___duh Nov 12 '17
At least clicking on the stop button actually stops the build. Took Google till Android Studio 3.0 for that to be fixed.
12
u/Nilzor Nov 13 '17
Whaaaaat? I did not know! I will take the day off to celebrate this remarkable achievement in computer science!
8
55
u/NewtAgain Nov 12 '17
I was diagnosed with chronic migraines shortly after getting a full time job as an android dev. This image pains me.
16
u/liuwenhao Nov 12 '17
Oh man, this hits home. I have been getting light sensitive migraines 1-2 times a week for the past few months now. Development is stressful as hell and staring at a screen for 12 hours a day doesn't help!
21
Nov 12 '17
Use flux.
Get glasses that filter out blue light.
Use dark mode wherever possible.
Also, exercise.
8
6
u/NewtAgain Nov 12 '17
I'm between jobs right now and my migraines have been so much better. I wouldn't get them that often more like one every other week or so and some bad weeks where I would have multiple, but I haven't had one in a month now. Looking for jobs is actually less stressful than having one (as long as your savings account is strong enough I guess).
11
u/Izacus Developer Nov 12 '17
Why are you staring in the screen for 12 (!) hours a day? Are you deliberately overworking yourself and damaging your health?
36
u/NewtAgain Nov 12 '17
I'm imagine like many of us, his hobbies and relaxation time also involves starring at a screen.
8
u/liuwenhao Nov 13 '17
This, plus we are in crunch time trying to hit a deadline for an app release so I've been putting on more hours than usual.
2
u/NewtAgain Nov 12 '17
I'm imagine like many of us, his hobbies and relaxation time also involves starring at a screen.
3
u/wapz Nov 13 '17
Someone else mentioned it. Use flux or glasses that filter out blue light. I'm guessing over half of migraine problems are fixed this way.
26
u/DevGary Nov 12 '17
Screw all software keyboard related code. It is such a pain in the ass. Showing/hiding it, detecting when it happens, the sometimes wonky auto adjusting when a keyboard shows, dealing with weird descendant focus issues, etc, etc.
26
u/Atraac Noone important Nov 12 '17
I still don't understand why in 2017 we still don't have a simple way of showing/hiding keyboard and a listener for it. This is a feature so basic that lack of it is pathetic.
-19
u/VasiliyZukanov Nov 12 '17
Maybe the fact that we have Arch Components and Kotlin has something to do with it...
1
55
u/dytigas Nov 12 '17
Jake wharton is the face of Android dev. His contributions save me development time by ten fold.
26
u/N1ghtshade3 Nov 12 '17
And CommonsWare the king of StackOverflow.
3
u/puppiadog Nov 13 '17
His replies come off as condescending and patronizing, to me.
7
u/Zhuinden Nov 13 '17
If you were answering often-silly questions for 6 years that you can easily tell that you've answered before but aren't entirely sure where that question is so you can't just immediately mark it as a duplicate, you'd also get grumpy over time :D
13
u/AndroidThemes Nov 12 '17
I feel kind of strange to recognize is face... I am not even a developer but spend too much time reading this subreddit :o
19
Nov 12 '17
The meme is real. At KotlinConf a QA panel member from Google just introduced himself as "Jake Wharton's manager" and at DroidCon there was a photo booth where they superimposed Jake into the picture.
3
Nov 13 '17
Please tell me there is evidence of this!
3
Nov 13 '17
https://mobile.twitter.com/kindphotobot
For the manager introduction you'll have to find the recording of the kotlin conference closing q and a panel
2
13
9
u/cheunste Nov 12 '17
As a new dev...I don't get the bottom right. Will some of the stuff I run into in the future be so overly complex and confusing that I need a migraine medicine or what?
7
3
u/puppiadog Nov 13 '17
Different screen size and resolutions means multiple files of the sam3 code to handle each situation plus testing the same functionality over and over in different emulators and devices.
Also, for me their XML-based UI can be very frustrating.
0
Nov 12 '17
[deleted]
3
u/cheunste Nov 12 '17
Avoid the camera at all costs.
Is there a particular reason why?
12
Nov 12 '17
Manufacturers implement it differently. A common bug is displaying a bitmap without using exif rotation data so the image is sideways.
On older Samsungs the camera was a huge MegaPixel size but the app didn't have much allocated memory. If your app does image manipulation you had to compress it when loading it from the harddrive. Loading a full size image to memory and trying to manipulate would just crash the phone.
Currently im trying to handle gallery intent requests robustly, but the apps that can handle gallery intent requests return results so differently. Some don't even have the image yet, they just return a file that is getting an image downloaded to.
2
0
Nov 12 '17
[deleted]
13
u/Atraac Noone important Nov 12 '17
I'd genuinely say, make your own camera or use CameraKit/CameraView, anything really. Camera apps are so absolutely shit on Android you'll never get a proper result. Some camera apps return you the URI, some return the thumbnail, some try to return full bitmap. In theory all should save a file properly if you give them URI to save to. But Samsung doesn't give a shit and some particular models with particular OS versions won't even save a file for you. Exif data being whole different story.
5
u/w3bshark @w3bshark Nov 13 '17
After using the intent for capturing pictures within the past few weeks, I would say don't use it.
You don't get any info about the rotation of the image on many devices and you can't infer the rotation like you can if you have an instance of Camera.
There is no good way of knowing if you need to display the image rotated 90 vs. 270 vs. whatever with the capture intent.
0
Nov 13 '17
[deleted]
3
34
13
10
5
4
3
u/BadPaddingException Nov 13 '17
Missing the new "CLEAN ARCHITECTURE EXAMPLE" popping up every other day.
2
2
2
2
4
1
Nov 12 '17 edited Nov 12 '17
You guys keep on scaring me with this mental stress stuff.. makes me want to complete the last 10% on Java Enterprise and search jobs for that.
1
1
u/slai47 HALF Nov 13 '17
I don't use dagger so I'm good!!
2
u/Zhuinden Nov 14 '17
Or just worse off without realizing it :D
1
u/slai47 HALF Nov 14 '17
There have only been few moments in the many apps I've built where Dagger would of been nice. I see why certain people use it. Just never sat down to learn it completely to use it in my apps. Also I've had to do a lot of all custom apps, which prevented me from using libraries.
1
u/Zhuinden Nov 14 '17
I use it because throwing
@Injectand@Singletonon my classes is like throwing@Autowiredand@Componenton them in Spring, which is super-convenient.1
1
u/Sinfonianartist Nov 13 '17
You forgot about "Installing ADB Drivers" and "3rd Party Samsung Drivers"
1
u/markyosullivan Android Developer @ Shot Scope Nov 12 '17
You missed the "Should I use Eclipse or Android Studio?" question
20
-23
Nov 12 '17
No need for Retrofit with Volley now.
11
u/dokuroku Nov 12 '17
Do people still use Volley? I mean, I do, but only because I built on top of it after I/O 2012 said it was the best thing since sliced bread.
6
0
0
332
u/JakeWharton Head of sales at Bob's Discount ActionBars Nov 12 '17
Jesse Wilson is the primary author of Dagger 1 and OkHttp. I contributed small bits to the latter and even smaller bits to the former. I would push you towards Dagger 2 nowadays which is maintained by the Java core libraries team at Google for which Greg Kick was the primary author and Ron Shapiro is the primary maintainer. Even Retrofit was created by Bob Lee. I've been the primary maintainer through 1.x and 2.x but he had the vision. And don't forget the tens of external contributors to each of these libraries without which they'd be buggy messes.
It can be easy and tempting to slap a single face on a project, but the reason these projects thrive is because of the contributors around them.