Home > Mobile >  Android Application global variable string entityName dynamic access to the login page edittext user
Android Application global variable string entityName dynamic access to the login page edittext user

Time:09-20

When writing a baidu eagle eye track the demo, reference, official demo Application definition entityName="myTrace", to obtain the login activity would transmit the edittext inside the username value to the entityName, sprout new for help

CodePudding user response:

Application to create a singleton, a set method for the public, or even simply, with static variables, directly through the Application. The XXX access

CodePudding user response:

reference 1st floor BDMH response:
create a singleton Application, a set method for the public, or even simply, with static variables, directly through the Application. The XXX access

Bosses, the entityName is in Application, not by value between the activity, I mean a entityName Application is initialized, I will want to log on to the activity of string username to Application entityName refs
  • Related