Wirelessly Debugging of your Android App on Smartphone

First Set Path for adb command through system environment variable : F:\adt-bundle-windows-x86_64-20140702\sdk\platform-toolsNow type following commands on command prompt : Connect device via USB and make sure debugging is working. adb tcpip 5555 adb connect <DEVICE_IP_ADDRESS>:5555 Disconnect USB and proceed with wireless debugging. adb -s <DEVICE_IP_ADDRESS>:5555 usb to switch back when done. <DEVICE_IP_ADDRESS> : type following command […]

CSS Image Sprites

An image sprite is a collection of images put into a single image. A web page with many images can take a long time to load and generates multiple server requests. Using image sprites will reduce the number of server requests and save bandwidth.   Ref : https://www.w3schools.com/css/css_image_sprites.asp

How to sort list by two fields in Java?

private static void order(List persons) { Collections.sort(persons, new Comparator() { public int compare(Object o1, Object o2) { String x1 = ((Person) o1).getName(); String x2 = ((Person) o2).getName(); int sComp = x1.compareTo(x2); if (sComp != 0) { return sComp; } Integer x1 = ((Person) o1).getAge(); Integer x2 = ((Person) o2).getAge(); return x1.compareTo(x2); } }); }