After unzipping the SilverLining SDK for Android on a Windows or Linux system, you'll find several folders:
- docs: Documentation for SilverLining for Android, which you're reading right now.
- include: Public C++ header files for SilverLining, used for developing native activities or JNI code with SilverLining.
- OSGAndroidSilverLiningDemo: A sample application illustrating SilverLining integrated with OpenSceneGraph.
- private_include: Only included with licensed full source SDK's, this contains private header files needed to recompile SilverLining for Android.
- SilverLiningAndroidDemo: A sample application illustrating SilverLining in a Java-based Android application.
- SilverLiningAndroidLibrary: An Android library containing a Java interface to SilverLining. Your Java apps will reference this library to use SilverLining, as the SilverLiningAndroidDemo does. You'll want to have a look at src/com/sundogsoftware/silverlining/SilverLining.java inside this folder, which implements a simplified interface to SilverLining. The full SilverLining API is exposed by the remaining files.
- SilverLiningNativeActivityDemo: A sample native activity application for Android using SilverLining, implemented entirely in C++ and the Android Native Development Kit (NDK).
- src: The native source code for SilverLining, included only with licensed full-source SDK's.
- static_lib_gnustl Static libraries for SilverLining for Android, linked against the GNU STL implementation. Native activity developers using GNU STL will include these libraries in their projects.
- static_lib_stlport Static libraries for SilverLining for Android, linked against the stlport STL implementation. Native activity developers using stlport will include these libraries in their projects.
The best way to understand how to use SilverLining for Android is by walking through how the sample applications work; the following pages will illustrate how SilverLining works with Java, C++, and OpenSceneGraph applications.