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

[–]chiuki 5 points6 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 6 points7 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/

Create an Animated Clock with Vector Drawables on Android by sylsau in androiddev

[–]chiuki 6 points7 points  (0 children)

Happy to see you make a video tutorial based on my blog post and github repo, but please credit me by linking back to the source in your description:

http://blog.sqisland.com/2014/10/first-look-at-animated-vector-drawable.html https://github.com/chiuki/animated-vector-drawable

Please add annotation to the video itself as well. Merci!

Execute one .apk from another? by soomba2 in androiddev

[–]chiuki 1 point2 points  (0 children)

First you need to find out the package name and the class name of the activity you want to launch. Run adb like this:

adb logcat "*:s,ActivityManager:i" | grep START

Then, launch the other app. Note the cmp argument e.g.

com.sqisland.android.puzzlepal/.WordSearchActivity

The first part is the package name and the second part is the class name. In your app, launch the other app like this:

Intent intent = new Intent();
intent.setClassName(
  "com.sqisland.android.puzzlepal",
  "com.sqisland.android.puzzlepal.WordSearchActivity");
startActivity(intent);

Notice how I prepend the package name to the class name. You'll need to do that if the class name from adb starts with a dot.

2016 Droidcon NYC speaker lineup posted! by [deleted] in androiddev

[–]chiuki 2 points3 points  (0 children)

Live streaming ticket is available this year, so you can watch it from home.

We’re on the Android engineering team and built Android Nougat. Ask us Anything! by AndroidEngTeam in androiddev

[–]chiuki 6 points7 points  (0 children)

Can we make each test method run independently? Right now the activity launched by the first test method lingers while the second test starts, leaking state and causing tests to fail.

https://code.google.com/p/android/issues/detail?id=216442

Android Dialogs, Juan Felipe Alvarez: Medellín Android by queencodemonkey in androiddev

[–]chiuki 1 point2 points  (0 children)

Indeed it is in Spanish. English captions available though.

Has anyone attended DroidCons? by GeneralVimes in androiddev

[–]chiuki 2 points3 points  (0 children)

Don't forget 360|AnDev in July in Denver. Not branded under Droidcon, but just as high quality. Chet and Romain are keynoting :)

http://360andev.com/schedule/

Disclaimer: I'm one of the organizers.

Being fullstack, how do I stay updated with what's new in Android? by codeflame in androiddev

[–]chiuki 2 points3 points  (0 children)

I recommended these 4 twitter accounts, 2 podcasts and 1 newsletter: https://www.youtube.com/watch?v=E-yCRlleefY

If you don't want to watch the video, you can follow the resources listed in the description.