Back to Acra

LastActivityManager

web/static/javadoc/5.3.0/org/acra/builder/LastActivityManager.html

latest3.9 KB
Original Source

Skip navigation links

org.acra.builder

Class LastActivityManager


public final classLastActivityManagerextends[Object](http://d.android.com/reference/java/lang/Object.html?is-external=true "class or interface in java.lang")

Responsible for tracking the last Activity that was created. Since:4.8.0

Constructor Summary

Constructors | Constructor and Description | | --- | | LastActivityManager(Application application) Create and register a new instance |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method and Description | | --- | --- | | void | clearLastActivity() clear saved activity | | Activity | getLastActivity() | | void | waitForActivityStop(int timeOutInMillis) wait until the last activity is stopped |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

LastActivityManager

public LastActivityManager([@NonNull](http://d.android.com/reference/android/support/annotation/NonNull.html?is-external=true "class or interface in android.support.annotation")[Application](http://d.android.com/reference/android/app/Application.html?is-external=true "class or interface in android.app")application)

Create and register a new instance Parameters:application - the application to attach to

Method Detail

- 

getLastActivity

[@Nullable](http://d.android.com/reference/android/support/annotation/Nullable.html?is-external=true "class or interface in android.support.annotation")public[Activity](http://d.android.com/reference/android/app/Activity.html?is-external=true "class or interface in android.app")getLastActivity()

Returns:last created activity, if any

- 

clearLastActivity

public void clearLastActivity()

clear saved activity

- 

waitForActivityStop

public void waitForActivityStop(int timeOutInMillis)

wait until the last activity is stopped Parameters:timeOutInMillis - timeout for wait

Skip navigation links