當前位置: 首頁>>代碼示例>>Java>>正文


Java CachedWebRequestFetcher類代碼示例

本文整理匯總了Java中com.google.android.apps.picview.request.CachedWebRequestFetcher的典型用法代碼示例。如果您正苦於以下問題:Java CachedWebRequestFetcher類的具體用法?Java CachedWebRequestFetcher怎麽用?Java CachedWebRequestFetcher使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


CachedWebRequestFetcher類屬於com.google.android.apps.picview.request包,在下文中一共展示了CachedWebRequestFetcher類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onCreate

import com.google.android.apps.picview.request.CachedWebRequestFetcher; //導入依賴的package包/類
@Override
public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
      WindowManager.LayoutParams.FLAG_FULLSCREEN);

  setContentView(R.layout.album_list);
  mainList = (ListView) findViewById(R.id.albumlist);
  inflater = LayoutInflater.from(this);

  cachedImageFetcher = new CachedImageFetcher(new FileSystemImageCache());
  cachedWebRequestFetcher = new CachedWebRequestFetcher(
      new FileSystemWebResponseCache());

  initCurrentConfiguration();

  // TODO: This is picasa specific.
  final String accountId = getIntent().getExtras().getString("accountId");
  if (accountId != null) {
    doAlbumsRequest(accountId);
  } else {
    showAlbums();
  }
}
 
開發者ID:sdrausty,項目名稱:buildAPKsSamples,代碼行數:25,代碼來源:AlbumListActivity.java

示例2: onCreate

import com.google.android.apps.picview.request.CachedWebRequestFetcher; //導入依賴的package包/類
@Override
public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
      WindowManager.LayoutParams.FLAG_FULLSCREEN);

  setContentView(R.layout.album_list);
  mainList = (ListView) findViewById(R.id.albumlist);
  inflater = LayoutInflater.from(this);

  cachedImageFetcher = new CachedImageFetcher(new FileSystemImageCache());
  cachedWebRequestFetcher = new CachedWebRequestFetcher(
      new FileSystemWebResponseCache());

  initCurrentConfiguration();

  // TODO: This is picasa specific.
  final String accountId = getIntent().getExtras().getString("accountId");
  final String authKey = getIntent().getExtras().getString("authKey");
  if (accountId != null) {
    doAlbumsRequest(accountId, authKey);
  } else {
    showAlbums();
  }
}
 
開發者ID:YakindanEgitim,項目名稱:Picasa-Tagger,代碼行數:26,代碼來源:AlbumListActivity.java


注:本文中的com.google.android.apps.picview.request.CachedWebRequestFetcher類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。