The Android Library is a collection of classes that have been useful in our various projects, as well as the other projects to which we contribute. They are provided as-is for free use under the MIT license.
In general, for features that interact with Android activities, the library
provides implementations for both the modern
Activity class, and
AppCompatActivity from the Android Support Library.
For more information about standards and practices used in the library, see Coding Conventions.
This package provides classes that allow easier access to SQLite databases. The SQLitePortal extends
SQLiteOpenHelper and manages a persistent connection to an underlying
SQLiteDatabase instance. The QueryBuilder and its related subclasses provide an intuitive grammar for constructing SQLite statements, so that your code doesn't have to be cluttered with a bunch of
SQLiteDatabase invocations where half the parameters are
In version 0.1.4, the library includes the SQLiteAssetPortal, which allows definition of read-only databases whose contents are obtained from assets.
Also in 0.1.4, and greatly expanded in 0.1.5, is the SQLiteHouse, which can automatically parse and marshal data classes that are decorated with special annotations which make them usable as a database schema. This framework greatly simplifies the creation of database classes, and allows the classes that contain the data from each table row to also define the tables themselves. Read the JavaDoc for the main
SQLiteHouse class for more detailed information about how this framework is used.
This package provides specification of a NonsenseGenerator interface for classes which generate structured, randomized text.
The first and canonical implementation of this interface is the NonsenseBuilder, which randomly assembles grammatically-correct sentences from lists of words categorized by part of speech. If you are interested in contributing to the library of words used by
NonsenseBuilder, see Issue #15 and its associated branch.
In 0.1.5, two new builders were introduced: NonsenseShipOrPub, which creates whimsical names for either sailing ships or neighborhood pubs, and BuildertextJavaclass, an entirely silly soundalike name generator inspired by this meme.
Future implementation classes for other silly purposes are planned; stay tuned to the issue registry for details.
ServiceConnectionfor every service you ever write.
android.telephonypackage. The TelephonyController provides programmatic access to telephone call functions that have been obscured in various versions of the Android SDK — most notably, it provides the endCall() method to terminate the currently-active call.