Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replacing google maps to open street map [closed]

I'm new to this. I'm creating an android application which locates my contacts. I have tried some tutorials and it runs. but how to replace google map to open street map. I have this code.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.PositionLocator.android">
<application android:icon="@drawable/icon">
<activity android:name=".PositionLocator" android:label="@string/app_name">
</activity>        
<activity android:name=".PositionLocatorMap" android:label="@string/app_name">
  <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
  </intent-filter>
</activity>
<uses-library android:name="com.google.android.maps"/>
</application>
<uses-permission android:name="android.permission.INTERNET"/>    
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
</manifest> 
like image 800
gutentag Avatar asked Dec 11 '25 04:12

gutentag


1 Answers

The mapsforge library seems also very promising. Seems that they are compatible to the GoogleMaps API and that you just need to exchange imports.

like image 73
Michael Avatar answered Dec 12 '25 19:12

Michael



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!