Issue
Room Entity's data is stored but it's object is always null.
@Override public void onResults(Bundle bundle) {
ArrayList<String> list = bundle.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);
String string = list.get(0);
new Thread(new Runnable() {
@Override
public void run() {
EntityClass entityClass = roomdb.roomdao().loadatbyname(list.get(0));
runOnUiThread(new Runnable() {
@Override
public void run() {
textview.settext(entityClass.getName());
}
});
}
}).start();
Solution
Room Entity's data is stored but it's object is always null.
Answered By - Seikh Imran
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.