Import the shinobicharts Library

Eclipse

shinobicharts is designed to be used with the Android Studio IDE. That said, it is possible to import the library into the Eclipse IDE, following the instructions below.

To use the shinobicharts library you’ll need to import it into Eclipse as an Android Library Project and then reference it from your own application. Open up Eclipse and make sure you’ve unzipped the download bundle.

  1. Unzip the .aar file (included in the shinobicharts download bundle) into a temporary directory.
  2. Create an empty directory (not in the Eclipse workspace) that will be the home for the Android library project. For the rest of these steps, we will refer to this as the output directory.
  3. Copy the AndroidManifest.xml and proguard.txt files, and the res/ directory from the unzipped .aar file into the output directory.
  4. Create a libs/ directory in the output directory. Copy into libs/ the classes.jar from the root of the unzipped .aar file, plus anything in jni/ in the .aar file.
  5. Import the resulting project into Eclipse. Tick Is a Library within the Android project settings menu as usual.

You can now reference this project in any Android Application projects you create in your workspace.

Hardware Acceleration

In order to display a chart, some devices need to be explicitly told that the application requires hardware acceleration. To do this simple add android:hardwareAccelerated="true" to the application element of your app’s AndroidManifest.xml file.