skip to Main Content

Android Studio – LiveData with sqlite not updating UI

Here is the code for fetching data from sqlite database as livedata private LiveData<ArrayList<Message>> loadAllMessagesOfThisChat() { final MutableLiveData<ArrayList<Message>> messages= new MutableLiveData<>(); ArrayList<Message> messagesArrayList = new ArrayList<>(); SQLiteDatabase mDb = messagesDbHelper.getReadableDatabase(); String[] projection = { MessageDetails.COLUMN_SENDER_UID, MessageDetails.COLUMN_MESSAGE, MessageDetails.TIMESTAMP_ID, MessageDetails.COLUMN_IMAGE_URI}; Cursor cursor…

VIEW QUESTION

Android Studio – how to fix setOpenableLayout in layout Navigation Drawer Activity

i have a problem why is setOpenableLayout not working? mAppBarConfiguration = new AppBarConfiguration.Builder( R.id.nav_home, R.id.nav_gallery, R.id.nav_slideshow) .setOpenableLayout(drawer) .build(); show error : error: cannot find symbol .setOpenableLayout(drawer) ^ symbol: method setOpenableLayout(DrawerLayout) location: class Builder maybe someone here can help me

VIEW QUESTION
Back To Top
Search