Do you know java open source geofence library (Determining Whether A Point Is Inside A Complex Polygon) like Google play services for Android ?
Take a look https://code.google.com/p/openmap/source/browse/src/openmap/com/bbn/openmap/geo/Intersection.java
public static boolean isPointInPolygon(Geo x, GeoArray poly)