私のアプリケーションでは、アダプターで ImageLoader を使用して lsit ビュー項目で画像をロードするリスト ビューがあります。
アクティビティの oncreate で、次のようなリスト ビュー アイテムの URL を取得します。
private void fetchImages() {
// TODO Auto-generated method stub
//fetching the list
mCustomProgressDialog = CustomProgressDialog.createDialog(Group_SharePictureMainActivity.this, "", "");
mCustomProgressDialog.show();
new Thread(){
@Override
public void run() {
APIVariables apiVariables = new APIVariables();
String getGroupImagesURL = apiVariables.getGroupImages(GroupsActivity.Group_ID);
groupImages = ParseValues.getGroupImages(getGroupImagesURL);
handlerFetchGroupImages.sendEmptyMessage(0);
}
}.start();
}
ここに私の問題があります-インターネット接続が利用できない場合、既に生成されたリストビュー(インターネットが利用可能な場合)が表示される状況を実装したいです。
ネットワーク接続が利用できない場合、リスト ビューの以前の状態を維持することは可能ですか??
ありがとう