In Eclipse, you can right-click open type hierarchy in the menu to obtain the class inheritance relationship.
In the open call hierarchy project, you can find out who called the current function in the project. This helps you understand the "availability" of the current function, especially when reading other people's code.
Java code
Intent I = new Intent (this, Activity1.class );
I. addFlags (Intent. FLAG_ACTIVITY_REORDER_TO_FRONT );
StartActivity (I );
[Java] Intent I = new Intent (this, Activity1.class );
I. addFlags (Intent. FLAG_ACTIVITY_REORDER_TO_FRONT );
StartActivity (I );
Intent I = new Intent (this, Activity1.class );
I. addFlags (Intent. FLAG_ACTIVITY_REORDER_TO_FRONT );
StartActivity (I );
This method is used to call an Activity. If the Activity is in the stack, it runs its onStart and onResume functions instead of onCreate functions. In this way, the final running status of the Activity can be saved.
Android custom global variables:
Class MyApp extends Application {
Private String myState;
Public String getState (){
Return myState;
}
Public void setState (String s ){
MyState = s;
}
}
Class Blah extends Activity {
@ Override
Public void onCreate (Bundle B ){
...
MyApp appState = (MyApp) getApplicationContext ());
String state = appState. getState ();
...
}
}
From the column of android interests