Actually i am developing a Map browser app in Android. I have a .dat file contains map information with a File format like this,
struct point{
int x,
int y;
};
How can i read this .dat file using this format and copy the values into x and y?
To draw a map, you need to extend View class and implement methods such as onMeasure(int, int) and onDraw(android.graphics.Canvas). Then inside onDraw you can draw your mapping elements directly with Canvas methods such as drawArc, drawCircle, drawLine, drawOval, drawPath, drawPoint, drawRect, drawText and so on.
To get a clue look at this class (for example) in mapsforge.