Tag: google-maps

Alternatives to google maps api

google maps api is great for developing location based services for mobile phones. But for some reason the use of it is restricted for me in a special project. E.g. if your project is in conflict with the general terms and conditions of google it is not recommended to use google maps api. In my […]

MapView in a Fragment (Honeycomb)

now that the final SDK is out with google apis – what is the best way to create a Fragment with a MapView? MapView needs a MapActivity to work right. Having the Activity managing the Fragments inherit from MapActivity (bad solution because it goes against the idea that Fragments are self contained) and use a […]

How do I set default location and Zoom level for google map api v2?

When my map shows, it always start at a fixed location (near Africa). Then, I use the following code to center the map to the location I want. mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(loc.getLatitude(), loc.getLongitude()), 14.0f)); My question is that could I set a default location and zoom level before the map shows? Because I don’t want my users […]

Google Maps v2 – set both my location and zoom in

My question is, does anyone know how to set google maps up, to open up both my location and in a zoomed in view? Currently, the main view opens up to Africa, all the way zoomed out. And so I have been searching for days now, and all I can find are: 1) You cannot […]

ViewPager with Google Maps API v2: mysterious black view

I have integrated the new google maps api v2 fragment in a view pager. When scrolling from the map fragment, a black view overlaps the adjacent fragments. Someone has solved? Edit: screenshot public static class PagerAdapter extends FragmentPagerAdapter{ public PagerAdapter(FragmentManager fm) { super(fm); } @Override public int getCount() { return NUM_ITEMS; } @Override public Fragment […]

Drawing a line/path on Google Maps

I’ve been busy for a long time finding out how to draw a line between two (GPS) points on the map in HelloMapView but with no luck. Could anyone please tell me how to do so. Suppose I use the HelloMapView which extends MapView. Do I need to use overlays? If so do I have […]

How can I get the MD5 fingerprint from Java's keytool, not only SHA-1?

As I want to use Google maps in my application, I need the debug certificates’ MD5 fingerprint. I tried following.: (Here I copied the debug.keystore file from C:\Documents and Settings\Administrator.android in bin folder) C:\Program Files\Java\jdk1.7.0\bin>keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android But got the following results: androiddebugkey, May 27, 2011, PrivateKeyEntry,Certificate fingerprint […]

How can I find the latitude and longitude from address?

I want to show the location of an address in Google Maps. How do I get the latitude and longitude of an address using the Google Maps API?

How to draw a path on a map using kml file?

Can I parse kml file in order to display paths or points in Android? Please could you help me with that? This is kml sample code which I would like to display in android google map: <?xml version=”1.0″ encoding=”UTF-8″?> <kml xmlns=”http://www.opengis.net/kml/2.2″> <Document> <name>Paths</name> <description>Examples of paths. Note that the tessellate tag is by default set […]

How to get city name from latitude and longitude coordinates in Google Maps?

How might I obtain the city name in Google Maps if I have latitude and longitude coordinates of a town or area? I tried using the latitude, longitude and I got country but I don’t know how to get city name.

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.