BH Apps
BH Apps
try this; https://github.com/ImangazalievM/ReActiveAndroid/issues/44#issuecomment-451101057
Tested with the below; ``` compileSdkVersion 28 defaultConfig { applicationId "com.myapp.myapplication" minSdkVersion 21 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } ``` `classpath 'com.android.tools.build:gradle:3.4.1'` get the below error ......
I think the issue is related to the android.support Library: ``` import android.support.annotation.NonNull; import android.support.annotation.Nullable; ``` As this Library has not been Migrated to AndroidX which uses: `implementation 'androidx.annotation:annotation:1.1.0'` as...
@ImangazalievM I have pushed commit to Forked version to be compatible with AndroidX and tested. Please see [https://github.com/bendothall/ReActiveAndroid/commit/dba30228991c5de7d173b2563b31a463b44edce6](https://github.com/bendothall/ReActiveAndroid/commit/dba30228991c5de7d173b2563b31a463b44edce6)
Post your error report I think your syntax is incorrect, also refer to responses/issues; [https://github.com/ImangazalievM/ReActiveAndroid/issues/43](https://github.com/ImangazalievM/ReActiveAndroid/issues/43) [https://github.com/ImangazalievM/ReActiveAndroid/issues/39#issuecomment-450048675](https://github.com/ImangazalievM/ReActiveAndroid/issues/39#issuecomment-450048675) Refer to below; `LIKE '?%'` `Note note = Select.from(Note.class).where("id=? AND title LIKE '?%'", 1,...
Try something like below: not tested, but should work somewhat.. ``` List result = new ArrayList(); result = Select.from("mytable") .where("mydatecolumn BETWEEN ? AND ?", monthStart, monthEnd) .fetch(); ```
I don't get an error, but don't get any hits either ... `String myCommaStringOfIds = "86973,86974,86975,86976,86977,86978,86979,86980";` `List tableClassList = Select.from(table).where("id IN (?)", myCommaStingOfIds ).orderBy("id " + defaultSortBy).limit(limit).fetch()`
Create a helper file with this method and use in activities or fragments when requesting load more (scrolled to bottom) and pass data to your adapter; - I haven't figured...
@ImangazalievM if I was to develop this API, were would you prefer the code to be located on pull requests i.e: ReActiveAndroid/reactiveandroid/src/main/java/com/reactiveandroid/query/ i.e: ReActiveAndroid/reactiveandroid/src/main/java/com/reactiveandroid/api/
Ok funny thing as per below, two args passed through and got results from `fetch()` ... ``` List MyTableClassList = Select.from(MyTableClass.class).where( "id BETWEEN ? AND ?", firstId, lastId) .orderBy("id "...