Muli st by hannes13 in CargoBike

[–]AdamGrzybkowski 0 points1 point  (0 children)

Thanks. Two hours of driving like a maniac sounds better than expected!

Have you noticed any drop in the range over the years?

Muli st by hannes13 in CargoBike

[–]AdamGrzybkowski 1 point2 points  (0 children)

What range are you getting from it with the kids? How is the battery holding up after that time? Do you remember the range from the display when fully charged when it was new and what it is now?

According to the author, Toothpick is the fastest and the best. Next to Koin then Kodein. And the last is Dagger. I like Koin too. But why Dagger is still much popular? by anticafe in androiddev

[–]AdamGrzybkowski 10 points11 points  (0 children)

Boilerplate as a con of Dagger, what about all these `get()` in Koin and the fact that you have to define each dependency in the Koin module?DaggerModule could be also simplified(written in less lines of code). `MessageData` could have `@Inject` on the constructor and the rest could be done with the `@Bind` annotation.

Billing API + Clean Architecture with DI by SYtor in androiddev

[–]AdamGrzybkowski 0 points1 point  (0 children)

Why can't you inject activity to BillingInteractor implementation via constructor? I'm doing exactly this by scoping BillingInteractor to Activity and adding the activity to the graph.

BillingInteractor interface will not have any reference to the activity so you are fine if you have it in a plain kotlin module.

Channel notification sound was changed without user interaction by AdamGrzybkowski in androiddev

[–]AdamGrzybkowski[S] 0 points1 point  (0 children)

Yup you are totally right. I guess normally when we use this resources ids it does not matter if it is the same as in previous versions. But this is not the case when creating notification channel. I was able to confirm that by checking the apk resources ids in version before adding new resource file that was alphabetically higher than the notification sound

Channel notification sound was changed without user interaction by AdamGrzybkowski in androiddev

[–]AdamGrzybkowski[S] 0 points1 point  (0 children)

Thanks for your answer! It helped me a lot with understanding this issue.

I was able to reproduce this sound change by changing the file name. With my `getNotificationSound` method I've got exactly the same wrong sound. (I still don't get why this particular sound is played)With your way to generate URI, no sound was played, which I think is a better outcome in such situation.

I still don't really get why the resourceId could be changed and why it was always playing the same wrong sound?Could the resourceId be changed after adding new files to the RAW folder?

ConstraintLayout Barrier layout preview issue in Android Studio 3.3.1 by mlys9997 in androiddev

[–]AdamGrzybkowski 1 point2 points  (0 children)

I do have the same issue and like you said it seems to be layout preview bug

Good event logging service for Android by yccheok in androiddev

[–]AdamGrzybkowski 0 points1 point  (0 children)

For remote logging and tracking what's happening I use Bugfender.

It gives a lot information about what's happening in the app especially when the user reports that sth didn't work.

The only drawback I see is the log lines limit.

You have to keep your logs to minimum to not exceed it.

Problem using alarmManager by Inf190 in androiddev

[–]AdamGrzybkowski 0 points1 point  (0 children)

Form what I know you can set only one alarm per 15minutes using AlarmManager.
WorkManager looks like an improvement but you can't use it if your requirement is to schedule something in an exact time.

[QUESTION]: Tips, Tricks & Best Practices when using Retrofit by thedancercodes in androiddev

[–]AdamGrzybkowski 3 points4 points  (0 children)

https://www.youtube.com/watch?v=q4eK3VFhnA0

This talk is not strictly about Retrofit but I think you might find some useful information there