Skip to main content
Jason C's user avatar
Jason C's user avatar
Jason C's user avatar
Jason C
  • Member for 11 years, 8 months
  • Last seen more than 2 years ago
  • New York, United States
awarded
awarded
awarded
awarded
comment
Fully exiting HoloLens Unity apps, including closing the window
@user2015926 No, I have not found a solution yet. However, it's on our issue list and it's actually coming back up soon so I'll be actively trying to figure it out again this week. I will post back here if I find a solution.
revised
Loading…
revised
Loading…
Loading…
revised
Loading…
Loading…
awarded
revised
Loading…
Loading…
comment
How do I know when the app is launched, loses focus and gets focus again on mobile?
Check out that platform-independence. Gotta wonder why they called it "Unity" sometimes.
awarded
Loading…
comment
Unity app crashes when using unmodified custom Android manifest (didn't find class "UnityPlayerActivity")
Ok, I got it working, I changed android:name in the application element from com.companyname.glass.screen.UnityPlayerActivity to com.unity3d.player.UnityPlayerActivity. But I'm not going to attempt to post a self-answer because I have no idea why I had to do that or if that was the "proper" solution. Will accept any reasonable explanation of this. (I arrived at this conclusion by comparing the manifests from the APKs both with and without my custom manifest; I do not understand why Unity filled in an incorrect application class name with "Export" vs "Build and Run").
comment
Unity app crashes when using unmodified custom Android manifest (didn't find class "UnityPlayerActivity")
Re: Your edit: I deleted my custom manifest, changed it in Player Settings, re-exported the manifest, verified that it contained the new package name, then copied it back to my project and tried again. So yeah I can confirm I used a custom manifest with a matching package name after changing it.
comment
Unity app crashes when using unmodified custom Android manifest (didn't find class "UnityPlayerActivity")
So I just took a look inside the generated APK file, and I see that it does include a class named com.unity3d.player.UnityPlayerActivity. I am not sure why it's looking for UnityPlayerActivity in my app's package instead of com.unity3d.player?