Sharing data between Java & C++

  • Replies:1
Abhishek
  • Forum posts: 1

Feb 28, 2020, 9:56:09 AM via Website

Hi,
I would like to share data between Java & C++ in my android app, but would not want to make a copy of the data. Would like to use the same memory as a reference.
Can someone assist in this regard?

Reply
James Watson
  • Forum posts: 1,583

Feb 29, 2020, 8:16:01 AM via Website

Which part is developed with C++ code in your android app?

Why not to share your data using Intent?
As we know, Android uses ACTION_SEND event of android.content.Intent class to send data from one activity to another and from current activity to outside the application.
Intent class needs to specify the data and its type which is to be shared.

Just for your reference.

Download size < 0.15 MB. But also accurate enough, ad-free & free.
The minimalist app available on Play Store: https://goo.gl/ws42fN
Blog: https://okblackcafe.blogspot.com Your 5-star is appreciated.

Helpful?
Reply