Plugin for android

Is it possible to create a plugin for an existing android app? How to do it?