Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack

This exception occur when we try to redirect a page. Solution: To solve this problem we should use second argument of Response.Redirect that will stop current page’s execution and move to next page. Sencond argument should be false. Full solution is below [sociallocker] Response.Redirect(“http://www.wisdomitsol.com”,false); [/sociallocker]

Convert any file into byte array or byte array into string in Android

How to convert image or video file into byte[] or byte[] into String in Android: TO upload image, video or any other file on server fro Android app we need to convert that image / video file to string or upload byte by byte. Note: this method is suite able for small files (image, video, …

Java / Android Sort ArrayList

How to sort an ArrayList in Android: Following code is describing, how to sort an Android / Java array list of user defined class. Collections.sort(empList, new Comparator<Employee>(){ public int compare(Employee emp1, Employee emp2) { return emp1.getFirstName().compareToIgnoreCase(emp2.getFirstName()); } });