Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

Given a Room database DAO like this: import android.arch.persistence.room.Dao; import android.arch.persistence.room.Query;import java.util.Date; import java.util.List;@Dao public interface MyDao {@Query("SELECT * FROM MyTable") List<MyItem> all();@Query("SELECT * FROM MyTable WHERE date = :date AND language = ...

  • 0

I’m using Android’s Room Persistence Library from the Android Architecture Components recently announced at Google I/O. Things seem to be working, but I’m getting the following error: Warning:tagId column references a foreign key but it is not part of an index. ...

  • 0

[email protected]:~/Desktop/sxtbdemo2$ react-native run-android Scanning folders for symlinks in /Users/apple/Desktop/sxtbdemo2/node_modules (8ms) JS server already running. Building and installing the app on the device (cd android && ./gradlew installDebug)...FAILURE: Build failed with an exception.What went wrong: A problem occurred configuring root project 'sxtbdemo2'. Could not resolve all ...

  • 0

I’m trying to create a relation between two database tables using the new Android Persistence Room Library. I looked at the documentation and tried to implement the example found at https://developer.android.com/reference/android/arch/persistence/room/Relation.html: @Entity public class User { @PrimaryKey ...

  • 0

In Android room persistent library how to insert entire Model object into table which has in itself another list. Let me show you what i mean : @Entity(tableName = TABLE_NAME) public class CountryModel {public static final String TABLE_NAME = "Countries";...

  • 0

When using Room from the Android Architecture Components, I received the following error when attempting to access the database using a Dagger component: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: (database path) I was using Dagger version 2.11 and Room version 1.0.0-alpha7. The error ...

close