Turn on Samsung Multi Window in a foreign application

The new Samsung smartphones have a very interesting feature - Multi Windows.
It allows you to run two applications simultaneously in one window.
Unfortunately, besides Samsung, few people support this feature so far.
But in fact, it’s not so difficult to add to an existing application.

It will look like this.

To alter the application we need:

We will train on the Safari to go application (since I would like to use it in parallel with the dictionary)

  • Unpack the apk file into the
    apktool.bat d -s com.safaribooksonline.apk ./com.safaribooksonline folder
  • Make the following changes to the AndroidManifest.xml file

  • We create or supplement the file \ res \ values ​​\ dens.xml

  • We pack everything back into the apk file
    apktool.bat b ./com.safaribooksonline An

    apk file will be created in the folder
    \ com.safaribooksonline \ dist \ com.safaribooksonline.apk
  • We generate a key for signing the apk file (since the application will not be signed with the original key, it will not be updated from google play)
    I took the name of the store and Alice straight from the SDK. But if you wish, you can exchange for something more original.
    keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
  • We sign the application with the generated key
    jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore my-release-key.keystore com.safaribooksonline.apk alias_name

Now the application can be installed on the device.

With the same ease, Multi windows support can be added to your new application.
Plus a bunch of goodies with drag and drop content from one application to another.

developer.android.com/tools/publishing/app-signing .html

P.S. Supported devices:
Samsung S3
Samsung S4
Samsung Note
Samsung Note II
Samsung Note 8.0
Samsung Note 10.1

Also popular now: