Skip to content

Using this on Actvity level? #6

Open
@thevirus20

Description

@thevirus20

Hi,
Can I use this on Activity Level not on Application Level?
I mean, suppose I am not using Application class and registering this in Activity A(Main-> Activity A) like this

ApplicationHelper.registerActivityLifecycleCallbacks(mApplication, mActivityLifecycleCallbacks);

in OnCreate() to get only call back of this activity?

I actually tried this but I am getting callback from Main also.

Is there a way to do thit?because I need to stop request if user goes away from Activity A and resume request when he comes back.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions