[android-developers] Re: aidl remote service call namespace question

2012-09-12 Thread xmMary
Hi, I wonder if you have settled the problem stated here. I have encountered the same problem as you. I have surfed a lot of posts regarding to this issue but haven't found a solution. I also have two android projects, one provides service and the other tries to access the service. But I

[android-developers] Re: aidl remote service call namespace question

2009-05-22 Thread dev_rob
I am still hanging on this issue, maybe there is someone, who has played around with service and can provide me some example code, where it works that a service, lying in one eclipse project is successfully bound to and called maybe by an activity, which resides lying in another eclipse

[android-developers] Re: aidl remote service call namespace question

2009-05-22 Thread Dianne Hackborn
The file name doesn't matter, is completely irrelevant, and ignored. The identity of your app is the package name you declare in the manifest. As I said, you need to give them different package names for them to actually be different apps. On Fri, May 22, 2009 at 1:25 AM, dev_rob

[android-developers] Re: aidl remote service call namespace question

2009-05-18 Thread dev_rob
Hey Dianne, thanks a lot for your answer. The package names are the same, but not the app-names. The .apks are called New_RPC_Client.apk and New_RPC_Server.apk inside both apks the namespace/package name is de.roberlin.new_rpc This is the same in both apps, because the package has to be

[android-developers] Re: aidl remote service call namespace question

2009-05-17 Thread Dianne Hackborn
For the second question, you'll either want to define an abstract action in an intent-filter for the service and use that as the intent you bind to (typically the action is the name of the desired interface for binding to services), or create an explicit ComponentName with the package name + class

[android-developers] Re: aidl remote service call namespace question

2009-05-17 Thread dev_rob
I now have the TestInterface.aidl in both eclipse projects and project 2 (the service project) is added to project 1's build path. I declared the service in the manifest-file with: service android:name=.TestStringService android:exported=true android:process=:remote

[android-developers] Re: aidl remote service call namespace question

2009-05-17 Thread Dianne Hackborn
Er... you are sure that both .apks have different package names? Anyway it sounds like whatever problem you have has nothing to do with services themselves, but just getting both apps installed at the same time? On Sun, May 17, 2009 at 7:35 AM, dev_rob robwiene...@googlemail.com wrote: I now

[android-developers] Re: aidl remote service call namespace question

2009-05-17 Thread dev_rob
I think it's rather a problem with namespaces. And the package names in both projects are indeed identical! But as (one of my original questions) both projects have to contain the TestInterface.aidl the package names must be the same, because otherwise there is a different package name in

[android-developers] Re: aidl remote service call namespace question

2009-05-17 Thread Dianne Hackborn
If you have give the .apks the same name, you can't have them both installed at the same time, because they are both effectively the same app. You can have classes in whatever namespace you want inside of the .apk (and even publish these in the manifest via fully qualified class names). On Sun,