A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/lw71/LW/html/lw-538.htm below:

android-get-current-activity

android-get-current-activity Signature

android-get-current-activity => result

Values

result

An object of class android.app.Activity, or nil.

Description

The function android-get-current-activity returns the current activity that was set by the Java method com.lispworks.Manager.setCurrentActivity, if the current thread is the Android main thread.

android-get-current-activity first checks whether the current thread is the main thread, and if it is not returns nil. Otherwise, it returns the activity that was last set by com.lispworks.Manager.setCurrentActivity (an object of class android.app.Activity). This is the object that is needed to create dialogs.

Notes

The main purpose of android-get-current-activity is to decide whether the current code can raise dialogs, and if so to get the activity to use as a context.

Examples (example-edit-file "android/dialog")

LispWorks User Guide and Reference Manual - 20 Sep 2017


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4