Android Question MultiWindow

iCAB

Well-Known Member
Licensed User
Longtime User
Hi All

Is there a way to force start navigation from my app in multi-window.

Here is the code I am using now:

B4X:
        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
 

iCAB

Well-Known Member
Licensed User
Longtime User
Have you set the targetSdkVersion to 24? Have you added the android:resizeableActivity attribute ?

Erel, thanks for your reply.
I added the above as instructed, but I am still getting the same behaviour
 
Upvote 0
Top