-
Content Count
1558 -
Joined
-
Last visited
-
Days Won
36
Dave Nottage last won the day on January 17
Dave Nottage had the most liked content!
Community Reputation
605 ExcellentTechnical Information
-
Delphi-Version
Delphi 11 Alexandria
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
ANDROID - How to create a folder in a USB stick and write some files in that folder
Dave Nottage replied to steve.b's topic in Cross-platform
Given the content of the links, to create Delphi code for what you want to do does not seem trivial. -
ANDROID - How to create a folder in a USB stick and write some files in that folder
Dave Nottage replied to steve.b's topic in Cross-platform
Can you provide links to the code and information you're referring to? -
I expect it's not Delphi 12.3 that's the problem, but the version of Android on the device that you're running the app on. See here. It would help to know the location of the folder you're trying to create.
-
Android. TDirectory.GetFiles('/storage/emulated/0/DCIM/Camera') returns an empty list
Dave Nottage replied to dmitrybv's topic in Cross-platform
Actually, there is more to this. If you need access to files other than audio, images and video that are not created by your app, you would need to use the relevant action(s), as described here. This kind of thing is implemented in the FilesSelector feature in Kastri. -
Android. TDirectory.GetFiles('/storage/emulated/0/DCIM/Camera') returns an empty list
Dave Nottage replied to dmitrybv's topic in Cross-platform
It depends on the folder. If it's private to the app (e.g. via TPath.GetDocumentsPath) then TDirectory.GetFiles will work. If the folder is shared (as are those that you listed), then a method similar to what is in the demo could be used, i.e. via ContentResolver. -
Android. TDirectory.GetFiles('/storage/emulated/0/DCIM/Camera') returns an empty list
Dave Nottage replied to dmitrybv's topic in Cross-platform
I've created a demo in my HowTo repository. It also demos a way of accessing the contents of the files, since you cannot use the "traditional" methods of accessing the files in Delphi. -
How to Force the Generation of a New Notification Token on iOS Without Reinstalling the App?
Dave Nottage replied to moises@coderbox.com.br's topic in FMX
Looks like I was wrong about that. Compiling the FCMBaseDemo in Kastri, using the Firebase iOS SDK v11.11 succeeds using Delphi 12.3. Might have been another SDK I was thinking of 🙂 -
How to Force the Generation of a New Notification Token on iOS Without Reinstalling the App?
Dave Nottage replied to moises@coderbox.com.br's topic in FMX
After a conversation I have had with someone with the same problem, it seems it is due to a bug in earlier versions of the Firebase iOS SDK. The implementation in Delphi uses v6.28, and the latest version is v11.11, so it is quite a way "behind". Due to a linker issue in Delphi 12.1 and earlier, the latest version of the Firebase iOS SDK that can be used with it is v10.8. Delphi 12.2 can use at least v11.2, however I believe the linker starts failing again sometime before v11.11 (I'd have to check this). Having said all that, even if you download one of the later versions of the Firebase iOS SDK, there's a number of changes that would need to be made to Delphi source code in order to make it work. Alternatively, the FCM implementation in Kastri could be used, which is known to work with Firebase iOS SDK v11.2. -
Error: INSTALL_FAILED_INVALID_APK (base.apk code is missing)
Dave Nottage replied to brx's topic in FMX
It may be a misconfiguration of the SDK settings in Delphi. What value do you have for SDK API level location? -
problem integrating AAR from manufacturer startup-runtime maybe not working (?)
Dave Nottage replied to NecoArc's topic in FMX
It shouldn't, since Delphi itself inserts a provider tag in the resulting AndroidManifest.xml for example when using Secure File Sharing (enabled in the Entitlement List in Project Options). -
problem integrating AAR from manufacturer startup-runtime maybe not working (?)
Dave Nottage replied to NecoArc's topic in FMX
Not sure if this may have been affecting it, however you have an extraneous space in the android:authorities attribute, i.e. just before: %package%. Can you take out the provider tag to see if that really was required? -
problem integrating AAR from manufacturer startup-runtime maybe not working (?)
Dave Nottage replied to NecoArc's topic in FMX
You would need to add the provider node of that manifest.xml to AndroidManifest.template.xml inside of the application tag, but remove the: tools:node="merge" attribute, and replace: ${applicationId} with: %package% Which Delphi should replace with your package identifier in the resulting AndroidManifest.xml -
Android only shows the FMX logo for my app
Dave Nottage replied to GabrielMoraru's topic in Cross-platform
Yes, Android 8.0 has a bug that prevents the Delphi debugger from starting. One solution is to upgrade to Android 8.1, if you can. -
Même chose 😄
-
How to implement automatic synchronization and location monitoring at regular intervals in a Delphi Android application?
Dave Nottage replied to Carlos Miller Goncalves de's topic in Cross-platform
If it's just data synchronization, is not user initiated, and you want it in Delphi code, you may be stuck.