mapsforge

add multiple markers on Android Mapsforge map

一笑奈何 提交于 2019-12-24 05:55:03
问题 Please help me with android programming. I am making one android mapsforge app and want to add multiple markers on Android Mapsforge map using Mysql . My data is situated in Database Mysql and i am getting with Json using php. It is working but problem is to add markers. Here is my code: public void friend_finder(){ try{ HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://fifauz.com/selectall.php"); HttpResponse response = httpclient.execute(httppost);

NoClassDefFoundError on Android project

Deadly 提交于 2019-12-13 04:04:00
问题 I have this problem that i can't understand how to solve. i have imported a maps forge project in eclipse using maven, but if try to load the project on device, i get this error. But i know that that class is in the project. How can i solve this problem? I am working with the Mapsforge rescue 4.0 library. I have used the same method to import Mapsforge 0.31 and everything works fine. 02-25 16:46:03.202: E/AndroidRuntime(6370): java.lang.NoClassDefFoundError: org.mapsforge.map.android.graphics

Graphhopper Route for Pedestrian android

六眼飞鱼酱① 提交于 2019-12-13 02:54:51
问题 How do i set route type to Pedestrian in Graphhopper android? I have been using GHRequest.setVehicle() method in android, and it does not work. I have tried using "foot", and "bike". None worked. Also, it doesn't work when i changed Algorithms too. Only Dijkstra_BI is working now. GHRequest req = new GHRequest(fromLat, fromLon, toLat, toLon). setAlgorithm(Algorithms.DIJKSTRA_BI).setVehicle("foot"); Thanks in Advance. The map data that i have contain following files. I am getting the following

Using map.osm and osmarender.xml from Android project in web project

北城以北 提交于 2019-12-12 13:38:52
问题 I edited an .osm file and a style file (osmarender.xml) some time ago and included it in an Android project (using osmosis and the Mapsforge library). Works fine and looks good. Now I would like to reuse these files in a web project using OpenLayers (or Leaflet?). Using this example (https://wiki.openstreetmap.org/wiki/OpenLayers_osm_file_example) I was able to display my (very local, but still 23 MB) map, however, it was all in yellow (no styles applied, of course) and it was rendered on top

Use Mapsforge in Android Studio

寵の児 提交于 2019-12-07 22:08:40
问题 I need to use Mapsforge (offline maps) in my Android Studio app. I've imported these libraries: mapsforge-core-0.4.0.jar mapsforge-map-0.4.0.jar mapsforge-map-android-0.4.0.jar mapsforge-map-reader-0.4.0.jar svg-android-0.4.0.jar And I've included the dependecies in build.gradle: compile fileTree(dir: 'libs', include: ['*.jar']) This is the code: import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view

Use Mapsforge in Android Studio

一笑奈何 提交于 2019-12-06 11:28:44
I need to use Mapsforge (offline maps) in my Android Studio app. I've imported these libraries: mapsforge-core-0.4.0.jar mapsforge-map-0.4.0.jar mapsforge-map-android-0.4.0.jar mapsforge-map-reader-0.4.0.jar svg-android-0.4.0.jar And I've included the dependecies in build.gradle: compile fileTree(dir: 'libs', include: ['*.jar']) This is the code: import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import org.mapsforge.map.android.view.MapView; public class MapaForgeFragment extends

NoClassDefFoundError with Mapsforge 0.4.0 and Eclipse

吃可爱长大的小学妹 提交于 2019-12-01 10:55:23
I am trying to add a map view to my application using Mapsforge. I have done the following: Downloaded jar files and placed them in the libs/ folder mapsforge-core-0.4.0.jar mapsforge-map-0.4.0.jar mapsforge-map-android-0.4.0.jar mapsforge-map-reader-0.4.0.jar Right-clicked file and selected Build Path > Add to Build Path . In Project Properties , marked the four jars as exported. However, when I run my app, it crashes on the first call to a class from the library: E/AndroidRuntime(21265): java.lang.NoClassDefFoundError: org.mapsforge.map.android.graphics.AndroidGraphicFactory Android SDK

NoClassDefFoundError with Mapsforge 0.4.0 and Eclipse

…衆ロ難τιáo~ 提交于 2019-12-01 08:10:25
问题 I am trying to add a map view to my application using Mapsforge. I have done the following: Downloaded jar files and placed them in the libs/ folder mapsforge-core-0.4.0.jar mapsforge-map-0.4.0.jar mapsforge-map-android-0.4.0.jar mapsforge-map-reader-0.4.0.jar Right-clicked file and selected Build Path > Add to Build Path . In Project Properties , marked the four jars as exported. However, when I run my app, it crashes on the first call to a class from the library: E/AndroidRuntime(21265):

Add opaque “shadow” (outline) to Android TextView

半世苍凉 提交于 2019-11-27 14:43:04
I have a TextView in my Activity to which I want to add a shadow. It is supposed to look like in OsmAnd (100% opaque): But it looks like this: You can see that the current shadow is blurred and fades away. I want a solid, opaque shadow. But how? My current code is: <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/speedTextView" android:text="25 km/h" android:textSize="24sp" android:textStyle="bold" android:textColor="#000000" android:shadowColor="#ffffff" android:shadowDx="0" android:shadowDy="0" android:shadowRadius="6" /> I thought I might

Add opaque “shadow” (outline) to Android TextView

China☆狼群 提交于 2019-11-26 16:35:39
问题 I have a TextView in my Activity to which I want to add a shadow. It is supposed to look like in OsmAnd (100% opaque): But it looks like this: You can see that the current shadow is blurred and fades away. I want a solid, opaque shadow. But how? My current code is: <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/speedTextView" android:text="25 km/h" android:textSize="24sp" android:textStyle="bold" android:textColor="#000000" android