Get screen size depending on split windows width

WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); Display display = windowManager.getDefaultDisplay(); Point size = new Point(); display.getSize(size); It will always show proper total width od current display

Utils class: compression string gzip

import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; public class Compression { public static byte[] compress(String paramString) throws IOException { ByteArrayOutputStream byteArrayOutputStream =…