2
votes
  • Is it possible, and how ( if it is ) to use functions from Android libraries from Flex mobile application ?
1
Functions like what? Camera, Acelerometer? - HugoLemos
The answer is to create a Native Extension. @ethrbunny already gave you a link to the docs. If you Google on Flash Native Extensions android, you'll find plenty of samples, instructions, and probably some ready to go extensions. - JeffryHouser
I wanna to access functions which is inside java libraries. For instance - databases drivers, encription algorithms .. etc.. But not to create them, but access already created and packed by 3rd party providers. - user1886623
@BertiKelvin You'll have to include those libraries within your Native Extension library, but you should be able to use them. Just avoid trying to use the native Android MediaPlayer class. It's a nightmare with ANEs. Near impossible, if you don't want to force the user to turn their screen on/off to play the video. - Josh

1 Answers

1
votes

Native extension is the answer, credits to flextras. yes, you'll be able to access the java api functions with native extension. because native in android is the java.. sort of.. on iOS you could use it to use objective-c, on windows you can use it for c++..