I'm using a room database for saving some apps details in a table. And getting live data.
But I'm unable to use conditions.
@Query("SELECT * FROM apps WHERE parent LIKE: parent")
LiveData<List<App>> getAllApp(String parent);
Here is the condition I'm trying to use in DAO. But I can't figure, where should I pass the parameter in REPOSITORY and VIEWNODEL class;
Please help me. May be my question is not that clear but please help me.