Skip to content

Android: MainActivity launcher, game thread and AndroidPlayer lifecycle #255

Open

Description

@brmassa

Current State

The desktop launcher is Main(string[]) + Host.CreateDefaultBuilder, blocking in window.Run() on the main thread; Escape quits; Application.Quit cancels a token. Android owns the UI thread and destroys the surface on pause.

Tasks

  • MainActivity template in the brick's launcher directory, hosting a SurfaceView
  • Dedicated game thread running the player loop; AndroidPlayer is instantiated by the launcher, not through GamePlayers.Find
  • Pause/resume map to ticking pause and surface lost/restored
  • Back button: configurable quit or input event; Application.Quit calls finish()
  • Immersive fullscreen; OapRuntimeKey.Set for encrypted packages

Acceptance Criteria

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    c:engineEngine core: scene graph, components, serialization, systemsc:platformPlatform-specific: Linux, Windows, macOSp:highHigh priority — fix in current sprintsize:L~1-2 weeks — significant featuret:featureNew feature implementation

    Type

    No type

    Projects

    • Status
      Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions