Couldnt find "import java.nio.ByteBuffer" class in AIDL

243 views
Skip to first unread message

Gopinath Sathasivam

unread,
Apr 24, 2018, 11:59:42 AM4/24/18
to android-platform
Hi,

I have created New system service and manager which passes Bytebuffer as argument in method and added "import java.nio.ByteBuffer " in .java file, compilation successful.
But when I add the same in .aidl file build error "Couldnt find "import java.nio.ByteBuffer" class

Example : .AIDL File

import java.nio.ByteBuffer

Callfunction(ByteBuffer value);

Error: "Couldnt find "import java.nio.ByteBuffer" class

Any help/suggestions will be highly appreciated.

Colin Cross

unread,
Apr 24, 2018, 1:14:11 PM4/24/18
to android-...@googlegroups.com
Objects that go through IPC must implement android.os.Parcelable, see https://developer.android.com/guide/components/aidl.html#PassingObjects.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.

asho...@gmail.com

unread,
May 16, 2018, 11:17:27 AM5/16/18
to android-platform
create ByteBuffer.aidl

import java.nio.ByteBuffer;

parcelable ByteBuffer


use ByteBuffer in your aidl 
 
 

Reply all
Reply to author
Forward
0 new messages