You can't do it at runtime, it needs to be published in your manifest. You can enable/disable the component at runtime if you want.
On Wed, Dec 16, 2009 at 3:13 PM, Keean Schupke <[email protected] > wrote: > How can I register a sync-service programmatically? > > For example: > > <service android:exported="true" > android:name="com.example.test.SyncService"> > <intent-filter> > <action android:name="android.content.SyncAdapter" /> > </intent-filter> > <meta-data android:name="android.content.SyncAdapter" > android:resource="@xml/syncadapter" /> > </service> > > How would I register this service at run-time? > > > Cheers, > Keean. > > -- > 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

