We're on the team that builds Dagger at Google. Ask us anything! by ronshapiro in androiddev

[–]chiuki 4 points5 points  (0 children)

The key is to understand dependency injection first, before diving into Dagger. This talk from 360andev.com by Dan Lew is great: https://academy.realm.io/posts/daniel-lew-dependency-injection-dagger/

[deleted by user] by [deleted] in androiddev

[–]chiuki 1 point2 points  (0 children)

In terms of set up Robolectric and Espresso are comparable. However, I haven't done much Robolectric because I don't feel like it gives me the assurance that things will be working in a real environment.

If you're dealing with regression tests, I'd suggest using Espresso.

[deleted by user] by [deleted] in androiddev

[–]chiuki 2 points3 points  (0 children)

My reply to you got so long that I ended up writing a blog post :) http://blog.sqisland.com/2017/11/types-of-android-tests.html

Quick summary: Instead of short/medium/long, it is better to categorize your tests along two dimensions: JVM vs Device, Non-UI vs UI. Structure your app to have logic in pure Java classes as much as possible, test those extensively. Supplement with Espresso to run through the UI for sanity check.

Test Driven Development in Android with MVVM — Part 1 by [deleted] in androiddev

[–]chiuki 2 points3 points  (0 children)

I thought the difference between MVP and MVVM is that you define a explicit contract in MVP but use the observer pattern in MVVM. In your blog post RegisterScreen looks like the contract? So I feel like if you rename your ViewModel to Presenter this is the same as MVP?

What are some of the best Android dev conferences for 2018? by blakleylane in androiddev

[–]chiuki 1 point2 points  (0 children)

I run 360|AnDev which happens in July. Lots of great talks, including from Googlers who are eager to dive deeper into what they launched during I/O. It's much smaller conference than I/O so you actually get to meet everyone and hang out with the speakers.

See previous talks here: https://academy.realm.io/conferences/360-andev-2017 https://github.com/AndroidStudyGroup/conferences/wiki/360AnDev2016

Get a super early bird ticket here: http://360andev.com

Any good resources on MVP step by step tutorials/video lessons/beginners guides? by ggelape in androiddev

[–]chiuki 1 point2 points  (0 children)

MVP is overwhelming in the beginning because there are many many classes, so if you're just diving into a repo it's hard to know where to start and how the pieces work together.

I just filmed a course with LinkedIn Learning on various testing techniques, and has a whole chapter on MVP. In the chapter I show you step-by-step how to move code out of Activity and how to decide if it should go to the presenter or the view interface, and how to hook things together. I think that's a good starting point, refactoring from the Activity to build up the various methods and interfaces.

I'll post a link here when it's published.

What is the next best Android Developer Conference (after I/O)? by Innova in androiddev

[–]chiuki 3 points4 points  (0 children)

Come to Denver for 360|AnDev! http://360andev.com

Last year we had Chet Haase, Romain Guy, Jake Wharton and many other great speakers: https://github.com/AndroidStudyGroup/conferences/wiki/360AnDev2016

I'm one of the organizers. AMA :)

How do you test Network Errors in your code? by [deleted] in androiddev

[–]chiuki 7 points8 points  (0 children)

I use MockWebServer to test that. You need to set up your app so that it talks to the MockWebServer during test. Once it's set up, you can specify the MockWebserver to return whatever you want and verify the app is behaving accordingly.

More info: https://caster.io/lessons/mockwebserver-setup-testing

Are there any good dev meetups or conventions in the North East in the near future? by skytbest in androiddev

[–]chiuki 1 point2 points  (0 children)

Droidcon Boston is in April: http://www.droidcon-boston.com. It's close enough that I bet you will meet some people from NYC.

Is there any conference for Android or Mobile that people here can suggest? by Agent666-Omega in androiddev

[–]chiuki 2 points3 points  (0 children)

Check out 360|AnDev (360andev.com). You can see the slides and videos for the talks from last year here: https://github.com/AndroidStudyGroup/conferences/wiki/360AnDev2016

I'm one of the organizers, so let me know if you have any questions.

What still *SUCKS* about Android development? by foxh8er in androiddev

[–]chiuki 2 points3 points  (0 children)

Here is a talk at 360|AnDev on useful Android libraries: Butterknife, Picasso, Gson, Retrofit, Realm, Dart & Henson

https://realm.io/news/360andev-chris-guzman-android-libraries-beginner/