« first day (2948 days earlier)      last day (2225 days later) » 

02:56
Hello, Android!
anyone around?
@Code-Apprentice you know going around to different rooms to drop a link probably won't get people to click on that link
03:23
@johnsmith I'm a regular in both rooms where I posted.
those that know me might be supportive and click the link...of course, looks like both of these rooms are pretty dead tonight
@Code-Apprentice Hey not trying to out you (personally because i saw them in both chats made me not want to click on it). Not passing judgment, just passing on some advice.
You are one of a very few who are in both of those rooms. The topics don't exactly overlap.
Yeah your right there pretty different places, what got you into both rooms? (like what interested you in both of these subjects)
03:52
I started on SO because I was learning Android development. I also dabble in python from time to time, including on my day job.
how about you?
I'm working with the recyclerview-selection library if you want to come join my stream
Hmm, we don't technically have a rule against spamming random links
@Code-Apprentice Banned under "This is not a democracy"
04:22
yo
05:22
hmm...this recyclerview-selection library is kind of interesting. It has some nice features but seems overly complicated for such a common task.
most of the complication is because it provides a lot of customization.
Here's an example project that uses it: github.com/codeguru42/android-examples/tree/select-all/…
 
4 hours later…
09:37
@Code-Apprentice if you return hashcode in getItemId i get a illegalstateexception. if you return position then it works
something with stable id key provider. i might have to dig in deep. But yes this looks complicated at the beginning.
09:58
i might have to implement custom keyprovider i guess.
 
3 hours later…
13:09
@eLi use a Map<Integer, String> instead of all the if/elses, "String error; if (errorsMap.containsKey (errorCode) { error = errorsMap.get (errorCode); } else { error = someGenericError }
 
4 hours later…
17:13
posted on November 11, 2018

Android Weekly #335 📱🚀 #outlook a{ padding:0; } body{ width:100% !important; margin:0; padding:0; } body *{ -ms-text-size-adjust:none!important; -webkit-text-size-adjust:none!important; } body,.wrapper{ background:#ffffff; color:#505050; font-family:Arial, sans-serif; font-size:12px; } table,table td{ border-colla

17:31
@Raghunandan Did you implement this in a project recently? What is the reason to return hashcode? And is it the same id that the RecyclerView.Adapter uses?
I have 2 different fragments on an Activity subscribed to same data-source. When the fragment makes some change, I want to show a ProgressDialog. The problem is, how do I maintain a communication (about which of the fragments will show the progressDialog). I can let both the fragments show the ProgressDialog independently and they will be stacked upon one another, and removed independently. So this kind of solves the problem, but I am wondering, is there a better way to achieve such things ?
17:49
@ZeekHuge Are they instances of the same fragment class? You can easily call a method on the one which you want to update.
in fact if the changes occur in the same fragment where you want to show the progress dialog, all the logic can just be internal to that fragment.
18:20
@Code-Apprentice: For example when the 2 frags are attached to the activity, they (both of them) are waiting for some data, and therefore want to show progress-dialog. How this can be done in a way better than let the 2 dialogs stack over one other ?
@ZeekHuge sounds like you need to rethink your design
what about showing a progress bar inside the fragment itself?
I had that thought, but its a sliding panel, and I dont think it will look good
then there's probably some other solution that is better than either of these two
rethink design: can you elaborate that a bit ? Is there something wrong with my understanding of fragments and their use ?
I mean, I want a part of the screen to be omnipresent, and other part of the screen to change its layout depending on clicks and navigation, so that is where I am using the 2 fragments.
now, this omnipresent fragment needs to get some data before its ready to be used, and same is with the first fragment thats placed in the "other" area.
and that is how I am ending with the Progress dialog by both the frags
@ZeekHuge I mean step back away from the technicalities of Android with terms like "Fragment" and "activity". Draw out a storyboard that illustrates the user interactions. Think of the UI flow from the point of view of the user, not the programmer.
the fact that you want to show two dialogs at the same time highlights a flaw in your UI design.
the problem isn't necessarily with how you are using fragments, it is with the overall UI and UX design.
19:00
@Code-Apprentice yes I tried it out on a sample. I have title and I used the hashcode on the same in getitemid with stableids set to true. I even tried a custom key provider but it does not work
Using position works
Debugged some check in Default selection builder fails. Some Boolean value is false.
Both the longs in getItemID and the custom keyprovider getKey are the same.
i actually don't need hash code for my sample. but i was just experimenting. Why would hashcode cause a problem?
any idea when android chat should work on my phone
like I want to mess with it
supposedly it willl change the apis
or they have already changed vOv
19:16
its mostly push messages for chat. isn't it?
probably I just want a working device that supports it for testing. The US sometimes lags compared to Europe and other places
but push messages are real time unless server is configured to push messages based on time zones and places
I'm not arguing whether they is push suppport
that is pretty much a given yes
the question is what additional features will it support
like images videos, gifs
will it notify the sender of the messag ebeing read
stuff like imessages
yes it does support images and videos. It can notify the sender of message read similar to whats app and also track user presence whether he is typing, online etc
video streaming support?
yeah!
19:22
i have worked on a chat app with images and text not video with xmpp protocol.
Once you get the url as a chat you probably stream the video on the client side i guess
thank you hopefully they push it here soon. if apple will also support RCS aka android chat api will have a working usable standard
probably take years for that though if it does happen
19:42
@Code-Apprentice: I dont want to show 2 dialogs at the same time. In fact, I want to solve that. But, I get the point.
 
1 hour later…
20:51
o/
Any movie recommendations?
How to kill a crocodile
Which involves IT?
How to kill a python
IT is for kids
20:54
good night guys
21:26
night
21:52
What do you guys think about this library?
@grrigore I liked crazy rich asians
it was a chick flick but funnier
and basically 100% asians plus a white dude in one scene
It's on my watchlist, thanks :)
22:14
o/

« first day (2948 days earlier)      last day (2225 days later) »