本文整理匯總了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();
}
}
示例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();
}
}