Android Question app dock

John Decowski

Member
Licensed User
Longtime User
i want to make an app that will dock a portion of the top screen and allow other apps to run underneath. But I would like the region to be redefined underneath. other words, have the app underneath open within the region supplied below and appear normal (top not chopped).
 

John Decowski

Member
Licensed User
Longtime User
That is close to what I want. I am building An app for my motorcycle speedo, tach , fuel etc. but want to be able to open google maps or Waze but still be able to watch gauges.

But don’t need half of the screen just a small portion
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
I am afraid that you want to do something impossible.
Try to find an application, which does exactly what you want. Probably, it will be possible to understand how it works.

Multi-windows is not a good solution anyway.
1) Android 7+ only
2) applications are able to prevent this mode (for example, my bank's application detects this mode and refuse to work due to sequrity reasons.

More or less realistic - to use notifications.
 
Upvote 0

John Decowski

Member
Licensed User
Longtime User
I am afraid that you want to do something impossible.
Try to find an application, which does exactly what you want. Probably, it will be possible to understand how it works.

Multi-windows is not a good solution anyway.
1) Android 7+ only
2) applications are able to prevent this mode (for example, my bank's application detects this mode and refuse to work due to sequrity reasons.

More or less realistic - to use notifications.
My app will be on a dedicated tablet nothing else will be used. I want to experiment with the split window mode if I can define the sizes. Android 7 not a problem since this tablet will be permanently mounted to my bike .
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
In general multi-windows require nothing.
User in any moment can press Overview ("square") button per some seconds and OS will set multi-window mode.
You can resize windows, using fingers.

I tried to set defaultHeight / defaultWidth etc in manifest. According to my observations, Android does what it wants.
 
Upvote 0

Jeffrey Cameron

Well-Known Member
Licensed User
Longtime User
If your goal is to have maps and Waze you could consider just adding a tab with multiple webviews under your instrument panel and navigating directly to those webpages (or even use the maps library for that portion).
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
Some monthes ago I made experiments to show status of my background service (it sends files to webserver).
I attached the latest test. Finally I did not integrate this code, but maybe in future.

Note, panel is moveable. You can touch it in any place (except Button) and to move.
 

Attachments

  • test.zip
    10.9 KB · Views: 423
Upvote 0
Top