Android Question Error when consulting variable between modules

Good afternoon everyone
I need some help, in my application I have several modules, in the first module the user enters username and password, where I store some information in some global variables where other modules access this information to use.
However, when the application is on standby and the user will use these variables, they are empty.
How to solve.
######################
Main Module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.

Public lat, longi, estab, cor_pre, cor_sub, style, cli_name, user_cache, email_cache As String

Public server_smtp, user_smtp, password_smtp As String 'settings for sending email
Public server_ssl As Boolean 'settings for sending email
End Sub

To access this information in other modules use
main.user_cache

However, when the application is inactive and then becomes active again, I lose the values

Since already thank you all.
 
Top