android - Update Activity on closing Fragment -


i have activity a. once has been loaded, on clicking button in adds fragment f on a's home layout. once inside f, if callinggetactivity().getsupportfragmentmanager().popbackstack();, infacts navigates again activity a. there way can make changes in activity once fragment has been popbackstacked? don't know method called in activity once fragment has been popbackstacked , have activity. please help.

you can add onbackstackchangedlistener(). this:

getsupportfragmentmanager().addonbackstackchangedlistener(new onbackstackchangedlistener() {     public void onbackstackchanged()      {                         } }); 

this callback called after each change on stack.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -