Communication between Android device and Flex via BlazeDS feasible?
I'm currently looking for a good method for communication between one or multiple Google Andro开发者_C百科id devices (smartphones) and an Adobe Flex frontend on a pc.
Requirements:
- Call functions on the other side (Flex to Android and vice versa)
- Send real time messages like changing sensor data from device to Flex
I stumbled upon BlazeDS and I'm wondering if it fits my needs and how it can be used for communication between participating parties.
What would be the best way to do methocd invocation on the remote site and sending real time data? Would therefore the messaging service be suitable (which would be my guess) or can i somehow use RPC/Remote Objects? T he Java AMF Client could be used on the Android device.
I was thinking about sending messages to the server and the server could forward messages to the clients which translate them into function calls.
RPC is only ok for invoking a method call on the server but not calling a method on the client right?
Still not sure how to set this up correctly.
If I understand correctly you need communication between native Android code and Flex code on an Android device (an AIR app). The only way to do that is through native integration. Here is an blog post I wrote on how to do that:
http://www.jamesward.com/2011/05/11/extending-air-for-android/
精彩评论