-
Content Count
1491 -
Joined
-
Last visited
-
Days Won
36
Everything posted by Dave Nottage
-
Yeah, I had considered that, but I'd prefer to avoid it.
-
Is it possible to send text from android to a windows laptop and back over wifi?
Dave Nottage replied to JohnLM's topic in Cross-platform
Complete error messages may help. -
Not when using classes that parse the JSON (at least, properly), since they won't include the quotes (given your example). What code are you using to parse it?
-
Is it possible to send text from android to a windows laptop and back over wifi?
Dave Nottage replied to JohnLM's topic in Cross-platform
Same here. Not sure which method(s) it tries to use to tether in this case - I can take a deeper look later if no-one else answers beforehand. -
Is it possible to send text from android to a windows laptop and back over wifi?
Dave Nottage replied to JohnLM's topic in Cross-platform
You'll find some of the demos have been updated, at: https://github.com/Embarcadero/RADStudio11Demos -
Do you have AutoSize on the tab item set to False?
-
Either there's a step missing between opening an existing project and pressing the DEL key, or it just doesn't happen for me.
-
Get a list of bluetooth devices
Dave Nottage replied to AndrewHoward's topic in Algorithms, Data Structures and Class Design
If you mean devices that are nearby, there's at least one example in the demos, which I think includes this one: https://github.com/Embarcadero/RADStudio11Demos/tree/main/Object Pascal/Multi-Device Samples/Device Sensors and Services/Bluetooth/BLEScanner -
Access to files in a post on the German DelphiPraxis site
Dave Nottage posted a topic in General Help
I'm able to see this post: https://www.delphipraxis.net/212223-natives-layout-unter-firemonkey.html ..and I'd like to access the files that Peter666 attached to the post, however I'm unable to register on the site. Is anyone able to help, either with registration (it says "wrong username or password", but I'm just registering), or access to the files? -
Developing apps for GPS related info, i.e., miles/speed/location/etc
Dave Nottage replied to JohnLM's topic in General Help
There's a demo on using TMapView and placing markers, here. -
Take a look at the ScanFilterServicesAdvData demo in the same folder, specifically TForm6.Button1Click in Unit6.pas. It shows how to request permissions, including the one you need.
-
I know it's been a couple of years, however I was going through my to-do list today and came across something that led me to your post. It seems with InCallService, it is expected that your app actually replaces the default phone app - is this a viable proposition for you? Regardless, I asked ChatGPT about the alternative, which is to monitor for incoming calls, and provide an alternative means of answering the call. Are you still looking for a solution to this, and does the ChatGPT answer fit your requirements?
-
Is now live! https://github.com/DelphiWorlds/Kastri/tree/master/Demos/GoogleSignIn
-
Which is sadly out of date (applies to Delphi 10.2). The implementation I'm working on should work in Delphi 11.x, and is more simplified than the Grijjy's.
-
I have imports there, however an implementation for Google Sign-In is still coming..
-
FB4D is also (according to the docs) dependent on linking static libraries for SSL, for iOS*. This is at odds with JOSE, which is dependent on dynamic linking. For it to work on iOS, one will need to be changed. *This statement in FB4D seems odd: "The library files libcrypto.a and libssl.a must be deployed within the package". Statically linked files do not need to be deployed. You might also like to see this.
-
It's possible it's because your app crashed. When switching back to it, does it appear as if the app is restarting? I seem to recall OnSaveState being unreliable anyway due to it not being called at all if the app is "swipe closed" (I could be wrong). It might be more reliable to persist anything you need restored as soon as a change has occurred. Using FireDAC, SQLite databases are by default in auto-commit mode, i.e. any changes should be saved immediately.
-
Android Foreground Server location access blocked
Dave Nottage replied to Bart Kindt's topic in General Help
https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION -
[PAClient Error] Error: E0776 error: exportArchive: No "teamID" specified and no team ID found in the archive
Dave Nottage replied to grantful's topic in Cross-platform
I'm confused with your last reply: are you still receiving the error? Also, which version of Delphi are you using? -
Android Foreground Server location access blocked
Dave Nottage replied to Bart Kindt's topic in General Help
You should be able to detect whether they've granted "allow all the time" by using: PermissionService.IsPermissionGranted('android.permission.ACCESS_BACKGROUND_LOCATION'); The CrossPlatformLocation demo in Kastri has logic to ensure the user is aware that it will work only if it is granted, starting from the RequestPermissions method, here. If they've already granted sufficient permissions, it just "falls through" to starting the location services. -
Crashes before anything at all is shown. This is from the event log: Faulting application name: RightNote.exe, version: 6.1.1.0, time stamp: 0x645ac479 Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000 Exception code: 0xc0000409 Fault offset: 0x77945948 Faulting process id: 0x0x1598 Faulting application start time: 0x0x1D9ADE7EB1F95C8 Faulting application path: C:\Utils\RightNote\RightNote.exe Faulting module path: unknown Report Id: 32f9e65a-e8cf-4ed5-8bf2-af8598ebae0c Faulting package full name: Faulting package-relative application ID: According to this, it's a "fail fast" exception. I assume from your original post you're using Delphi 10.4?
-
There's a number of ways to achieve it, and most involve changing the position of the control, or more likely a control that contains it, since other controls will usually be included in the same "container". For example, you might have a label next to, or above, the edit. Having them both contained inside the same control means that the "container" should be moved "upwards" sufficiently so that the edit appears above the keyboard. There is a demo here, that helps make all this close to automatic. Note that the demo uses code from the Features\VKObserver folder of the same repo. It's not perfect, however it is useful for most scenarios.
-
Macbook M1
-
Yes. I'm running a Windows 11 ARM VM and Win32 and Win64 apps built with Delphi are running fine. Perhaps your app is not starting for some other reason?
-
Is there a Sunday between 2 dates ?
Dave Nottage replied to Henry Olive's topic in RTL and Delphi Object Pascal
I figured it had to be fairly simple. Can someone poke holes in this? It assumes you're passing a valid value for ADayOfWeek. Also assumes the start/end dates should count uses System.DateUtils; function DayOfWeekCountBetween(const ADayOfWeek: Word; const ANow, AThen: TDateTime): Word; var LDate: TDateTime; begin Result := 0; if AThen >= ANow then begin LDate := ANow; repeat if DayOfWeek(LDate) = ADayOfWeek then Inc(Result); LDate := LDate + 1; until LDate > AThen; end else Result := DayOfWeekCountBetween(ADayOfWeek, AThen, ANow); end;