Hi, i have some problem to communicate with a service from an Android application.
The service is in a first package "package com.myService" and the application in another on "package com.myApplication". My service work and start well but my next step is to add an AIDL interface to external applications. I have tried to follow the recomandation described here : http://developer.android.com/guide/developing/tools/aidl.html, but i have still the following error (given in the log service): W/ActivityManager( 568): Unable to start service Intent { action=com.MyApplication.IBootstrapService }: not found My AIDL defined in both packages is : interface IMyservice { String GetVal1(); String GetVal2(); // Get the status of the public API int getStatus(); } About the AndroidManifest.xml files : >From the service : <?xml version="1.0" encoding="utf-8"?> package="com.Myservice" android:versionCode="1" android:versionName="1.0"> <application android:label="@string/app_name"> <service android:name=".Myservice" /> <receiver android:name=".OnBootReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> </intent-filter> </receiver> <receiver android:name=".OnWiFiEnableReceiver"> <intent-filter> <action android:name="android.net.wifi.WIFI_STATE_CHANGED" /> </intent-filter> </receiver> </application> <uses-sdk android:minSdkVersion="3"></uses-sdk> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> </manifest> >From the application : <?xml version="1.0" encoding="utf-8"?> package="com.MyApplication" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/orange" android:label="@string/app_name"> <activity android:name=".MyApplication" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> <uses-sdk android:minSdkVersion="3" /> </manifest> Why in each example, there is an application AND a service in the same package ? Is is mandatory to do this ? Regards Thierry GAYET NextInnovation.org +33(0)663.849.589 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

