« first day (3057 days earlier)      last day (2116 days later) » 
00:00 - 16:0016:00 - 00:00

00:01
@Code-Apprentice all types of advice
SharedViewModel model = ViewModelProviders.of(getActivity()).get(SharedViewModel.class);
How is this not some sort of singleton approach?
because it's a static method that takes an object instance that doesn't need to be a singelton
then it looks at the class to generically get the model
you're basically telling a static function to look for a ViewModelProvider that supports the SharedViewModel class in your activity object
none of that has any reliance on a singleton pattern
What do you mean with 'supports' ?
I mean it's either present or not?
sure
I just assume it would throw an error if you don't have something that implements a sharedviewmodel interface
or something like along those lines
ie supports it
if you can pass any generic reference or object, you need to perform some check
00:18
Ah yes of course, I thought you meant something different
ViewModelProviders.of(getActivity()).get(SharedViewModel.class); makes a parent viewModel obsolete right?
I used to pass data per intent in the activity since it was a 'legal way passing data' the android MVVM way I assumed, but now finishing my report I can't sell that usage
00:34
I need to sleep, good night all
01:18
box crashed 24%
yikes
I lost money
:(
That's why I don't trade stocks, too much uncertainty
you'd rather do btc right
Trust the math
At least I know no one can take it from me
It might lose all the $, but I'll still be in control
01:48
Anyone know why the MaterialButton not in Palette? I have latest version of AS, gradle and api.
Assign android.support.design.button.MaterialButton manually in XML actually worked. Just curious why it is not in Palette?
@RaghavSood thats tru
also TIL box loses 100m+/year
what a scam
02:27
I need to ask a question to experienced and serious people....
Is dependency injection worthy of consideration?
Depends on the project size
I wouldn't bother for a small app
But for anything reasonably sized/an actual project, not a side-app, yes, it's usually fairly beneficial
03:19
Thanks
03:35
I'm starting a sound effects synth using oboe... Wish me luck
 
2 hours later…
05:24
moRings all.
Mornight Mr. Patel
This frog is about to sleep... So...
Night all!
06:09
Here I go deploying servers again :(
I.d007 requested access. Rep: 56 - Questions: 24 - Answers: 5 (ratio 4:0.8)
!reject
@I.d007 you currently do not meet the requirements to chat here. You can find our requirements in the rules.
06:37
Mohammad Rakib Amin requested access. Rep: 85 - Questions: 1 - Answers: 19 (ratio 4:76)
06:47
!accept
@MohammadRakibAmin welcome. Please start by reading the rules and confirm you have read them before saying anything else.
07:20
@MohammadRakibAmin your access has been revoked because you did not respond
\o morning folks
07:35
Gooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooood Morning Everyone!!!!!!! :D
Android_K.Doe requested access. Rep: 655 - Questions: 4 - Answers: 62 (ratio 4:62)
!accept
@Android_K.Doe welcome. Please start by reading the rules and confirm you have read them before saying anything else.
07:58
\o
eLi
eLi
Morning nerds
08:19
I have read and understood the rules
Morning o/
WELCOME ANDROID_K.D!!!!!!!!! 🎉🎉🎉🎊🎊🎊🎊
Hiya Raghav, Mehdi, Eli, CF, Geister!!!!!!!!!! :D
Devidas M Das requested access. Rep: 170 - Questions: 15 - Answers: 4 (ratio 4:1.1)
\o
!reject
@DevidasMDas you currently do not meet the requirements to chat here. You can find our requirements in the rules.
08:28
Thank you for the approval
@W0MP3R How are you able to keep up that good mood every day?
how does text highlights work here? just the same?
i mean for example a code line
I actually decided to join because i encountered a problem that i couldn't resolve regarding

Intent.ACTION_OPEN_DOCUMENT
oh its not a code block
Formatting doesn't work in multiline messages.
It works inline though :)
08:36
@geisterfurz007 because if i don't, I fall in my overly pesimistic mind set and that's not nice
For multiline code you can mit Ctrl+K before sending which will indent it so that it is still displayed as codeblock @Android_K.Doe
@W0MP3R Hmmm... I guess that makes sense. I can't do that :D
According to documentation, `Intent.ACTION_OPEN_DOCUMENT` gives persistable permission to an image. But Glide seems to be unable to read path.

What would be the best approach in saving the uri image/path in local database?
I think you need some spaces before
I notice that Glide reads from cache, but after quite some time i guess the cache is cleared by the phone itself, which causes the Glide to reuse the path and search for origin, but since permission is not persistent even after using ACTION_OPEN_DOCUMENT, it always fails to load the image
08:52
hmm
@RaghavSood this guy was banned
@geisterfurz007 should learn to keep your yourself happy :D
I notice from last time, about 2 days not opening my app, the next time i open it images doesnt load. Which makes me conclude Glide cache is being cleared. I tried disabling reading from cache and that confirmed that the path doesnt work with an error

    Permission Denial: opening provider com.android.providers.media.MediaDocumentsProviderith
09:18
z o m g we can drop android 5 support
Mornerds
"there is one top viewmodel, that assigned to the DataContext of the View. The other viewmodels are properties of the this top viewmodel and can be bound to by specifying the bindingpath relative to the top viewmodel" - C# answer
But this would not work with Android Activities would it.. Am I -bound- to LiveData objects?
Cause I would really love to use the above approach, except viewmodels themselves can't seem to be passed around in Android, but LiveData states can
Or 'can' viewmodels and their state be passed around?
@TimCastelijns o i c
10:18
Hasif Seyd requested access. Rep: 1024 - Questions: 0 - Answers: 56 (ratio 4:Infinity)
!accept
@HasifSeyd welcome. Please start by reading the rules and confirm you have read them before saying anything else.
@geisterfurz007 lol typical
Since the time you pointed that out, I have to check workplace.SE regularily for questions like that :D
@MwBakker you don't pass around VMs. They simply exist, and you can request to use them. A VM should not depend on another VM
because of this you don't actually need to pass them around. Just request them wherever you need
10:23
Sorry by 'passing around' I mean switching activities yet keep the state of the viewmodel as is
that is the default behavior
Well say if I have a baseViewmodel containing all other viewmodels and I call on this base viewmodel as followed
ViewModelProviders.of(getActivity()).get(SharedViewModel.class);
@geisterfurz007 😂😂😂 "i wanna please people, but someone is so pleased i hate it"
Then I can't get the property of a viewmodel inside the baseviewmodel without being null again
yeah but that's not a thing. A VM does not have a reference to another VM
10:25
It did in C# and I liked that approach
I was hoping to be able to do the same thing in Android so I would have a universal approach in my report explaining passing data between viewmodels
But this seems the only logical Android approach developer.android.com/topic/libraries/architecture/…
"a universal approach in my report explaining passing data between viewmodels" a what
@TimCastelijns Here is your reminder
10:41
@TimCastelijns If stackoverflow.com/questions/16530984/… works per Android as well, it would make it a universal approach to share data between viewmodels
And it makes sense, having one viewmodel containing the others, and access properties per parent viewmodel and their children
Except in Android, when switching activities all properties, unless LiveData, of a viewmodel go back to null state
yes
it's good to share data by depending on the same repository in 2 VMs for example
but it's bad to have one VM containing another VM
@HasifSeyd your access has been revoked because you did not respond
Even if it has a role of a parent (base) viewmodel?
In C# it was all that was suggested at that time
are you talking about inheritance or composition
the first is ok, the second is not
11:02
Composition
13
Q: MVVM : Share data between ViewModels

UnforgivenHow do I share data between multiple ViewModels ? For example there is a class named Project in application . public class Project : ModelBase { private string _projectName; public string ProjectName { get { return _projectName; } set { _pr...

what C# people do is not relevant
C# is C# and Android is a whole new world
11:19
^
womp you do android also?
nope
the last time I touched Android, Fragments were the hot stuff
Hello all, does anybody now why a simple registerReceiver isn’t working inside an AndroidViewModel using it’s inner Application (it’s a DaggerApplication inheritance)? application.registerReceiver(...). If I do the same within my Application class, it works well.
@W0MP3R But the MVVM pattern is universal, it's plausible to think a parent viewmodel with viewmodels in it's possession could work for Android as well
But I now am sure that won't do
I can fix my report, thanks all
11:51
user image
7
can verify
@W0MP3R oh lol that is old
I have an api which emmits data frequently, how can i easily read the data when it emmits? How on android.
how is the data emitted
In json...
It is some endpoint which emmits data
Clients says I need not know the api implementation
12:01
is it a socket server?
May be I think, it is?
But he says it is script
I need to see it first.
yes, you do
you can't consume data if you don't know where it comes from
He will give me a endpoint
that's not enough
12:03
What should i know more
o/
specification of this endpoint
If it is a socket server then?
1) what is it (socket, rest api, whatever) 2) how does it emit data 3) what is the format of the data
Then?
He is planning to move data on firebase and read from it
Make it live
Maroof Mandal requested access. Rep: 218 - Questions: 16 - Answers: 7 (ratio 4:1.8)
12:06
I am not sure if it is a good solution
seriously, it's pointless to ask yourself any question before knowing what's existing
do your homework first then think / ask
@MaroofMandal welcome. Please start by reading the rules and confirm you have read them before saying anything else.
Got inside Mehdi 🙂
2
12:26
lmfao
@cf don't take maja (enjoyment).
Not sure if he is mocking el mehdi or not
Mehdi teased me on my bad times...I'll pay him back ;(
@Murat bro. when friends find chance they don't miss it. Mehdi took it today very very well.
@MaroofMandal your access has been revoked because you did not respond
12:42
I am not even sure what the joke was
me neither
I asked a question and Tim was answering. And I was not sure about the whole topic. After then Mehdi come and tell me to do home work 1st and then ask here. That's all. xD
Ok, I understood it now
I actually wasn't joking at all, "do your homework" means "prepare yourself by reading and gathering all the specifications"
12:59
Mehdi, sometimes we need to discuss about something which makes easier for us to understand the whole scenario. Don't expect everyone will sit with pen & paper at first and gist will share in this chat room. Talking with someone, sometimes boost us & keep our time save & easier to generate ideas. The developers here in this chat room are not 'help me!!help me type' and me neither!!! And this is also not funny.
Ok, Not to complain, but I think the flow of information here on this room is extreeemely arbitrary
looks like you completely misinterpreted what I said, my point was "it's pointless to think about a technical aspect when you don't even know what architecture you're going to work with"
may be. But this is no book or stack that we should maintain. But it is a chat room. And actually it is a choice of people. That's all I can say.
Bro. One of my bro phone and give me this kind of situation & I really don't dig this kind of problem so I asked it here. Because I don't even know which root I should grab. And @TimCastelijns pointed that out for me. And I have understand then what I need to accomplish this. That's all. I think everyone in this room is my bro and my friend whom I can share anything without proper homework xD.
understood 👍
someday you will be a good husband Mehdi.
3
13:16
I think he literally translates expressions from his language to english, so they end up making no sense
That came out of nowhere
I had to laugh tho :D
same XD didn't know what to respond
@bluetoothfx haha
he has some trouble in english
i know since a lot of indian subcontinent have this trouble
13:25
not some but many.
haha yeah
sometime when I am in a flow I can blast but sometime I messed up everything.
@MehdiB. :D
@MehdiB. lol i will say it again its been always that way, its just only sometimes we see the consequences of it
@bluetoothfx lmao
ewww :P :D
eLi
eLi
13:28
ol
good afternoon room15
Good afternoon eli!
@TimCastelijns thanks for catching that one :D
@ColdFire sigh... another missed norsemen reference
well i dont remember it
Maroof Mandal requested access. Rep: 218 - Questions: 16 - Answers: 7 (ratio 4:1.8)
now that you say it , i think i vaguely remember it being said by someone in that show
probably the bafoon guy
not sure what his name was
@Mauker busy maukerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
13:31
o/
mauker
CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
blue o/
13:59
sup maukerrrrrrrrrrrrrrrrrrrrrrr?
how is brazil?
anyway i forget to ask how is your new president doing , since you were scared about it?
He's doing great... on being an ass.
Brazil is kind of a mess now
But could've been worse I guess
are you guys over the petrobus scandal i hope?
Not exactly, it's still an ongoing investigation
this scandal was huge
One of the "main judges" of this scandal is now minister of justice
14:18
Goes to show being currupt for the right people works out well?
yup
damn that avatar suits the weather in canada graeme
@Mauker hmm hope everything is sorted out
@Graeme lol no
he was responsible for a lot of arrests
petrobus sounds like a harry potter spell
14:37
lol
its a very big south american oil company , right mauker?
petrobus drillianus!
Henlo crabber o/
Hayo!@
I'm not saying he's a good guy, I'm saying it looks like it worked out well for him1
Not having ethics / empathy is incredibly powerful tool
[is incredibly powerful tool|makes you an incredible tool]
@bluetoothfx I'm going to use this one in daily situations
I do too! Can I pliz has CEO seat?
actually geister, 9 out of 10 psychopaths are not CEOs :/
Shame!
> the average IQ of serial killers is 94.7
Found my daily dose of useless facts!
@ColdFire yes
@Graeme Oh ok, sorry :)
who invented meetings?
14:59
@geisterfurz007 hmmmm
serial killers that were caught
I'm guessing.. lol
@MehdiB. :D
@bluetoothfx how does he feel from the inside
@Graeme yup
@geisterfurz007 lol
@MehdiB. lol
bb xD
@ColdFire lol
@ColdFire lol
@ColdFire yup
15:09
wtf
EZ SERVICES requested access. Rep: 48 - Questions: 12 - Answers: 2 (ratio 4:0.7)
!reject
@EZSERVICES you currently do not meet the requirements to chat here. You can find our requirements in the rules.
ban him adam
also hiya adam
15:09
ban who?
not him i mean bb :/
I just did what you did
ban CF if anything
pinging three separate people with 1 word
there is a difference
The difference is that I annoyed one person, and you annoyed three
which one is worse?
15:10
yours
let's avoid pinging the same person three time, and avoid pinging people with just simple responses
/r/inclusiveOr
huh diplomatic response
bad adam :(
15:11
i don't make the rules i just crush the dreams - Carl, probably
anyway did you solve your issue?
The toolbar issue I was having?
Sometimes you just gotta make sacrifices to see the changes you want to see in the world
yeah thanks for giving me the idea
15:12
I'm gunna do so many codes today, I can't wait
All the programming and the codesing
I'm gonna try
doing?
I'm gonna try doing so many codes today lol
15:22
xD
cool I look forward to the PR
I can look forward to a meeting
@ballBreaker it's something I also decided to start saying
xD
make sure to not be an idiot today adam
no wait, what I decided to start saying is: "Be the change you wanna see in the world" - Mehdi
15:26
that is old quote
yeah mehdi came up with it a long time ago
Yeah, then many people came up with various variations of my quote later
makes me proud
@MehdiB. isn't that gandhi
Oops I mean Medhi
that damn einstein was always stealing people's quotes
15:29
@eski and research
I actually came up with relativity
But I was moving so fast at the time that I came up with it a hundred+ years later
Relative to the earth
On a different note how did I just now decide to right click my console to see if there was a scroll lock
F M L
What's today's nonsense topic?
@ballBreaker that guy even managed to adapt his name to look like mine, for SEO purposes
he really got inside you
chat se is not working? anyone know what happened?
@MehdiB. Wow, what a total dick
15:37
@MwBakker what is that?
@ballBreaker it is like sign curve ;)
@bluetoothfx Some fellow forum visitors are quite nearby
eLi
eLi
Help i got CertPathValidatorException only in one device, samsung grand prime
all other devices work fine
Take it off google play as a supported device. Job done.
Should I eat breakfast, or should I eat dinner
15:50
yes
agreed
^does that mean the jobs boring?
@RaghavSood eat breakfast for dinner like a true champion
True champions eat dinner for breakfast
15:56
No
WRONG
BLASHPEMER
calm down
breakfast for dinner is the best
You are displaying behavioral inconsistency
You should see a doctor
Mr. Suraj is your avatar a picture of our sun?
I should see a doctor for a lot of reasons
15:59
Yeah I should get a check-up soon myself
@RaymondArteaga yes
@RaymondArteaga It's to keep an air of mystery. Chicks love mystery.
00:00 - 16:0016:00 - 00:00

« first day (3057 days earlier)      last day (2116 days later) »