本文整理了Java中android.support.v4.content.AsyncTaskLoader.onStartLoading()
方法的一些代码示例,展示了AsyncTaskLoader.onStartLoading()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AsyncTaskLoader.onStartLoading()
方法的具体详情如下:
包路径:android.support.v4.content.AsyncTaskLoader
类名称:AsyncTaskLoader
方法名:onStartLoading
暂无
代码示例来源:origin: commonsguy/cw-omnibus
@Override
protected void onStartLoading() {
super.onStartLoading();
if (lastResult!=null) {
deliverResult(lastResult);
}
else {
forceLoad();
}
}
代码示例来源:origin: Cleveroad/AdaptiveTableLayout
@Override
protected void onStartLoading() {
super.onStartLoading();
if (takeContentChanged()) {
forceLoad();
}
}
代码示例来源:origin: ArturVasilov/AndroidSchool
@Override
protected void onStartLoading() {
super.onStartLoading();
forceLoad();
}
代码示例来源:origin: google-developer-training/android-fundamentals-apps-v2
@Override
protected void onStartLoading() {
super.onStartLoading();
forceLoad();
}
代码示例来源:origin: andforce/iBeebo
@Override
protected void onStartLoading() {
super.onStartLoading();
forceLoad();
}
代码示例来源:origin: googlecodelabs/cast-videos-android
@Override
protected void onStartLoading() {
super.onStartLoading();
forceLoad();
}
代码示例来源:origin: andforce/iBeebo
@Override
protected void onStartLoading() {
super.onStartLoading();
if (result == null) {
forceLoad();
} else {
deliverResult(result);
}
}
代码示例来源:origin: livroandroid/5ed
@Override
protected void onStartLoading() {
super.onStartLoading();
// Chamado para iniciar o loader ou reconectar em um já existente
// Precisa chamar o forceLoad() para executar o loader "loadInBackground"
if(bitmap == null) {
Log.d("livroandroid", "loader onStartLoading() >> forceLoad()");
// Executa o loader
forceLoad();
} else {
Log.d("livroandroid", "loader onStartLoading() >> deliverResult()");
// Já possui os dados, apenas atualiza a interface
// Isso vai chamar o método onLoadFinished() na interface de callback
deliverResult(bitmap);
}
}
代码示例来源:origin: andforce/iBeebo
@Override
protected void onStartLoading() {
super.onStartLoading();
if (result == null) {
forceLoad();
} else {
deliverResult(result);
}
}
代码示例来源:origin: andforce/iBeebo
@Override
protected void onStartLoading() {
super.onStartLoading();
if (result == null) {
forceLoad();
} else {
deliverResult(result);
}
}
代码示例来源:origin: andforce/iBeebo
@Override
protected void onStartLoading() {
super.onStartLoading();
if (result == null) {
forceLoad();
} else {
deliverResult(result);
}
}
代码示例来源:origin: andforce/iBeebo
@Override
protected void onStartLoading() {
super.onStartLoading();
if (result == null) {
forceLoad();
} else {
deliverResult(result);
}
}
代码示例来源:origin: spacecowboy/NoNonsense-FilePicker
/**
* Handles a request to start the Loader.
*/
@Override
protected void onStartLoading() {
super.onStartLoading();
// handle if directory does not exist. Fall back to root.
if (mCurrentPath == null || !mCurrentPath.isDirectory()) {
mCurrentPath = getRoot();
}
// Start watching for changes
fileObserver = new FileObserver(mCurrentPath.getPath(),
FileObserver.CREATE |
FileObserver.DELETE
| FileObserver.MOVED_FROM | FileObserver.MOVED_TO
) {
@Override
public void onEvent(int event, String path) {
// Reload
onContentChanged();
}
};
fileObserver.startWatching();
forceLoad();
}
代码示例来源:origin: Coinomi/coinomi-android
@Override
protected void onStartLoading() {
super.onStartLoading();
account.addEventListener(transactionAddRemoveListener, Threading.SAME_THREAD);
transactionAddRemoveListener.onWalletChanged(null); // trigger at least one reload
forceLoad();
}
代码示例来源:origin: openwalletGH/openwallet-android
@Override
protected void onStartLoading() {
super.onStartLoading();
account.addEventListener(transactionAddRemoveListener, Threading.SAME_THREAD);
transactionAddRemoveListener.onWalletChanged(null); // trigger at least one reload
forceLoad();
}
代码示例来源:origin: n76/wifi_backend
@Override
protected void onStartLoading() {
super.onStartLoading();
if(changeReceiver == null) {
changeReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
onContentChanged();
}
};
LocalBroadcastManager.getInstance(getContext()).registerReceiver(changeReceiver, new IntentFilter(SamplerDatabase.ACTION_DATA_CHANGED));
}
forceLoad();
}
代码示例来源:origin: n76/wifi_backend
@Override
protected void onStartLoading() {
super.onStartLoading();
if(changeReceiver == null) {
changeReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
onContentChanged();
}
};
LocalBroadcastManager.getInstance(getContext()).registerReceiver(changeReceiver, new IntentFilter(SamplerDatabase.ACTION_DATA_CHANGED));
}
if (cursor != null) {
// deliver old data (if available)
deliverResult(cursor);
}
forceLoad();
}
内容来源于网络,如有侵权,请联系作者删除!