« first day (1322 days earlier)      last day (2153 days later) » 

10:00 AM
:)
 
i was away
what happende
 
@Hans1984
 
user3153487
our one cat missing since 15 days
 
user3153487
@Hans1984
 
@Hans1984
@Sneha o.O
 
10:09 AM
lol
 
when you came LOL @Sneha
:3
 
i know that
 
@Hans1984
ok
@Hans1984
 
hans hans hans
 
seen?
 
10:11 AM
one more time
pls
now
 
hmmmm for nefer
 
k
good cat
hopefully he reacts
 
:3
hmmmm hopefully
 
hes one of the core catclub members
:3
 
lol He/She/It/Pony/Cat will be back soon.
 
10:13 AM
lol yes?
 
yeah
later guys
 
:) @berserk hope
@Sneha o.O
 
@ankitagrawal go help the boy
 
@FranciscoMelicias what kid? i am busy
 
10:18 AM
Suppose there are Fragment A and Fragment B. While going to Fragment B from Fragment A, what life cycle state of Fragment A will be called ?
 
@TheLittleNaruto depends whether it is destroyed or not
 
@ankitagrawal well Fragment A has been replaced by Fragment B.
 
did you add in backstack or not?
 
addToBackStack(null)
 
then i guess onresume will be called
 
10:25 AM
onResume ?
 
if you dont add in backstack all fragment lifecycle will be done
 
I am asking about Fragment A not Fragment B
@ankitagrawal That is true.
 
@TheLittleNaruto yes i am talking about a only
 
There must be a way to know that Fragment A has been replaced by Fragment B inside Fragment A only.
 
want to know what is going on the you should add all life cycle method to frgment and log value , you will get how the fragment life cycle works :) , this is how i did
 
10:26 AM
on detach()
 
@ankitagrawal No it's not working.
 
@TheLittleNaruto ondetach() is there
@TheLittleNaruto onDestryView()
 
@ankitagrawal It's not working either
 
that is what happen when you add to backstack
nothing is called
there is a method caled
 
yes, @TheLittleNaruto why not you get current fragment and compare both fragment name ( fragment A and fragment B ) and you will know weather a is replaced by b or not
 
10:28 AM
@AshuKumar No That's kinda work around. I dont want to do that.
 
getuservisiblehint()
@TheLittleNaruto
return false when fragment is not visible
 
@ankitagrawal But that is for Activity not for fragment ?
 
it is fragment method
@TheLittleNaruto
never tried for actviity lol
 
Also will it be called automatically ?
 
no it return whether fragment is visible or not
it needs to be called and check
 
10:30 AM
Then it is not helpful
 
and other method setUserVisibleHInt()
 
I dont want anyworkaround like I mentioned above
 
it is automatically called
@TheLittleNaruto that is not a workaround
@TheNightKing used coordinator ayout with listview
??
 
@ankitagrawal don't use
 
10:32 AM
lol why
 
So there is no state actually gets called
 
setUserVisibleHInt()
 
@ankitagrawal that's a workaround
 
@TheLittleNaruto fragment is bad design bro by google
you can only use workaround when there is no way to do it
 
10:35 AM
btw why do you want to know fragment a has added to backstack?
 
Why Google Why ?
@ankitagrawal So that user can go back and can see that fragment again?
 
in fragment A it will call onPause=>onStop=>onDestoryView()
 
@TheLittleNaruto well that doesnt require you to do anything
 
@TheNightKing No it wont
 
int Fragment B onAttach =>
 
10:36 AM
just popbackstack()
 
@TheLittleNaruto yes it will
 
@ankitagrawal is right
 
onPause is tightly coupled with Activity's onPause
 
@TheLittleNaruto right
@TheNightKing wrong
 
So if Activity's onPause will be called then only Fragments's
 
10:37 AM
my whole app made into fragment i i did not use any thing to go back to last fragement @TheLittleNaruto
 
@TheLittleNaruto fragment has different life cyle
 
@TheNightKing wrong again
 
@TheNightKing Dude I just now tested.
 
onPause onres and ondestroy
are tied to acitivity
 
and read the doc as well
 
10:37 AM
@TheLittleNaruto yes you are right they are tied
@TheLittleNaruto another bad design example
 
There are some resources which are needed to be freed while going from Fragment A to B
That is why I am worried
 
@TheLittleNaruto like what?
@TheLittleNaruto dont worry about memory
 
mmmm...
 
@ankitagrawal need to worry about memory leak,i had very bad exp about memory leak in fragment :(
 
@AshuKumar how so
i use so many fragment without a single memory
leak
 
10:40 AM
Hi guyz i have purchased a micromax device and log cat is flooded with system log any Pro advice
 
Did you guys ever face an issue like when you're going to Fragment A to Fragment B, then some views on Fragment A are still clickable, Even though if they're not visible ?
 
i was downloading image and show fragment retain in GC and memory of fragment not freed by GC and i always got OOM error
 
not @TheLittleNaruto did not face any thing like this :)
 
@TheLittleNaruto then you are using add and not replace
use replace the issue will disappear
 
10:41 AM
@ankitagrawal what is on that image that is wrong ?
 
@TheNightKing that image is right
@TheNightKing so?
 
then why it is not called onPause
we replace the fragment
 
@TheNightKing you forget to read
 
and adding BackStack
 
that onpause onresume ondestory
are tied to acitivity lifecycle
that chart is just a summary
 
10:43 AM
@TheNightKing do you have such an image for rotating an activity containing a fragment?
 
user3153487
anyody work with xmpp chat
 
user3153487
?
 
Guys, i have been struggling with a problem for a while now and i would appreciate it if someone could take a look at it. Here is the question: stackoverflow.com/questions/37922831/… Thanks in advance!
 
@rekire yes
@ankitagrawal onResume always called in fragment
 
@TheNightKing that is a terrible myth
@TheNightKing try bro you will understand
 
10:49 AM
that onpause onresume ondestory

are tied to acitivity lifecycle if that
so onResume should
call when fragment onResume
and onResume always called
 
let try the opposite
it is tied to activity lifecycle not the other way around
 
@TheNightKing my question was regarding the onStop and onDestroy calls on the fragment and the activity
 
so when onresume of activity is called then only fragment
is called
actually there are activity method
why fragment has that i have no idea
another bad design example
 
@ankitagrawal you mean why a fragment has an onresume call?
 
@rekire yes
 
10:52 AM
that is quiet helpful
 
if it has then it should function like onResume
@rekire like?
 
in that call you know that you are attached to your activity and your views are ready to use
 
well it always call when backstack called
@rekire both
and onDetach also
 
@rekire onViewCreated
 
@TheNightKing sh... that destroys my plan
 
10:53 AM
and other callbacks are there
 
@ankitagrawal there you can attach your listeners etc
 
@rekire onAttach is there for that
@rekire what plan?
 
well then you don't know how oop's work
Fragment is just class
it has system lifecyle
 
@ankitagrawal no I don't think so, you can use there as far I remember your target fragment and getActivity()
 
10:54 AM
!!mehow
 
@Hans1984 I'm a little kitty. meow , meooww!
 
/8ball ?
 
@rekire onREsume is far more abused than useful
 
@rekire why getContext now days in v4
 
in fragment
 
10:55 AM
@ankitagrawal I had the plan to attach a listener based on the life cycle to get results even on configuration changes
 
@rekire plan??
 
in on destroy I wanted to cancel all cached events
 
@rekire :D
 
@TheNightKing that mean to get the result after the onResume call
 
10:57 AM
lol @hitman cat
 
@rekire no
 
i hope you do all of those 48
every day
 
@TheNightKing e.g. for preferences or to get your application class, to access services, etc
 
cat cat cat
 
@Hans1984 lol
 
10:57 AM
48x10
480 reps
48 sets
 
@Hans1984 :D
 
@rekire in fragment ondestroy or viewdestroyed
 
@rekire but same we can do with getActivity() also
should i use otto for nested fragments or Result Receiver is good option to deal with it
 
@rekire i think you missed my point i was referring to fragment onREsume and not activity oresume, activity onresume is pretty useful
 
cat can squat with 100 kg for 12 reps
cat stronk
 
11:01 AM
lol
@TheNightKing you can also used broadcast
local one
 
@ankitagrawal that use more extra line of code
 
@TheNightKing i see ok then use otto or event bus then
 
@ankitagrawal then extra class
extra bytes
 
well otto or event bus has many class so, so many extra bytes
 
11:05 AM
yeah
 
extra extra extra extra extra extra extra extraextra
bytes
 
I'll go with interface in that case
 
may be abstract method
 
@TheLittleNaruto so much war for you and you were gone
 
@TheLittleNaruto nemesis
 
11:07 AM
@TheNightKing fyi i already know fragment is just a class , long ago checked the source code
 
@ankitagrawal I am scared of war, So in such time, I like to hide. ;)
@LiquidPenguin lol
 
hey guys, please suggest me good qr scanning library
 
@TheLittleNaruto not good
 
well i found result Receiver for better awesome and easy to use not harm
 
@TheLittleNaruto which type of war ?
 
11:07 AM
its handler to
 
@LiquidPenguin i pinged you
check that
 
@ankitagrawal can't delete the room
 
Also I was adding Fragment not replacing it. @ankit @TheNightKing Though It was a good war. ;)
 
for some bloody reason
 
@TheLittleNaruto i told you so
 
11:10 AM
@TheLittleNaruto adding ?
 
using add instead of replace
@TheNightKing
 
what happen when replace
 
Now It's calling those states.
 
@TheLittleNaruto adding just adds another layer
 
11:11 AM
Right
 
@TheLittleNaruto yeah i was taking about replacing
 
@TheLittleNaruto it doesnt go anywhere so no lifecycle changes
 
@TheNightKing I thought you're talking about "add".
@ankitagrawal right
 
@TheLittleNaruto anyways explain to @TheNightKing that onresume lifecycle is tied he thinks he is right and i dont know oops lol
 
46 mins ago, by TheLittleNaruto
There must be a way to know that Fragment A has been replaced by Fragment B inside Fragment A only.
 
11:13 AM
@TheNightKing Actually that was my colleague's code.
 
@TheNightKing that was his mistake he wanted to replace but added add in code
 
!!shrug
 
¯\_(ツ)_/¯
 
thus onResume of fragment not called when you press back button @TheLittleNaruto
 
@ankitagrawal hehe
 
11:14 AM
!!kids
 
@ankitagrawal That didn't make much sense. Use the !!/help command to learn more.
 
!!define OakBot
 
@Hans1984 My pocket dictionary just isn't good enough for you.
 
Hahah
 
11:14 AM
@TheNightKing Okay
 
!!learn OakBot "OakBot is my only love"
 
@Hans1984 Command oakbot learned
 
onresume lifecycle is tied with activity then is must call activity onResume also
 
@rekire "Sometimes you should wake up in the room."
 
11:15 AM
gnihihih
 
it should affect activity context also
 
@TheNightKing it is opposite that is what you are not understanding
 
then explain to me
 
@TheNightKing Check this site: smartseries.in 2 BHK Flat can be bought within 80Lakhs in Mumbai's prime locations
 
if activity onresume is called then only fragments onresume is called
 
11:18 AM
@TheLittleNaruto do you home button of bookmycab driver app
 
onresume is a activity method
 
you should see onresume of that also
@ankitagrawal it also a fragment method
 
@TheNightKing Okay. I'll check that
 
@TheNightKing nope it is just to provide you that activity hasresumed
 
Ok guys leaving now
See ya later tonight may be
 
11:20 AM
as far as i see onresume should not be part of fragment lifecycle
 
@ankitagrawal both has different life cycle
has both behave differently
 
@TheNightKing anyways fragment doesnt have a concept of resume and pause
@TheNightKing tell me then what does fragment pause means
 
@ankitagrawal what is the parent class of fragment
@ankitagrawal well it has
i used every day
 
time for lunch
 
@TheNightKing try seeing how the callbacks are done
 
11:22 AM
brb
 
and you will get it how it is called
i have tested that
 
@ankitagrawal i call every day
i call independently
 
@TheNightKing maybe you didnt check properly then or didnt noticed
i also used fragments daily
 
hehe
your questions are right but that is how fragment lifecycle messed up is by google
 
11:25 AM
onResume work independently it not relate to activity
in Fragment
 
@ankitagrawal @TheNightKing hey guys, zxing library is good to use or not fr qr scanning ?
 
then Fragment should not have onSaveInstance also
and onActivityResult also
may be google has created the wrong flow chart of Fragment
they coded wrong way :p
 
check the source code of fragment
you will understand
onsaveinstance is not tied to acitivity
it is independent
 
well so does onResume
 
Called when the Fragment is no longer resumed. This is generally tied to Activity.onPause of the containing Activity's lifecycle.
 
The system calls this method as the first indication that the user is leaving the fragmen
onPause
 
The lifecycle of the activity in which the fragment lives directly affects the lifecycle of the fragment, such that each lifecycle callback for the activity results in a similar callback for each fragment. For example, when the activity receives onPause(), each fragment in the activity receives onPause().
 
@ankitagrawal yeah but that on Rotation
but if you replacing fragment then it's not
 
@TheNightKing let not do this war we can check that by logging
lets try some scenarios
 
11:37 AM
war finished now :)
 
@ankitagrawal i sure from backstack it also call the onResume
 
@TheNightKing yes true that is what i told you
 
you told onResume when call when activity onResume called
and if you coming from previous fragment then it won't
 
@Hans1984 raining in another ciity]
rajkot
 
11:39 AM
then do loggig
 
logging*
 
i will try that onresume one but as far as i have read in the docs i am right
anyways i never used fragment onresume
onpause
and ondestroy
never needed to
 
take four fragment each fragment has different title bar
repalce one bye one
and change title
and onBackPress title should be same
try that
 
also see this
The fragments onResume() or onPause() will be called only when the Activities onResume() or onPause() is called. They are tightly coupled to the Activity.

Read the Handling the Fragment Lifecycle section of this article.
94
Q: Fragment onResume() & onPause() is not called on backstack

KrishnabhadraI have multiple fragment inside an activity. On a button click I am starting a new fragment, adding it to backstack. I naturally expected the onPause() method of current Fragment and onResume() of new Fragment to be called. Well it is not happening. LoginFragment.java public class LoginFragment...

in this question
and this
10
Q: Fragment's onResume() not called when popped from backstack

nilkashHi I am developing android application in which I am using I am using single Activity and 3 fragments. So consider I have 3 fragments A B C. When I switch from A to B, I am adding Fragment to backstack and simillar for B to C. Now when I click back from C it shows me B and similar for B to A as w...

and many other questions
 
11:52 AM
@AshuKumar hi bro
 
good evening brother @brahmyadigopula
 
good eveing.bro..how you enjoying ur bday
@AshuKumar
 
back!
 
here is my log and let show my code also
 
11:55 AM
party with work @brahmyadigopula
 
neeefferr cat! :3
 
client added new functionality QR scanner so working in it
@brahmyadigopula
 
haha.but you only told that you less work you have today?
have less work
 
yes , i hate client :(
 
okay.how much time it vil kill your time
 
11:58 AM
Hi everyone , is it possible to write a job which should get triggered at a particular time and should be able perform some key event like (ctrl+alt+del) and should provide password which we will store in code and should hit enter key.. IS IT POSSIBLE IN JAVA..?
 

« first day (1322 days earlier)      last day (2153 days later) »