Yes you can write an Dronekit program that could do that. Look at the Solo development guide again, it has some good examples.
Check out Solo Mod Club on facebook. And search Solo accessory bay. There are some people who sell breakout boards for the accessory bay, which allows you to do all sorts of things.
I'm not sure about Android.