-
I have one model in my database called Country.
To have all information, I need to call 4 APIs (to get general info, to get currency exchange, to get a flag and to get a photo URL).
I'm thinking wha…
-
`FATAL EXCEPTION: AsyncTask #1
Process: iammert.com.androidarchitecture, PID: 7318
java.lang.Runtime…
-
It seems NetworkBoundResource works on the bases that, the data is stored in the DB. I have data I want to fetch from an API, however this data won't be stored in the DB as it does not need to live lo…
-
I have a problem with implementing a retry/refresh button, following GithubBrowserSample. The problem is that I can't get data when try to reload data (when there was no internet connection and user t…
-
Why is loadFromDb() called another time after network data is fetched successfully? Why can't we use dbSource live data object again?
The way I understand live data object of a database is that if…
-
`threadManager.runOnWorkThread(() -> {
// 保存网络请求结果至数据库
try {
saveCallResult(processResponse(response));
…
-
There is always the case: the user could not torrent the slow data loading process, and want to cancel it.
But in the sample project, I cannot find there is any method to meet that demand.
So, i…
-
What is the best approach?
```
// Only expose livedata
public class MyViewModel extends ViewModel {
private MutableLiveData users = new MutableLiveData();
public void loadUsers() {
…
-
Today, I watched the [Network-Resilient Applications with Store5 | Talking Kotlin [#128]](https://www.youtube.com/watch?v=a32Otwx7c0w) video, recently published. And the immediate question that I got …
-
Hi,
I have few issues:
1. what is the difference between realm.refresh() and realm.setAutoRefresh() ?
2. if autoRefresh set to true, will realm.refresh() called every time i get realm instanc…