FMX Cloud Pack don't works on SDK >= 26?


could you update your demo apps please, because it seems some of them are not working under SDK>=26 (new requirement to update apps in Google Play Store!)

My problem: my Android app uses FMX Cloud Pack since some years. But now if I compile my app in RAD Studio 10.3 Rio and want to connect to the Cloud services Dropbox and GDrive for SDK>26 I will get the error: "EJNIException with message android.os.NetworkOnMainThreadException".
SdkVersion is the following: <uses-sdk android:minSdkVersion="20" android:targetSdkVersion="28" /> 

I ckeched the same source code in RAD Studio 10.1 with the current version of the FMX Cloud Pack but another SdKVersion and it works!
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="14" /> 

That's why I thought I can check your CloudStorageDemo, but it seems it isn't SDK>=26 compatible.

In UCloudStorageDemo you have to use another user folder, otherwise you will get an error.
Or you have to implement the new restriction access with the FileProvider to get acces to another folders!

//  fn := TPath.GetSharedDocumentsPath + PathDelim;
  fn := System.SysUtils.IncludeTrailingPathDelimiter(System.IOUtils.TPath.GetHomepath);
  fn := ExtractFilePath(Paramstr(0));

In your StorageDemo if I try to connect to Dropbox or Google Drive I will get the error "Java Class JCustomTabsIntent_Builder not found" on line 222 in FMX.TMSCloudBaseFMX.pas

Could you give me an answer if you know about the problems and you will work on it to fix it?

Best regards


Thank you for notifying us.
We are currently investigating this issue and will report back as soon as possible.
- We haven't been able to reproduce the NetworkOnMainThreadException.
Can you please provide the following information so I can further investigate this?
Does the issue also occur in the demo or only in your own application?
Which version of Android are you using?

- The GetSharedDocumentsPath has been replaced in the demo.
The update will be available with the next release of TMS FMX Cloud Pack.

- To avoid the "JCustomTabsIntent_Builder" error, please follow instructions on this page:


thanks for the response. The NetworkOnMainThreadException is in my application on Android 9.
It looks for  a special folder on GDrive.

I can test it tomorrow on Android 6.0.1 with the current version of FMXCloud Pack.


I was able to solve the error: "EJNIException with message android.os.NetworkOnMainThreadException".

It was a thread issue in my app. 

In SDK<26 the usage of TMS Cloud Pack function like "TMSGoogleDrive.SearchFolder()" in TThread.Synchronize() is possible, Later on Android it isn't no more possible and I have to do such function calls in TThread.CreateAnonymousThread();


this demo isn't in current state. My reported bug ist still present in version 
And in file APPIDS.INC the variables YandexDiskAppKey and YandexDiskAppSecret will be missed.
And the app tries to Google Drive login not in external browser.



- We are not aware of any issues in the CloudStorageDemo at this time. Can you please explain exactly what bug you are referring to so I can further investigate this?

- Please make sure to set ExternalBrowser to True to make the login screen display in an external window.