libmx3 / mx3

a sample project showcasing/collecting cross platform techniques on mobile
MIT License
1.17k stars 149 forks source link

How do c++ call java in the demo for Djinni? #80

Closed yinyinnie closed 8 years ago

yinyinnie commented 8 years ago

How do c++ call java in the demo for Djinni?

skabbes commented 8 years ago

You can see an example of this when Android implements the djinni http interface.

https://github.com/libmx3/mx3/blob/master/djinni/http.djinni

https://github.com/libmx3/mx3/blob/master/android/java/com/mx3/AndroidHttp.java

Then you can see it used in C++ here:

https://github.com/libmx3/mx3/blob/master/src/github/client.cpp#L48-L68

Hope this helps!

yinyinnie commented 8 years ago

Thanks very much!!

On Apr 18, 2016, at 05:08, Steven Kabbes notifications@github.com wrote:

You can see an example of this when Android implements the djinni http interface.

https://github.com/libmx3/mx3/blob/master/djinni/http.djinni https://github.com/libmx3/mx3/blob/master/djinni/http.djinni https://github.com/libmx3/mx3/blob/master/android/java/com/mx3/AndroidHttp.java https://github.com/libmx3/mx3/blob/master/android/java/com/mx3/AndroidHttp.java Then you can see it used in C++ here:

https://github.com/libmx3/mx3/blob/master/src/github/client.cpp#L48-L68 https://github.com/libmx3/mx3/blob/master/src/github/client.cpp#L48-L68 Hope this helps!

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/libmx3/mx3/issues/80#issuecomment-211116853