Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
jboss's avatar
jboss
Protege
10 years ago

Android Manifest set activity

I am trying to get my Gear VR app ready for the Ocuus store by updating the AndroidManifest file according to the documentation here https://developer.oculus.com/documentation/publish/latest/concepts/publish-mobile-manifest/ but I can't get it to work.

After some troubleshooting I found that I can do all the changes described there, except for changing the activity name. As soon as I change the activity name the app no longer works. I get a message that the app has unexpectedly closed.

The activity name now is 'com.google.unity.GoogleUnityActivity', probably because in my project I use both Gear VR and Google Cardboard. With that activity name the app works fine. According to the documentation I should change it to 'YOUR ACTIVITY', but I can't find any information on how to find the activity in my Unity project. I tried a common option '<my_package_name>.MainActivity', but that didn't work.

So how can I find my activity? Or do I need to specifiy it somewhere (couldn't find it in the player settng either)?

Thanks.