AndroidNdkBinderExamples
AndroidNdkBinderExamples copied to clipboard
Can I send java object by using binder_ndk?
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.