I iCAB Well-Known Member Licensed User Longtime User Sep 14, 2017 #1 Hi All Is there a way to force start navigation from my app in multi-window. Here is the code I am using now: Code: Copy geoURI="google.navigation:q=" & strAddress mapIntent.Initialize(mapIntent.ACTION_VIEW,geoURI) mapIntent.SetComponent("googlemaps") StartActivity(mapIntent) If I start navigation this way, it usually starts in full screen mode (even if I set my app for multi-window by clicking the multi-window icon) If I show all apps and then click the multi-window icon, the app resizes properly but only one app is showing. Each time I select an app it goes over the previously resized app On the other hand, if I resize my app first and start maps directly from its launch button, every things works ok. At this point I can use the above code no problem, the 2 apps still run side by side. Please let me know if there is a solution BTW, it is android 6.0.1 Thanks in advance
Hi All Is there a way to force start navigation from my app in multi-window. Here is the code I am using now: Code: Copy geoURI="google.navigation:q=" & strAddress mapIntent.Initialize(mapIntent.ACTION_VIEW,geoURI) mapIntent.SetComponent("googlemaps") StartActivity(mapIntent) If I start navigation this way, it usually starts in full screen mode (even if I set my app for multi-window by clicking the multi-window icon) If I show all apps and then click the multi-window icon, the app resizes properly but only one app is showing. Each time I select an app it goes over the previously resized app On the other hand, if I resize my app first and start maps directly from its launch button, every things works ok. At this point I can use the above code no problem, the 2 apps still run side by side. Please let me know if there is a solution BTW, it is android 6.0.1 Thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Sep 15, 2017 #2 Have you set the targetSdkVersion to 24? Have you added the android:resizeableActivity attribute ? Upvote 0
I iCAB Well-Known Member Licensed User Longtime User Sep 15, 2017 #3 Erel said: Have you set the targetSdkVersion to 24? Have you added the android:resizeableActivity attribute ? Click to expand... Erel, thanks for your reply. I added the above as instructed, but I am still getting the same behaviour Upvote 0
Erel said: Have you set the targetSdkVersion to 24? Have you added the android:resizeableActivity attribute ? Click to expand... Erel, thanks for your reply. I added the above as instructed, but I am still getting the same behaviour
Erel B4X founder Staff member Licensed User Longtime User Sep 17, 2017 #4 Try to add this flag: https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_LAUNCH_ADJACENT Code: Copy mapIntent.Flags = Bit.Or(MapIntent.Flags, 4096) Upvote 0
Try to add this flag: https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_LAUNCH_ADJACENT Code: Copy mapIntent.Flags = Bit.Or(MapIntent.Flags, 4096)