Call/User native functionality

Monkey Forums/Monkey Programming/Call/User native functionality

christianstrang(Posted 2012) [#1]
I'm currently trying to find information/tutorials about "how to access native functionality". I'm trying to access the "android share menu" after clicking a button but I'm not sure where I should start. Is it possible to do this with a module or do I have to change the core files?


Gerry Quinn(Posted 2012) [#2]
There's not much documentation, or at least explanation. Basically you create an extern class with function prototypes, and then write those functions in native code. I suggest you look at mojo or various modules such as Diddy to see how it works in practice.

Whether you have to tweak mojo depends on how/whether mojo interacts with the native stuff you are calling. A menu will most likely involve some tweaking because basically you are taking over user input.


Kauffy(Posted 2012) [#3]
Someone posted a code snippet to do this very thing-- try looking in the Android-specific forum. I saw it within the last week, but I'd happily distract myself from my own challenges to go find it now-- and that won't be productive.