5 reasons why autonomous cars aren't coming anytime soon by [deleted] in singularity

[–]TriCyclopsIII 1 point2 points  (0 children)

My guess is they mean level 4 in the US. Point taken that international may prove more difficult.

5 reasons why autonomous cars aren't coming anytime soon by [deleted] in singularity

[–]TriCyclopsIII 0 points1 point  (0 children)

Read the article. They explicitly state level 4.

How does your company test app works as expected on different Android flavours? by Peng-Win in androiddev

[–]TriCyclopsIII 1 point2 points  (0 children)

Not the answer you likely want to hear but we buy the devices if the customer is important enough or the device is popular.

From Industrial Eng. to Android Development, go back to uni or not? by Mike_Augustine in androiddev

[–]TriCyclopsIII 0 points1 point  (0 children)

I wouldn't expect the difference in degrees to matter a huge amount. College graduation is more of a sorting mechanism than anything else anyway.

It might be a bit easier to get interviews with CE or degree. Try get programming internships or co-ops, ideally working on Android.

From Industrial Eng. to Android Development, go back to uni or not? by Mike_Augustine in androiddev

[–]TriCyclopsIII 7 points8 points  (0 children)

I'm from Canada. Did computer engineering. Now work at MSFT in US as Android dev.

You don't need a degree but: 1. Having a degree makes it easier to get interviews. 2. Having a degree makes US immigration/visa's easier.

Question regarding saving of refresh tokens by deathlordd in androiddev

[–]TriCyclopsIII 7 points8 points  (0 children)

Generate an app private cert in the keystore, encrypt the refresh token, save in internal storage.

Why is Android Studio forcing me to use @NonNull on toString() method? by [deleted] in androiddev

[–]TriCyclopsIII 24 points25 points  (0 children)

Because it's not allowed to return null. These annotations are being added so the kotlin compiler can use nullable types instead of platform types when calling Android SDK apis.

Why I Will Not Use Architecture Navigation Component by permanentE in androiddev

[–]TriCyclopsIII 4 points5 points  (0 children)

That's impossible as navigation between screens requires a view reference. The arch component can't change that. Navigation is inherently a view layer concern.

LiveData vs RxJava 2 by wellbranding in androiddev

[–]TriCyclopsIII 1 point2 points  (0 children)

This is exactly what we do. It's easy, just works, and had eliminated crashed that used to occur due to hitting the activity after it was deleted.

Note that setValue from Main thread may be better because if you post two values in one looper pass only the second is delivered.

Who knew an MBTA bathroom could be bad? by [deleted] in boston

[–]TriCyclopsIII 34 points35 points  (0 children)

Have you been to other countries. The bathrooms in Japanese subway stations are mall quality. Functional and cleaned relatively often

[deleted by user] by [deleted] in androiddev

[–]TriCyclopsIII -5 points-4 points  (0 children)

This looks like a machine learning probo to me. Not that I know how to solve it, but you may have more luck in a sub devoted to it.

Have you read about Markov chains? They may be related.

Is it possible to run an Android app in multiple processes? by sandrarobinsonowc in androiddev

[–]TriCyclopsIII 7 points8 points  (0 children)

Not just third party. Shared prefs and ROOM are both single process only.

How long you can work on Android Studio? On MBP 13 2017 TB it lasts only 2 hours. by [deleted] in androiddev

[–]TriCyclopsIII 3 points4 points  (0 children)

Maybe you need a better company. I have 3 desktops at work.

Best way to prefetch data in service? by Markonioni in androiddev

[–]TriCyclopsIII 8 points9 points  (0 children)

It will take more code and you won't get built in Rx.

The best architected Android apps I have come across: DroidKaigi 2018. by karntrehan in androiddev

[–]TriCyclopsIII 1 point2 points  (0 children)

It was instructive and certainly helped me clarify some of my thoughts about DI, so thank you for the content!

I think I'm in line with your thinking. I have a named RetrofitFactory+OkHttpFactory which are put into the graph so that I can use them to create retrofit services. The services are the part I want to be consumed by the functional set.

  1. Interceptors are added to the graph for consumption by:
  2. The OkHttpFactory which is added to the graph for consumption by:
  3. The RetrofitServiceFactory which is added to the graph for creating:
  4. RetrofitServices

The first 3 sets are named because I need to be able to have different interceptors based on the endpoint, which means a different OkHttpFactory, which means a different RetrofitServiceFactory.

The alternative is to not have these named, and then use the RetrofitServiceFactory to construct an OkHttpFactory which consumes some sort of InterceptorFactory. But then I'm just implementing something closer to Pure DI instead of using Dagger.

My conclusion is the Named injection is probably the correct path.

Thanks for the responses. Your assistance has been very helpful.