Person A works with data at the same time as Person B (who is also working with the same data). They both commit at the same time and would have manipulated different elements of the data, so overwriting isn’t the case here.
So I’m fairly new to Android programming, and I have an SQL database class set up, and I can add items to it just fine from within its own class. The problem is that I can’t implement a method in my main class to add items to the database, it just crashes the application. How do I access the database from a separate class?
I have tried creating another instance, however since the database class is also an Activity, it crashes the program
I’m not trying to set up a complex database, just trying to set up a household coupon management database. I can’t figure out how to run a query so that it will only show records that are not expired (I have their expiration dates as a field in the original table). Any ideas?