air native extension - possible to receive broadcast?

夙愿已清 提交于 2019-12-11 23:08:49

问题


I am developing application with Adobe Flex on AIR platform. Using native extension for Android, it is possible to send SMS from my Flex application.

Would it also be possible to receive SMS with my application (receive Broadcast carrying information about incoming SMS)?

More generally, is it possible to receive Android Broadcasts in my Flex application?


回答1:


I found out this is possible.

"The native implementation can dispatch events that the ActionScript extension code can listen for. This mechanism allows the native implementation to perform tasks asynchronously, notifying the ActionScript side when the task is complete"

Details on how to do it are covered here:

http://help.adobe.com/en_US/air/extensions/air_extensions.pdf.



来源:https://stackoverflow.com/questions/9079754/air-native-extension-possible-to-receive-broadcast

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!