« first day (3524 days earlier)      last day (1429 days later) » 

4:38 AM
o/
 
 
2 hours later…
6:15 AM
@JBis Good question
 
hi
 
 
4 hours later…
10:45 AM
This was the most starred message last year on this day:
4
 
 
2 hours later…
12:55 PM
o/
 
o/
 
ɥɔʇᴉlƃ /o
 
1:33 PM
Mornin
 
PowerPo... hey, that's illegal!
 
\o
@Emmanuel congrats on the new job at st jude!!
super interesting that i (as non american) know an american hospital by name
 
1:48 PM
@IvanMilisavljevic i dont like lenovo laptops, the are fragile, specially the lid
 
:D
 
Never read the comments section
 
except if it's facebook
and you crave that spiciness
you've never seen someone dunk unless you've seen ivy league college meme page moderators get into simultaneous fights with a 50 year old dude who didn't even go to said college and a prospective 14 year old
 
2:06 PM
I've seen some news that Brazil is developing a vaccine for the COVID-19 which will work through some "nasal spray method", amazing stuff. And it's probably going to be cheap as well.
Most of the comments are either attacking the university/professors (saying they're incompetent or something like that) or saying "A Brazilian vaccine? Don't make me laugh, it's never going to be real"
 
:(
collective distrust in our institutions is going to become an even bigger problem in the future
 
yes...
They're even calling all the students potheads
 
@asim I've been using a T580 for almost 2 years now, no issues so far
 
That they are only there to smoke and waste the country resources
 
Besides linux murdering the battery life
But that will soon change when I move away from ubuntu and strip out unneeded stuff
My Acer Swift 5 gets like 15+ hrs of my normal usage on it, it's great
 
2:16 PM
@RaghavSood meaning getting rid of humans?
 
We can neither confirm nor deny your future health check results
 
@Mauker lmao that's just so stupid
 
Yep
And that's not even all of it
People are just stupid
I think I understand why Raghav wants to wipe us down
changing gears, holy shit, 3 upvotes away from 10k
aaaaaaaaaaaaaaaaaa
 
2:43 PM
Ribbit!
how you doin' Mauker!
 
3:00 PM
is dialogfragment added to backstack by default?
 
I think it is not
 
@asim please share after you find out the answer
 
Fragment Backstacks are linked to container ID's, Activity dialogs are layered likewise at an Activity level
Fragment Dialogs are added at id 0 to the Fragment Manager
So it's possible to have a backstack containing all dialogs in the FragmentManager
 
from the show method: "Display the dialog, adding the fragment to the given FragmentManager. This is a convenience for explicitly creating a transaction, adding the fragment to it with the given tag, and committing it. This does not add the transaction to the back stack. When the fragment is dismissed, a new transaction will be executed to remove it from the activity."
 
3:16 PM
@Graeme I've been developing android apps for more than 5 years, and still I didn't know that
I mean, I had never think about it
Is interesting how nobody in this world knows how android works
 
Unkownn requested access. Rep: 40 - Questions: 2 - Answers: 1 (ratio 4:2)
 
!reject
 
@Unkownn you currently do not meet the requirements to chat here. You can find our requirements in the rules.
 
Zia
3:42 PM
Someone plz help me implementing this.
https://stackoverflow.com/questions/20441308/boot-completed-not-working-android/

No answer is working for me.
I am trying on Symphony devices. Samsung + mi devices are working
 
@Zia If its android 8+ you cannot do background stuff as freely, try starting a foreground service
 
o/
 
3:57 PM
I mean, you (shouldn't*) do that
Like, if you're backstacking dialogs, you need smacking with a wifflebat
I only know that because we are using BottomSheetDialogFragment with a backstack beneath it
And the BottomSheetDialogFragment has a container with it's own backstack
And the back button has to be able to navigate the correct position XD
 
4:14 PM
@Graeme thats exactly what i need but my bottomsheet needs to be embeded one and it fails to do backstack thingy, only works (by default) if its a floating dialogfragment
 
Zia
@asim, yes its android 8+, I need to start a foreground service after device restart. My application will be used as embedded system app. It has no UI
 
@Zia i don't see notification and startForeground mentioned anywhere in your code
@Graeme is there a way to add embeded (replace/add) dialogfragment to backstack?
just like whatsapp have for their emojis, ig its a dialogfrag
 
4:32 PM
@Ahmad Thanks!
 
Every year I listen to it after having forgotten about it for a year
 
4:50 PM
posted on June 09, 2020 by Android Developers

Posted by Dan Galpin, Developer Advocate Two years ago, we introduced the Android App Bundle, a new publishing format that allows Google Play to help optimize your app delivery. The app bundle is now Play’s recommended publishing format; with almost 50% of all top apps & games already using it. It replaces the traditional monolithic APK at publishing time, allowing you to package all o

 
5:11 PM
@RaymondArteaga I'm good, what about you?
 
Android requested access. Rep: 71 - Questions: 10 - Answers: 6 (ratio 4:2.4)
 
5:27 PM
Dude, for f*** sake. Some cops beat down a doctor here. The cops were doing an illegal party (since we're in quarantine) and the tired doctor, who couldn't sleep, broke one of the car's mirrors. After that 4 cops beat her down, and when she screamed for help one of them took the badge and rubbed it on her face saying "I AM THE POLICE". After that, she got a few broken ribs, broke her knee ligament, and they even stepped on her hands.
 
Where in the world are you?
 
Brazil
Unfortunately
 
Asim - Don't use show - or at least look into how show works in the source code. You can add DialogFragments as Fragments (they extend Fragments)
Oh god, yeah, move
 
This was in Rio
Things are very bad over there
over 10% lethality with COVID
 
Run!
Get to a real country!
 
5:38 PM
Nah man, the country is real. The president isn't.
But I feel like running, yeah
 
brazli
carnival
ronaldo
football
street football, neymar
what should I say
rio
Germany
haha
 
lol
 
sorry
 
@Graeme I am not doin show, i am adding it as fragment but it cant be added to backstack that way or atleast i failed to
 
I would look up the documentation on how to add Fragments to the back stack
If you're adding it as a normal Fragment, then there is no reason it won't act like a normal Fragment, and I'd suggest you haven't correctly coded around adding to the backstack (it's not automatic, you need to use the correct arguments to introduce it to a backstack)
 
5:51 PM
@Graeme fragmentManager.begintransaction.replace/add(xyz).addToBackstack.commit is what i did
 
ello all o/
 
ello there
 
ello
 
o/
 
o/
 
5:54 PM
And what did you feed in as an argument to addToBackstack()
And how are you confirming it's not in the backstack?
 
1. null and "" 2. by pressing back on device
 
there's something null
4
A: DialogFragment dismiss() does not pop backstack

DelblancoI can confirm what @Luksprog said in his comment: the dialog must be started through show(FragmentTransaction, String). Note after looking the source: make sure to call addToBackStack(String) on the supplied transaction or else it still won't work.

 
And how are you linking your back event to your FragmentManager's pop method?
 
@Graeme i am not
 
6:11 PM
i forgot to mention i am doing it all inside a fragment, using parentfragment and disabling onbackpress override on activity i can make it disappear by pressing back but it takes two backpresses and also messes up my backpress handling code
so i simply use show and set gravity of dialog to bottom
 
Ah
You'll need to have some clever logic in your activity to route the back event to all FragmentManagers (in the correct order)
I've used the paradigm boolean tryOnBackPress() with FragmentManager's consuming the event by returning true
This is the same way onTouch works with Views
 
@Graeme i can and maybe i will in future updates but currently can't afford to modify code so i was hoping it to automagically handle stuff for me
 
Well, answer me this:
 
does't look that bad
 
How are you hoping for the back event to know which of your containers it should go to
You've got a foreground and a background right?
How do the back event propogate to the FragmentManager right now in your app
 
6:18 PM
@Graeme just an activity with a viewpager
pastebin.com/HV6KLJjt my onbackpress override
 
That's in your Activity right?
(Ack, Kotlin! I need to engage brain)
 
@Graeme Yesh
its just handling viewpager
 
So how would your dialog container be aware of your back press?
 
the way it knows when i do show instead of add < thats what i thought but i already knew it wont work :(
actually it did work but took 2 backpresses
 
6:34 PM
Ah, that's because there is special code in DialogFragment to intercept the back event
You can see it by looking at the source code - go have a look
 
found it!
 
So what does that teach you?
How can you use that in your implementation
(You should also be able to see the backstack implementation already in place for dialog fragment)
By the way my consulting rate recently went up to $220/h
2
XD
 
xD
its workin now thanks
my thanks costs around 500$
 
6:53 PM
Hahah, fair enough
Call it even on this occasion
(Next time, no need to thank me ;))
 
7:40 PM
pastebin.com/jGjEQb0a updated backpress code (addition of a single line as solution)
 
8:07 PM
Nice :)
It would never get through a code review on my project - but that's only because I'm a hard ass
Happy with it?
 
 
1 hour later…
9:19 PM
Fragments can now handle back press events
but afaik this is not working for VP
 

« first day (3524 days earlier)      last day (1429 days later) »