Android Question OSMDroid map not loading, even in the tutorial

zingar

New Member
map doesnt load in the tutorial program from here https://www.b4x.com/android/forum/threads/osmdroid-mapview-for-b4a-tutorial.16310/
i noticed its quite old so i did the permissions thing and it loaded fine but after a few minutes it stopped getting any new tiles. i checked the unfiltered log and saw this error
000.jpg


im not sure if this is still supported or not since most stuff about it i found was quite old. googed this error and added the legacy libraries to the manifest but still not helping. if i target a sdk lower than 28 it works by the way but this error is relevant to my issue
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is a mistake to post the error message like this. Right click and post it as text.

im not sure if this is still supported or not since most stuff about it i found was quite old. googed this error and added the legacy libraries to the manifest but still not helping. if i target a sdk lower than 28 it works by the way but this error is relevant to my issue
Can you post the manifest editor code?
 
Upvote 0

zingar

New Member
ah also i meant to say "this error maybe is not relevant to my issue" since i still get the error when the map loads when targeting an older SDK

heres the manifest by the way

XML:
<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="uk.co.martinpearman.b4a.mapviewtutorial"
    android:versionCode="1"
    android:versionName=""
    android:installLocation="internalOnly">
  
    <uses-sdk android:minSdkVersion="28" />
    <supports-screens android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:anyDensity="true"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <application
        android:icon="@drawable/icon"
        android:label="MapView Simple Example"
        android:usesCleartextTraffic="true">
      
        <uses-library android:name="org.apache.http.legacy" android:required="false"/>
        <activity
            android:windowSoftInputMode="stateHidden"
            android:launchMode="singleTop"
            android:name=".main"
            android:label="MapView Simple Example"
            android:screenOrientation="unspecified">
            <intent-filter>
               <action android:name="android.intent.action.MAIN" />
               <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
          
        </activity>
    </application>
</manifest>
 
Last edited:
Upvote 0
Top