If nothing tries to run them, they will never be instantiated and should be fine.
On Fri, Jul 30, 2010 at 11:32 AM, Mark Wyszomierski <[email protected]>wrote: > Hi Dianne, > > Thanks, I should have posted this fragment as well, what about these > references: > > <service > android:name=".authenticator.AuthenticationService" > <action > android:name="android.accounts.AccountAuthenticator" /> > <action > android:name="android.content.SyncAdapter" /> > > these are service definitions, will the references to > android.accounts.* also just be ignored? > > Thanks again, sample extract below: > > > > from the sample: > > <application > android:icon="@drawable/icon" > android:label="@string/label"> > <!-- The authenticator service --> > <service > android:name=".authenticator.AuthenticationService" > android:exported="true"> > <intent-filter> > <action > > android:name="android.accounts.AccountAuthenticator" /> > </intent-filter> > <meta-data > android:name="android.accounts.AccountAuthenticator" > android:resource="@xml/authenticator" /> > </service> > <service > android:name=".syncadapter.SyncService" > android:exported="true"> > <intent-filter> > <action > android:name="android.content.SyncAdapter" /> > </intent-filter> > <meta-data > android:name="android.content.SyncAdapter" > android:resource="@xml/syncadapter" /> > <meta-data > android:name="android.provider.CONTACTS_STRUCTURE" > android:resource="@xml/contacts" /> > </service> > > > > On Jul 30, 11:26 am, Dianne Hackborn <[email protected]> wrote: > > Yes permissions on older platforms will be ignored. Since older > platforms > > don't know about sync adapters, they just won't do anything with them. > > > > Do be sure of course to test your code on an older platform to be sure > all > > is well, though. > > > > On Fri, Jul 30, 2010 at 11:17 AM, Mark Wyszomierski <[email protected] > >wrote: > > > > > > > > > > > > > Hi, > > > > > I'm looking at the sample sync adapter here: > > > > >http://developer.android.com/resources/samples/SampleSyncAdapter/inde. > .. > > > > > I'd like to still support sdk level 3 and 4 devices. Will including > > > the following lines in my app's manifest be problematic?: > > > > > <uses-permission > > > android:name="android.permission.AUTHENTICATE_ACCOUNTS" /> > > > <uses-permission > > > android:name="android.permission.READ_SYNC_STATS" /> > > > > > are these specific to sdk level 5? > > > > > Ideally, we could include these for level 3 and 4 users, and they just > > > won't be shown the contact sync option at all. Is this how it's meant > > > to work? > > > > > Thanks > > > > > -- > > > 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%[email protected]><android-developers%2Bunsubs > [email protected]> > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > > -- > > Dianne Hackborn > > Android framework engineer > > [email protected] > > > > 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 [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] 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 [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

