so i’m trying to do the comunicatino and flowing corona page >
http://docs.coronalabs.com/coronacards/android/communication.html#TOC
i’m inserting this code to corona >
local event = { name="coronaView", message="Hello from CoronaCards!" } -- Dispatch the event to the global Runtime object local result = Runtime:dispatchEvent( event ) print( "Response: " .. result ) --\> Response: Nice to meet you CoronaCards!
and this code to my java class
mBigCoronaView.setCoronaEventListener(new CoronaView.CoronaEventListener() { @Override public Object onReceivedCoronaEvent(CoronaView view, Hashtable\<Object, Object\> event) { android.util.Log.i("Corona", String.valueOf(event.get("message"))); Toast.makeText(MyApplication.getAppContext(), String.valueOf(event.get("message")), Toast.LENGTH\_LONG).show(); return "Nice to meet you CoronaCards!"; } });
i’m adding the code to my javaclass AFTER i’m casting mBigCoronaView (i’m using the example codes)
but nothing happens, and the corona event listener isn’t being called,
can someone help me on that one ?
does it happend to you too ?