It is possible to use private APIs if and only if the app you're trying to write ships on a device. The way to build those is to download the source, following the instructions and
source.android.com, and build directly against the source instead of using the SDK. In general, we don't recommend this, because the internal functions are likely to change between releases, making more maintenance work for you; but it is possible.
-joe