Sample project of SDKs from Onyx-Intl, including onyxsdk-base, onyxsdk-scribble, onyxsdk-pen
To use the SDK, please add the following statement to your build.gradle:
compile ('com.onyx.android.sdk:onyxsdk-base:1.4.3.7')
compile('com.onyx.android.sdk:onyxsdk-pen:1.0.8')
compile('com.onyx.android.sdk:onyxsdk-data:1.1.0')
compile('com.onyx.android.sdk:onyxsdk-notedata:1.0.5')
For onyxsdk-scribble SDK, dbflow library is inside the jitpack, so you have to add the following statement to your project build.gradle:
maven { url "https://jitpack.io" }
The project contains following examples that you should take care of:
- EpdDemoActivity: basic demo of EPD Screen Update with EpdController
- FrontLightDemoActivity: demo of FrontLightController. If device support frontLight, you can switch the screen brightness.
- FullScreenDemoActivity: example of full screen switch. If you want to switch full screen , please call the api
DeviceUtils.setFullScreenOnResume(this, fullscreen);
.That supports all devices.
- EnvironmentDemoActivity: shows how to use DeviceEnvironment to access removeable sdcard. You can call
DeviceEnvironment.getRemovableSDCardDirectory().getAbsolutePath();
Following demos are example of onyxsdk-pen.
We use TouchHepler api to draw
- ScribbleTouchHelperDemoActivity is an example of TouchHepler.
We have no restrictions on the view, you can set anything view.For example, SurfaceView , webview. We will return relative coordinates, According to the view you set.
-
ScribbleSurfaceViewDemoActivity: example of SurfaceView
-
ScribbleWebViewDemoActivity: example of Webview
If the device supports touch, you scribble with your fingers.
- ScribbleTouchScreenDemoActivity: example of Scribble API from EpdController for IMX6 devices
We alse support move eraser, multiple view scribble and save scribble points
-
ScribbleMoveEraserDemoActivity : example of move eraser
-
ScribbleMultipleScribbleViewActivity : example of multiple view scribble
-
ScribbleSavePointsDemoActivity : example of save scribble points
- ScreensaverActivity : example of setting screensaver
- OpenSettingActivity : example of open setting
- DictionaryUtils to query word in dictionary, for more details to see DictionaryActivity
- AppOpenGuide : open app through adb command