Close the facility.
Close the facility.
First, decrements the "nested open" count. If it has reached
zero, do a "real" close, using the protected realclose
method.
Otherwise, some other activity is still using the facility, and
it stays open.
When the last activity or service calls close
, the facility
actually does shut down, using the protected realClose
method,
which will shut down threads, close files, or whatever.
Tag for the facility to use in log entries
Writes a debugging log method, using the facility's logTag
Open the facility.
Open the facility.
If the facility isn't already open, does setup which depends on
the particular facility (which may involve opening files,
starting threads, or whatever) --- a "real" open, using the
protected realOpen
method. The given Context
may be used
for setup, depending on the nature of the facility.
If it is already open, just increments a "nested open" count;
see close
below.
Semi-abstract base class for a facility of some kind which is of use to one or more Activities or Services within an application. Often has a WorkerThread, which it can use to run code in the background.