Skip to content

Demo: expand catalog to 10 library demos#49

Merged
colemancda merged 1 commit into
masterfrom
feature/expand-catalog-demos
Jul 25, 2026
Merged

Demo: expand catalog to 10 library demos#49
colemancda merged 1 commit into
masterfrom
feature/expand-catalog-demos

Conversation

@colemancda

Copy link
Copy Markdown
Member

Summary

Adds four new entries to the Demo app's library catalog and extends an existing one, all driven through the jextract JNI bridge introduced in #48:

Entry Demo
AndroidApp (new) ActivityManager: memory class, low-RAM flag, MemoryInfo available/total/low-memory
AndroidGraphics (new) Bitmap.createBitmap (64×64 ARGB_8888) with byte count, Color.rgb
AndroidUtil (new) DisplayMetrics: resolution, density and dpi
AndroidView (new) ViewConfiguration: scaled touch slop, long-press and double-tap timeouts
AndroidOS (extended) Adds battery level and charging state (BatteryManager) and screen-interactive state (PowerManager)

Note: this reintroduces the change from 915a337, which briefly landed on master directly and was reverted in e32b50a so it could go through review here.

Test plan

  • ./gradlew :app:assembleDebug builds end-to-end
  • All 10 catalog demos verified on an arm64-v8a emulator (API 36) — real values shown for memory, bitmap, display metrics, gesture constants, and battery; no crashes

- AndroidApp: ActivityManager memory class, low-RAM flag, MemoryInfo
- AndroidGraphics: Bitmap creation (ARGB_8888) and Color.rgb
- AndroidUtil: DisplayMetrics resolution and density
- AndroidView: ViewConfiguration touch slop and gesture timeouts
- AndroidOS: add battery level/charging (BatteryManager) and screen
  interactive state (PowerManager)

All verified on the emulator.
@colemancda
colemancda merged commit 4c941bc into master Jul 25, 2026
16 checks passed
@colemancda
colemancda deleted the feature/expand-catalog-demos branch July 25, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant