I have a database with one row of data that will be used across a number of activities. I need to be able to keep the row id available in all activites so I can read and wri
Here you want to get mRowId
values from all activity and it is primitive types, So
Either use Shared Preferences for store data or make your member field as a static globally
, Then you can use this data in your whole application life cycle..
EDIT: Also you can use Application class as a singleton for your application and create field mRowId in this class and also make getter setter method for this field..