AndroidNdkBinderExamples icon indicating copy to clipboard operation
AndroidNdkBinderExamples copied to clipboard

Can I send java object by using binder_ndk?

Open houzhj58 opened this issue 3 years ago • 1 comments

I add function in IMyService.aidl void send (Bundle aBundle); and import android.os.Bundle

but when I exec gradlew build, it shows: ERROR: android.os.Bundle: couldn't find import for class android.os.Bundle I guess beceuse there is no cpp files for java Bundle class.

In google website, there is a funciton AParcel_fromJavaParcel, but no function AParcle_toJavaParcel.

So if anyone knows how to send java object by using binder_ndk.

houzhj58 avatar Apr 28 '21 07:04 houzhj58