SubscribedFeedspublic class SubscribedFeeds extends Object The SubscribedFeeds provider stores all information about subscribed feeds. |
Constructors Summary |
---|
private SubscribedFeeds()
|
Methods Summary |
---|
public static android.net.Uri | addFeed(android.content.ContentResolver resolver, java.lang.String feed, java.lang.String account, java.lang.String authority, java.lang.String service)A convenience method to add a feed to the SubscribedFeeds
content provider. The user specifies the values of the FEED,
_SYNC_ACCOUNT, AUTHORITY. SERVICE, and ROUTING_INFO.
ContentValues values = new ContentValues();
values.put(SubscribedFeeds.Feeds.FEED, feed);
values.put(SubscribedFeeds.Feeds._SYNC_ACCOUNT, account);
values.put(SubscribedFeeds.Feeds.AUTHORITY, authority);
values.put(SubscribedFeeds.Feeds.SERVICE, service);
return resolver.insert(SubscribedFeeds.Feeds.CONTENT_URI, values);
| public static int | deleteFeed(android.content.ContentResolver resolver, java.lang.String feed, java.lang.String account, java.lang.String authority)
StringBuilder where = new StringBuilder();
where.append(SubscribedFeeds.Feeds._SYNC_ACCOUNT + "=?");
where.append(" AND " + SubscribedFeeds.Feeds.FEED + "=?");
where.append(" AND " + SubscribedFeeds.Feeds.AUTHORITY + "=?");
return resolver.delete(SubscribedFeeds.Feeds.CONTENT_URI,
where.toString(), new String[] {account, feed, authority});
| public static int | deleteFeeds(android.content.ContentResolver resolver, java.lang.String account, java.lang.String authority)
StringBuilder where = new StringBuilder();
where.append(SubscribedFeeds.Feeds._SYNC_ACCOUNT + "=?");
where.append(" AND " + SubscribedFeeds.Feeds.AUTHORITY + "=?");
return resolver.delete(SubscribedFeeds.Feeds.CONTENT_URI,
where.toString(), new String[] {account, authority});
| public static java.lang.String | gtalkServiceRoutingInfoFromAccountAndResource(java.lang.String account, java.lang.String res)
return Uri.parse("gtalk://" + account + "/" + res).toString();
|
|