Android Application Level Scope Variables

Viewed 8407

I understand that there is no Application Level Scope available to be able to define shared logic/data, and that each activity is essentially a stand alone application tied together by the manifest...

BUT I have a group of user access permissions that I am getting via a web service call and do not want to make this call in every activities onCreate().

I am using SharedPreferences in the application, but since the permissions are not intended to be editable by the user, the flat file exposure on android devices feels like an insecure way to handle this.

I do need to re-request this info if the application is restarted, so I believe the least expensive would be to store it in a variable.

I am aware of IntentExtras but we are talking about a Settings "Object", not a primitive type.

right way to handle this situation?

2 Answers
Related