You know, I just ran into this as well, I'm using IntelliJ IDEA and API
v17. I guess there might be a discrepancy in the documentation. There is
even another way to define the Sync Adapter settings, which is done in the
AndroidManifest.xml file. You take an Activity that defines the preferences
you want to allow the user to set (so, almost certainly your Settings
Activity) and you declare it to have this Intent Filter:
<intent-filter>
<action
> android:name="android.intent.action.MANAGE_NETWORK_USAGE"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
This tells the framework that this Activity allows the user to set network
usage, not to say that the user can't set other settings there as well. I
think you can see this when you go to the data usage page and select an
app, like Google+ or Gmail (as good examples). The "View app settings"
button launches the Activity that defines this Intent Filter.
On Tuesday, August 28, 2012 2:48:44 AM UTC-7, Danglebot wrote:
>
> I'm hitting an issue with 'android:syncAdapterSettingsAction' (from
> http://developer.android.com/reference/android/content/AbstractThreadedSyncAdapter.html)
>
> where Eclipse refuses to launch the app due to the following error:
>
> error: No resource identifier found for attribute
> 'syncAdapterSettingsAction' in package
> 'android' syncadapter.xml /xxx-android/res/xml line
> 2 Android AAPT Problem
>
> The project is set to API v14.
>
> Documentation on this element is sketchy at best. Anyone used this action
> element to launch a activity?
>
> 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en