Is this something that might get fixed? Is there a reason why this is
specifically not allowed?

For example I can get to the meta-data via the PackageManager, and
getting the info associated with the service. This appears to be a
public Bundle, which I can put new values in. I can create a
BroadcastReceiver at runtime with the correct IntentFilter, so why can
I not use these two techinques together to do this?


Regards,
Keean.


On Dec 16, 11:33 pm, Dianne Hackborn <[email protected]> wrote:
> 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

Reply via email to