Back to project page MyFlickrSearch.
The source code is released under:
MIT License
If you think the Android project MyFlickrSearch 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.devng.flickrsearch.common; /* w w w .j a v a2 s.co m*/ import android.os.Build; /** * Static configuration constants for the app. */ public class Config { /** * No instances of this class */ private Config() { } /** * HTTP user agent string of the app. */ public static final String HTTP_USER_AGENT = "MyFlickrSearch/1.0 Android " + Build.VERSION.RELEASE; /** * The Api key goes in here, if you do not have a key you can get a temp key from flicker API * explorer: * <p/> * http://www.flickr.com/services/api/explore/flickr.photos.search */ public static final String API_KEY = "<your API key>"; /** The maximum number of images per result pege. */ public static final int PER_PAGE = 20; /** * Search url with tow place holders one for the sorting order and one for the search term. * <p/> * For more details see: * http://www.flickr.com/services/api/flickr.photos.search.html */ public static final String API_URL = "http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=" + API_KEY + "&format=json&nojsoncallback=1&sort=%s&per_page=" + PER_PAGE + "&text=%s"; /** * Constant used to pass extra parameters from the MainActivity to the next one. */ public static final String EXTRA_KEY_SEARCH_TERM = "extraKey.searchTerm"; /** * Constant used to pass extra parameters from the MainActivity to the next one. */ public static final String EXTRA_KEY_SORT_ORDER = "extraKey.sortOrder"; /** * Constant used to pass extra parameters from the MainActivity to the next one. */ public static final String EXTRA_KEY_FLICKR_REF = "extraKey.flickrRef"; }