Re: [android-developers] Re: Sync Adapter and api level 3 & 4?

2010-07-30 Thread Dianne Hackborn
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 wrote:

> Hi Dianne,
>
> Thanks, I should have posted this fragment as well, what about these
> references:
>
>android:name=".authenticator.AuthenticationService"
>android:name="android.accounts.AccountAuthenticator" />
>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:
>
>android:icon="@drawable/icon"
>android:label="@string/label">
>
>android:name=".authenticator.AuthenticationService"
>android:exported="true">
>
>
> android:name="android.accounts.AccountAuthenticator" />
>
>android:name="android.accounts.AccountAuthenticator"
>android:resource="@xml/authenticator" />
>
>android:name=".syncadapter.SyncService"
>android:exported="true">
>
>android:name="android.content.SyncAdapter" />
>
>android:name="android.content.SyncAdapter"
>android:resource="@xml/syncadapter" />
>android:name="android.provider.CONTACTS_STRUCTURE"
>android:resource="@xml/contacts" />
>
>
>
>
> On Jul 30, 11:26 am, Dianne Hackborn  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  >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?:
> >
> > >   > >android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
> > >   > >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
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Sync Adapter and api level 3 & 4?

2010-07-30 Thread Mark Wyszomierski
Hi Dianne,

Thanks, I should have posted this fragment as well, what about these
references:




these are service definitions, will the references to
android.accounts.* also just be ignored?

Thanks again, sample extract below:



from the sample:



















On Jul 30, 11:26 am, Dianne Hackborn  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 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?:
>
> >   >        android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
> >   >        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 android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en