I suggest using Bundle. On Mon, Aug 9, 2010 at 10:40 PM, QasewKim <converg...@gmail.com> wrote:
> Hi, > I am curious about the data types that AIDL can support. > > The document ( > http://developer.android.com/guide/developing/tools/aidl.html > ) says, > AIDL can support String, List, Map, etc. > But to me, the Map seems that it is not the member of them. > > Here is my code. > ==================== > package my.andr.test > > import android.graphics.Bitmap; > > interface testservice{ > int add(String s); // this is fine > int delete(String s); // this is fine > > int addList(in List<String> list); // this is fine > > int addMap(in Map<String, String> map); // this is not compiled. > build error. > int addMap(in Map<int, String> map); // this is not compiled. build > error. > } > ==================== > > Is it because of > "Generic maps, (e.g. of the form Map<String,Integer> are not > supported. " in the document? > > Then, how can I use the map? > I need the Map<int, String> to pass through AIDL. > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer hack...@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. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en