Draw on a custom View over MapView

By using FrameLayout, we can create a custom View overlap with a MapView, such that we can draw on the canvas of the customer View. Also we can call MapView.getProjection().fromPixels(x, y) to get the...

Get the the coordinates (Latitude and Longitude) currently displayed on MapView

Here is a example to get the coordinates (Latitude and Longitude) currently displayed on MapView.To get the coordinate of a point corspondint to a pixel on screen, we can use the method MapView.getProjection().fromPixels(x,...

Custom Class Loading in Dalvik

[This post is by Fred Chung, who’s an Android Developer Advocate — Tim Bray]The Dalvik VM provides facilities for developers to perform custom class loading. Instead of loading Dalvik...

Set background color of title bar

package com.exercise.AndroidTitleBar;import android.app.Activity;import android.graphics.Color;import android.os.Bundle;import android.view.View;public class AndroidTitleBarActivity extends Activity {...

New Tools For Managing Screen Sizes

[This post is by Dianne Hackborn and a supporting cast of thousands; Dianne’s fingerprints can be found all over the Android Application Framework — Tim Bray]Android 3.2 includes new tools...