Closed cmannett85-arm closed 1 year ago
Hmm, it's already set...
// app/android/java/com/khronos/vulkan_samples/NativeSampleActivity.java
PendingIntent pi = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE);
Could this be related to this: https://developer.android.com/guide/topics/manifest/activity-element#exported?
Possibly, I noticed that it works fine if launched directly from Android Studio (via the 'play' button), but not if launched via the phone's UI. I'm not sure what the difference between them is.
Setting exported
to false
and removing the intent filters results in some tests passing and others failing for the same reason. Which I don't understand.
So I had managed to confuse myself somewhat, I was actually running Vulkan-Samples compiled with SDK 33 and NDK 25c on Android 14. Re-compiling with SDK 34 and NDK 26b results in a working app, but only after I had to upgrade the AGP amongst a bunch of other stuff in Android Studio in order to build with the newer SDK/NDK, which to be honest is what probably made it work.
So I'm closing this.
Running on SDK v26 caused no problems, but I had to upgrade to v34 for some Android 14 testing, and now all tests fail with this in logcat:
It's probably a trivial change somewhere so I'll start looking at it. I'm reporting here in case anyone else comes across it, or maybe as a prompt if someone else (I'm looking at you Google) has fixed it but not upstreamed yet.