Issue
I am doing a map activity, on marker click, I would display the information on a textview. The information is saved in android room database because I need the data to persist.
I want to query only a row with the name of the column, marker tag
I have searched many ways to query a row, but none of them is specific to my questions.
Solution
Yes, reading and writing to Room database must be asynchronous. So you must run your queries in:
AsyncTask.execute(new Runnable()
{
@Override
public void run()
{
// run your queries here!
}
});
Good luck.
Answered By - Arantik
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.