Have done the same thing(included AIDL file in another project i use the service in) but then it give me an error saying
04-20 14:52:23.400: WARN/Parcel(654): **** enforceInterface() expected 'aexp.dualservice.ICounterService' but read 'com.vignet.serviceDemo1.ICounterService' it means that the application was expecting the old package name in which the service was originally defined but now finds the package name in which the application is accessing the Remote Service. On Mar 23, 3:53 pm, Marek Pola <[email protected]> wrote: > Yes, you should copy the AIDL file to all projects that use theService. > > Regards > Marek > > On Mar 22, 6:07 pm, RAJ <[email protected]> wrote: > > > > > I am facing same problem too. > > I dont ahve AIDL in both projects (i have it only in myservice > > project) > > Am i supposed to have same AIDL in both projects? > > > On Mar 17, 1:58 am, Andreas <[email protected]> wrote: > > > > Hi, > > > > Do you set the android:exported property of yourserviceto "true" in > > > the manifest for theservice? > > > > Regards > > > Andreas > > > > On Mar 17, 1:47 am, Peter Fortuin <[email protected]> wrote: > > > > > I had that, but that didn't work. Now I just have set my Build Path in > > > > the > > > > gui application. > > > > > 2010/3/16 Sime <[email protected]> > > > > > > Quick question, do you have the aidl file in bothapplications? > > > > > > Regards > > > > > > On 16 mar, 14:07, Peerke <[email protected]> wrote: > > > > > > Hello, > > > > > > > I have problems with the following: > > > > > > > I want to create toapplications. One with a Androidserviceand one > > > > > > with a Activity that will use functions on theService. > > > > > > Before I splitted this in toapplicationsI got everything working in > > > > > > one application. I can call functions (that are definned in the > > > > > > aidl- > > > > > > file) on theservicewithout problems. > > > > > > > Now the problems coms. I splitted the application into two parts, a > > > > > >Serviceapplication and Gui application. > > > > > > The bindins to theservice(in the gui application) works and I see > > > > > > that theserviceis getting created. Then in the onServiceConnected > > > > > > function of the ServiceConnection class I created the following: > > > > > > > mService = IMyService.Stub.asInterface(service); > > > > > > > And this gives me the following exception: > > > > > > > 03-16 13:53:05.549: ERROR/AndroidRuntime(881): > > > > > > java.lang.NoClassDefFoundError: MyPackage.IMyService$Stub > > > > > > > It looks like he can't find the Stub class in IMyService. But the > > > > > > Stub > > > > > > is part of the java file generated out of the aidl-file. > > > > > > > Anyone has any idea why I get this exception or how I can resolve > > > > > > this > > > > > > issue? > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > > > Groups "Android Developers" group. > > > > > To post to this group, send email to > > > > > [email protected] > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<android-developers%2Bunsubs > > > > > [email protected]> > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

