Android Open Source - MyFlickrSearch Config






From Project

Back to project page MyFlickrSearch.

License

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.

Java Source Code

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";

}




Java Source Code List

com.devng.flickrsearch.AbstractBackButtonActivity.java
com.devng.flickrsearch.ImageViewerActivity.java
com.devng.flickrsearch.MainActivity.java
com.devng.flickrsearch.MainModule.java
com.devng.flickrsearch.SearchResultsActivity.java
com.devng.flickrsearch.SearchResultsListAdapter.java
com.devng.flickrsearch.common.Config.java
com.devng.flickrsearch.common.Enums.java
com.devng.flickrsearch.common.Helpers.java
com.devng.flickrsearch.model.FlickrImgContainer.java
com.devng.flickrsearch.model.FlickrImgRef.java
com.devng.flickrsearch.model.FlickrImgRoot.java
com.devng.flickrsearch.task.DownloadFlickrImagesHandler.java
com.devng.flickrsearch.task.DownloadFlickrImagesTask.java
com.devng.flickrsearch.task.SearchFlickrResultHadler.java
com.devng.flickrsearch.task.SearchFlickrTask.java