New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sample app demonstrating offline mode #1960
Conversation
Conflicts: realm/gradle/wrapper/gradle-wrapper.properties realm/realm-library/src/main/java/io/realm/BaseRealm.java realm/realm-library/src/main/java/io/realm/RealmObject.java realm/realm-library/src/main/java/io/realm/RealmResults.java
Conflicts: realm/gradle/wrapper/gradle-wrapper.properties realm/realm-library/src/main/java/io/realm/BaseRealm.java
Conflicts: realm/realm-library/build.gradle
Conflicts: changelog.txt examples/gradle/wrapper/gradle-wrapper.properties realm/realm-library/src/main/java/io/realm/RealmQuery.java
Conflicts: examples/settings.gradle realm/realm-jni/src/io_realm_internal_TableQuery.h realm/realm-library/src/androidTest/java/io/realm/RxJavaTests.java realm/realm-library/src/main/java/io/realm/Realm.java realm/realm-library/src/main/java/io/realm/RealmObject.java realm/realm-library/src/main/java/io/realm/rx/RealmObservableFactory.java realm/realm-library/src/main/java/io/realm/rx/RxObservableFactory.java
Looked like this PR has gotten a bit stale. Everything should be ready for review @realm/java |
|
||
<Spinner | ||
android:id="@+id/spinner" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty line
Imbarrassing. I can reproduce the crash:
|
crash after opening
|
android:layout_height="match_parent" | ||
android:paddingBottom="0dp" | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to remove these paddings.
@zaki50 said that it encountered the following error.
Does |
} | ||
|
||
/** | ||
* Initialize Timer logging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Timer -> Timber
@dalinaum |
Ups, found the crash. It was a Scheduler issue, not sure how I missed that 😕 Also moved away from deprecated transaction API's @realm/java |
👍 |
Add sample app demonstrating offline mode
@cmelchior Thank you for the sample app, but the API doesn't work!
|
@Drjacky It should be your network issue. It is working here (just tested with the apk)
|
@beeender Yea, you're right. But it's weird that it doesn't work either via VPN!
Thanks anyway to informed me. |
Sample app demonstrating usage of Realm in a app that should work offline.
It uses the New York Times API to show a list of news items. Each item will be marked read after being visible for 2 seconds.
Simpel MVP architecture
Separation between Model/Repository
Uses RxJava/Retrofit/Jackson