Aard 2 for Android is a successor to Aard Dictionary for Android. It comes with redesigned user interface, bookmarks, history and a better dictionary storage format.
Aard 2 lookup can be initiated from other applications, either through standard Share action or directly, if application implemented an action to start Aard 2 with lookup intent.
Applications can launch Aard 2 lookup by starting activity with intent
aard2.lookup
with text to look up passed as an extra string
parameter SearchManager.QUERY. For example:
Intent intent = new Intent("aard2.lookup");
intent.putExtra(SearchManager.QUERY, "Foo Bar");
startActivity(intent);
Same thing from a command line using adb:
adb shell am start -a aard2.lookup -e query "Foo Bar"
Aard 2 is built with Gradle, make sure to install it first (Gradle 1.x, Android tools don’t work with 2.x yet).
Aard 2 depends on projects fdrawable, slobj and slobber.
Get the source code:
mkdir aard2
cd aard2
git clone https://github.com/itkach/fdrawable.git
git clone https://github.com/itkach/slobj.git
git clone https://github.com/itkach/slobber.git
git clone https://github.com/itkach/aard2-android.git
Create settings.gradle with the following content:
include ':fdrawable'
include ':slobj'
include ':slobber'
include ':aard2-android'
Open Android Studio, go to File, Import Project…, select aard2 directory and then Finish. This should create the project ready for running and debugging on device or in emulator.
To build an APK on the command line:
cd aard2-android
gradle build
To install the APK:
adb install -r build/outputs/apk/aard2-android-debug.apk