RemoteDB and android 10

Hi,
I have a app 64 bit on Android created with delphi 10.4.1 - and SDK android 25.2.5 and
RemoteDB ver. 2.11.0.0
I use remoteDB to connect on my remote server (NexusdDB)...

I use this to connect

RemoteDBDatabase1.ServerUri := MyServerUri;
RemoteDBDatabase1.Connected := True;

if I try it the App on

  • my smartphone Android 8.0 all work
  • my tablet Samsung Tab A7 Android 10 the App crash and close
  • on smartphone Samsung A71 Android 10 not work NO error

if try on PC Windows (32 and 64 bit) all work...

how can i solve?
thanks

Have you looked at the Android logs to see what's going on? Perhaps this blog post by Brian Long may help. http://blog.blong.com/2016/11/debug-logging-in-firemonkey-coderage-xi.html

1 Like

It might be related to Android blocking HTTP connections. Please check this:

I Wagner,
Thanks for the reply...

It doesn't work ... for me :(

do you have a working example project for android64?

this is my AndroidManifest.tamplate.xml

<?xml version="1.0" encoding="utf-8"?>
<uses-sdk android:minSdkVersion="%minSdkVersion%" android:targetSdkVersion="%targetSdkVersion%" />
<%uses-permission%>
<uses-feature android:glEsVersion="0x00020000" android:required="True"/>
<application android:persistent="%persistent%" 
    android:restoreAnyVersion="%restoreAnyVersion%" 
    android:label="%label%" 
    android:debuggable="%debuggable%" 
    android:largeHeap="%largeHeap%"
    android:icon="%icon%"
    android:theme="%theme%"
    android:hardwareAccelerated="%hardwareAccelerated%"
    android:resizeableActivity="false"
    android:requestLegacyExternalStorage="true">
android:usesCleartextTraffic="true"

    <%provider%>
    <%application-meta-data%>
    <%uses-libraries%>
    <%services%>
    <!-- Our activity is a subclass of the built-in NativeActivity framework class.
         This will take care of integrating with our NDK code. -->
    <activity android:name="com.embarcadero.firemonkey.FMXNativeActivity"
            android:label="%activityLabel%"
            android:configChanges="orientation|keyboard|keyboardHidden|screenSize"
            android:launchMode="singleTask">
        <!-- Tell NativeActivity the name of our .so -->
        <meta-data android:name="android.app.lib_name"
            android:value="%libNameValue%" />
        <intent-filter>  
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter> 
    </activity>
    <%activity%>
    <%receivers%>
</application>

You have added ir wrongly. You have to put it inside the application tag:

<application android:persistent="%persistent%" 
    android:restoreAnyVersion="%restoreAnyVersion%" 
    android:label="%label%" 
    android:debuggable="%debuggable%" 
    android:largeHeap="%largeHeap%"
    android:icon="%icon%"
    android:theme="%theme%"
    android:hardwareAccelerated="%hardwareAccelerated%"
    android:resizeableActivity="false"
    android:requestLegacyExternalStorage="true"
    android:usesCleartextTraffic="true">

:slight_smile:

Yes !
thanks

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.