Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Q lacks App Menu #68

Open
jwise-cesmii opened this issue Dec 9, 2019 · 2 comments
Open

Android Q lacks App Menu #68

jwise-cesmii opened this issue Dec 9, 2019 · 2 comments

Comments

@jwise-cesmii
Copy link

@jwise-cesmii jwise-cesmii commented Dec 9, 2019

Basic Information

  • Platform (Mac, iOS, Android, Linux, etc): Android Q (Pixel 3a 10 (QP1A.191105.003)
  • Built from source? (yes/no): yes
    • If yes, source branch/revision ID: Master

Description of issue

App menu cannot be invoked, because no App icon appears.
The app itself runs fine, but the application menu is not visible.

Expected behavior

Expected behavior documented here: https://rkixmiller.dudaone.com/old-hardware-emulated-einstein-emulating-the-apple-newton-part-3

Steps to reproduce issue

  • Build and install the app.
  • Observe that the app launches
  • Observe that no Newton icon appears in the Android system tray
  • Attempt to invoke the App menu by any other method

Screenshot_20191209-103549

@codepoet80

This comment has been minimized.

@codepoet80

This comment has been minimized.

Copy link

@codepoet80 codepoet80 commented Dec 9, 2019

Confirming, that adding a notification channel (per SO article above) fixes the problem -- however, I'm not sure if I've implemented this in a backward compatible fashion. Add the below to the raisePriority method of EinsteinService.java

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { String channelId = "EinsteinEmulator"; NotificationChannel channel = new NotificationChannel(channelId, "Einstein Emulator", NotificationManager.IMPORTANCE_DEFAULT); mNM.createNotificationChannel(channel); mBuilder.setChannelId(channelId); }

Also, replace the last line of the method startForeground(0x4e256cc5, mBuilder.build()); with:
mNM.notify(0x4e256cc5, mBuilder.build());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.