Get the plugin SDK
Kvaesitso comes with a plugin SDK that abstracts away the low level details of inter-app communication and streamlines the process of creating plugins.
Add the following dependency to your project:
Create your first plugin
Start by creating a new class and giving it a meaningful name.
This class needs to extends one of the plugin base classes. Which class to extend depends on the kind of plugin that you want to develop. Please refer to the article of the respective plugin type to continue. But first, regardless of plugin type, you need to register your plugin in the
Under the hood, plugins are implemented using Android's content provider APIs. While the plugin SDK abstracts most of that away from you, you still need to register the plugin class as a content provider in the
<action android:name="de.mm20.launcher2.action.PLUGIN" />
<category android:name="android.intent.category.DEFAULT" />
android:nameis the class name of your plugin class.
android:authoritiesmust be a globally unique name. It is a good practice to prefix it with your app's package name and add a unique suffix.
You must not change this later or things will break.
<intent-filter />lets Kvaesitso know that this content provider is a plugin.
Your next steps depend on the type of plugin that you want to develop: