Re: [android-developers] Re: AIDL with Map generating broken Java

2011-11-02 Thread Mark Murphy
On Wed, Nov 2, 2011 at 3:49 PM, randyv2 wrote: > I misunderstood the directions that "in" and "out" mean, and had them > reversed.  It looks like the correct thing for me to do is change the > "out" to an "in" (AIDL complains without a default set, as both Bundle > and Map can be passed "in", "out

[android-developers] Re: AIDL with Map generating broken Java

2011-11-02 Thread randyv2
On Nov 2, 12:37 pm, Mark Murphy wrote: > On Wed, Nov 2, 2011 at 3:26 PM, randyv2 wrote: > > Would it horrify you to know > > that the link you provided is what I was using as a reference when I > > started walking down this road? ;) > > That depends. Did you buy the book? :-) Not yet, but it's

Re: [android-developers] Re: AIDL with Map generating broken Java

2011-11-02 Thread Mark Murphy
On Wed, Nov 2, 2011 at 3:26 PM, randyv2 wrote: > Would it horrify you to know > that the link you provided is what I was using as a reference when I > started walking down this road? ;) That depends. Did you buy the book? :-) > 1. IGameInterface.aidl - This is the equivalent of IScript.aidl in t

[android-developers] Re: AIDL with Map generating broken Java

2011-11-02 Thread randyv2
On Nov 2, 10:53 am, Mark Murphy wrote: > Um, I'll be surprised if what you propose here is stable. I don't > think out parameters are designed for long-term use, just for a single > call (which is equivalent to returning the value). The primary > advantage of out parameters is that you can have mo

Re: [android-developers] Re: AIDL with Map generating broken Java

2011-11-02 Thread Mark Murphy
On Wed, Nov 2, 2011 at 1:45 PM, randyv2 wrote: > I'm using this as a way to implement a callback from my service, so > I'm using the interface as a way to pass data from the service to the > callback. Um, I'll be surprised if what you propose here is stable. I don't think out parameters are desig

[android-developers] Re: AIDL with Map generating broken Java

2011-11-02 Thread randyv2
Looks like the Bundle type works just fine. Since AIDL already imposes a Parcelable restriction on the elements contained in a Map, the extra requirements of a Bundle aren't a problem, and the interface will work for what I need. Thanks! On Nov 2, 6:37 am, Streets Of Boston wrote: > What if you

[android-developers] Re: AIDL with Map generating broken Java

2011-11-02 Thread randyv2
I'm using this as a way to implement a callback from my service, so I'm using the interface as a way to pass data from the service to the callback. Making the change you've suggested wouldn't work in this case. That said, if you've got a suggestion for a different approach to this problem I'd lov

[android-developers] Re: AIDL with Map generating broken Java

2011-11-02 Thread Streets Of Boston
What if you use *Bundle *instead (which is basically a Map implementation that implements Parcelable as well). -- 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 unsu