Back to project page PatternAndroid.
The source code is released under:
MIT License
If you think the Android project PatternAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.twitterclone.model.provider; /* w w w . j av a 2 s .c o m*/ import android.net.Uri; import android.provider.BaseColumns; public final class Contract { public static final String AUTHORITY = "com.example.rest_a"; public static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY); public interface TweetsCoulmns { public static final String USER_NAME = "user_name"; public static final String BODY = "body"; public static final String DATE = "date"; } public static final class Tweets implements BaseColumns, TweetsCoulmns { public static final String CONTENT_PATH = "tweets"; public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, CONTENT_PATH); public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd." + AUTHORITY + "." + CONTENT_PATH; } public static final class TwitterConnection { public static final String CONSUMER_KEY = "V3Y42Swt3rziad7wXDG0Cg"; public static final String CONSUMER_SECRET= "DAbVh5pTdgA1b6etdRU95EgXvnBqkjZP5g32C5n6sQ4"; public static final String REQUEST_URL = "http://api.twitter.com/oauth/request_token"; public static final String ACCESS_URL = "http://api.twitter.com/oauth/access_token"; public static final String AUTHORIZE_URL = "http://api.twitter.com/oauth/authorize"; } }