Skip to content

Tag: android

How to add new key to map in Firestore

I want to add new key to a map. memberFees is a field of a document under collection named Faculty I want to store only the key of each member fee inside the memberFees map. Here is an example of my memberFees map: I only added that keys in the example manually. This is what I did: This code throws

Room Database Empty when Restarted App ( Same DB Name)

I am newbie to the Android X Room Database. Earlier I used Sqlitehelper class to access the sqlite databases and then migrated to room. The question is , when I insert data into Room database table it stores for that moment and when I restart the app the data is gone. I want to have multiple tables in a singl…

startActivity() in BroadcastReceiver

I am trying to create an application that calls the sender of an SMS as soon as the smartphone receives an SMS. This is my code: But it dials and calls the sender only when the application is in foreground, while I’d like it to work always. Using the debugger, the execution flows, but it is unable to st…