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!
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?
- 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.
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();
- 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.