Creating Custom Overlay on the map

Okay, I tried to do things on my Own, and put this code to get the above effect: public class MarkerOverlay extends Overlay { Geocoder geoCoder = null; public MarkerOverlay() { super(); } @Override public boolean onTap(GeoPoint geoPoint, MapView mapView){ selectedLatitude = geoPoint.getLatitudeE6(); selectedLongitude = geoPoint.getLongitudeE6(); return super.onTap(geoPoint,mapView); } @Override public void draw(Canvas canvas, MapView … Read more

android camera surfaceview orientation

The way I implemented it: private Camera mCamera; private OrientationEventListener mOrientationEventListener; private int mOrientation = -1; private static final int ORIENTATION_PORTRAIT_NORMAL = 1; private static final int ORIENTATION_PORTRAIT_INVERTED = 2; private static final int ORIENTATION_LANDSCAPE_NORMAL = 3; private static final int ORIENTATION_LANDSCAPE_INVERTED = 4; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // force Landscape layout … Read more

Post multipart request with Android SDK

Update April 29th 2014: My answer is kind of old by now and I guess you rather want to use some kind of high level library such as Retrofit. Based on this blog I came up with the following solution: http://blog.tacticalnuclearstrike.com/2010/01/using-multipartentity-in-android-applications/ You will have to download additional libraries to get MultipartEntity running! 1) Download httpcomponents-client-4.1.zip … Read more