I am writing an application using Oracle MAF and need to implement a share system. I have seen in other apps a default "Share with..." context that seems to be built in to Android
Example from a Samsung s6, from within the Gallery app (I have seen this within other, 3rd party apps as well): share interface from android 6
From research it seems that if I were writing an Android only app using say, Android studio, I would have access to a method to trigger this "Share with..." popup. However in all of the examples I have found they call startActivity()
. Which I cannot find a way to do from within MAF (I think because I can't access things like views and activities?).
So is anyone aware of a way to activate this "Share" context from within MAF?
Please note I do understand I could implement my own social media sharing popup from within my view (I write my UI's with html so it wouldn't be too hard). But I would prefer to trigger this built in popup as it offers a lot more functionality than I could code myself, and also would save a lot of time manually coding these sharing options.
Oracle MAF runs inside an Apache Cordova Wrapper. MAF is called a"hybrid" mobile application and therefore it access the underlying OS via the wrapper. I would check if Apache Cordova exposes this API. If it does not then I do not think Oracle MAF can access it. You might also check and see if this call can be made via JavaScript - MAF can access JS libraries. Or, check if Cordova can expose this as a custom plug-in. If so adding a custom plug-in to MAF is easy.