cancel
Showing results for 
Search instead for 
Did you mean: 

(General app development question) How do i launch an application from a seperate window?

metalex201
Explorer

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.

0 REPLIES 0