Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Do We Try Freeform Multi-Window Mode on the Android N Developer Preview?

The N Developer Preview documentation cites a freeform multi-window mode option:

Manufacturers of larger devices can choose to enable freeform mode, in which the user can freely resize each activity. If the manufacturer enables this feature, the device offers freeform mode in addition to split-screen mode.

The docs also suggest that you should test your app in freeform multi-window mode.

However, the two devices that I loaded the N Developer Preview images on (Nexus 6 and Nexus 9) use the split-screen approach for multi-window support.

Is there a way to get freeform mode going on something?

  • Another device? (e.g., Pixel C)

  • Settings > Developer Options? (I didn't see anything obvious for this, but I may have missed it)

  • A specific emulator configuration?

  • Some adb command?

  • A magic spell, cast by speaking a command backwards?

I am guessing that we might see some hardware that supports freeform mode natively in late May, but I'm just seeing if there's an option to try it out now.

like image 937
CommonsWare Avatar asked Mar 10 '16 01:03

CommonsWare


People also ask

What is freeform window mode Android?

Back in Android 7.0 Nougat, Google added a feature called 'Freeform windows. ' It allowed apps to run in resizable windows, but it was disabled by default, and the only way to use it was through ADB or third-party apps like Taskbar.

What is freeform windows in developer options?

Android Q adds freeform windows which allows application to run in windowed mode. A very cool feature to see in Android. It might not be too useable on regular phones, but I can see this being a perfect fit for foldable phones and tablets. Let me know down below what you think about this feature!


2 Answers

Freeform multi-window is not available in Dev Preview 1 - only split-screen multi-window.

like image 54
ianhanniballake Avatar answered Oct 05 '22 08:10

ianhanniballake


Lifehacker has instructions to enable Freeform Multi-Window Mode. It works in the "Android N final SDK". Here's the essence (with the curly quotes fixed and tips added):

  1. Create an x86 emulator AVD with Android N, for a tablet like Nexus 10.
    Tip: Name all your AVDs like "24 N Nexus 10". Starting with the Android API version gets the AVD Manager to sort them helpfully.
    Tip: Enable "Multi-Core CPU" with 2 CPUs.
    Tip: Set it to open in "Landscape" orientation.
    Tip: Don't "Enable Device Frame" unless you have a large monitor. You need the space for the content.
  2. Start the AVD. Wait for it to boot up.
  3. Use adb and a terminal to run these commands:
    • adb shell
    • su
    • setenforce 0
    • settings put global enable_freeform_support 1
    • cd /data/local/tmp
    • mkdir permissions
    • cd permissions
    • cp -a /system/etc/permissions/* ./
    • sed -e "s/live_wallpaper/freeform_window_management/" android.software.live_wallpaper.xml >freeform.xml
    • mount --bind . /system/etc/permissions
    • Wait a couple seconds
    • stop
    • Wait a couple more seconds
    • start

The Lifehacker page also has instructions to enable Freeform Multi-Window Mode on an Android N device.

like image 24
Jerry101 Avatar answered Oct 05 '22 07:10

Jerry101