Search in sources :

Example 1 with App

use of me.yluo.ruisiapp.App in project Ruisi by freedom10086.

the class LaunchActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
    setContentView(R.layout.activity_launch);
    App app = (App) getApplication();
    app.regReciever();
    launch_text = findViewById(R.id.app_name);
    logo = findViewById(R.id.logo);
    loadUserImg();
    setCopyRight();
    new Handler().postDelayed(() -> enterHome(), WAIT_TIME);
}
Also used : App(me.yluo.ruisiapp.App) Handler(android.os.Handler)

Example 2 with App

use of me.yluo.ruisiapp.App in project Ruisi by freedom10086.

the class HomeActivity method onDestroy.

@Override
protected void onDestroy() {
    App app = (App) getApplication();
    app.unRegRecieve();
    super.onDestroy();
}
Also used : App(me.yluo.ruisiapp.App)

Aggregations

App (me.yluo.ruisiapp.App)2 Handler (android.os.Handler)1