.aidl file in android IPC

90 views
Skip to first unread message

ivan harmady

unread,
Apr 22, 2011, 6:04:56 PM4/22/11
to android-platform
hi, I'm trying 2 days to get complete .aidl file without errors, but
it still can't import arraylist and hashset i need t work with. Here
it is:

// file IRemoteService.aidl
package com.example.service;

import java.util.ArrayList;
import java.util.HashSet;

interface IRemoteService {
ArrayList<Place> getMyPlaces();
HashSet<Place> getCurrentPlaces();
}

i need tto work with it and i spend enormous time to get it correct
but i cant find any working solutions on the internet for this :/
thx for every little halp :) .

Dianne Hackborn

unread,
Apr 22, 2011, 6:39:16 PM4/22/11
to android-...@googlegroups.com
HashSet<> isn't supported.

Use List<T>, not ArrayList<T>.

Don't import these like Java classes.


--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.




--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

Reply all
Reply to author
Forward
0 new messages