Forum Discussion
metalex201
2 years agoProtege
(General app development question) How do i launch an application from a seperate window?
I'm making a third party app that would require the user to change some settings options for this i would need to launch the internal settings app of android i can easily do that with an intent.
val launchIntent = packageManager.getLaunchIntentForPackage("com.android.settings)
)
if (launchIntent != null) {
// Add flags to the intent to indicate it should be opened in multi-window mode
launchIntent.addFlags(Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT or Intent.FLAG_ACTIVITY_NEW_TASK)
startActivity(launchIntent)
} else {
// App not found, handle error or log message
}
but my issue is that i cannot launch the settings app next to my app, it just runs in my apps window and any flag for the intent I tried hasnt worked. The reason i need it to launch seperately is so that my app could show instructions on how to change the desired settings in the settings app.
No RepliesBe the first to reply
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 6 months ago
- 2 years agoAnonymous