-
Content Count
1296 -
Joined
-
Last visited
-
Days Won
29
Everything posted by Dave Nottage
-
This works for 10.3.x if you have some kind of PDF viewer installed on the device: uses Androidapi.JNI.GraphicsContentViewText, Androidapi.Helpers, Androidapi.JNI.Net; procedure OpenPDF(const AFileName: string); var LIntent: JIntent; LUri: Jnet_Uri; begin LUri := TAndroidHelper.JFileToJURI(TJFile.JavaClass.init(StringToJString(AFileName))); LIntent := TJIntent.JavaClass.init(TJIntent.JavaClass.ACTION_VIEW); LIntent.setDataAndType(LUri, StringToJString('application/pdf')); LIntent.setFlags(TJIntent.JavaClass.FLAG_GRANT_READ_URI_PERMISSION); TAndroidHelper.Activity.startActivity(LIntent); end;
-
[iOS, Bluetooth] App crash when disconnected (__CRASHING_DUE_TO_PRIVACY_VIOLATION__)
Dave Nottage replied to Rollo62's topic in Cross-platform
Unless your app is called "Facebook", "Twitter", or "Instagram", yeah 😉 -
How do you manage that? Thanks for the link!
-
[iOS, Bluetooth] App crash when disconnected (__CRASHING_DUE_TO_PRIVACY_VIOLATION__)
Dave Nottage replied to Rollo62's topic in Cross-platform
No, I was specifically referring to Beacons. I expect the BLE issue is separate. Now I'm confused: does it work, and if so, only with both? -
I haven't had the need to, however I might take a look at it I'll work on sharing the parts that I can share.
-
[iOS, Bluetooth] App crash when disconnected (__CRASHING_DUE_TO_PRIVACY_VIOLATION__)
Dave Nottage replied to Rollo62's topic in Cross-platform
I don't understand how you came to that conclusion. As far as I know, they haven't Yes, with the changes I proposed in the QP report. -
A while ago I was looking for something that's cross-platform (Windows and macOS) so decided to check out CE4. For me, it was extremely difficult to work with, if the goal is to use it for automation. I ended up using TWebBrowser in FMX and wrote a bunch of helper methods for both platforms, one of the most critical being: // macOS class function THTMLHelper.GetBrowserDocument(const ABrowser: TObject): DOMDocument; var LWebView: WebView; begin Result := nil; if Supports(ABrowser, WebView, LWebView) then Result := LWebView.mainFrame.DOMDocument; end; // Windows class function THTMLHelper.GetBrowserDocument(const ABrowser: TObject): IHTMLDocument3; var LBrowser: IWebBrowser; begin if Supports(ABrowser, IWebBrowser, LBrowser) then Supports(LBrowser.Document, IHTMLDocument3, Result); end;
-
[iOS, Bluetooth] App crash when disconnected (__CRASHING_DUE_TO_PRIVACY_VIOLATION__)
Dave Nottage replied to Rollo62's topic in Cross-platform
They haven't: there is critical code missing that allows them to work in the background: https://quality.embarcadero.com/browse/RSP-21460 -
50 Cross Platform Samples For Android, IOS, OSX, Windows, Linux, And HTML5 In Delphi
Dave Nottage replied to Eli M.'s topic in Tips / Blogs / Tutorials / Videos
I'm guessing this wasn't intentional: -
http://delphi.org/2019/06/manually-installing-android-sdk-ndk-and-java-for-firemonkey-development/
-
I've finally managed to put together a test case, which is here: https://github.com/DelphiWorlds/MiscStuff/blob/master/Test/RDSTwainTestCase.zip
-
OSX debugger search path problem - original FMX units before patched
Dave Nottage replied to Gustav Schubert's topic in Cross-platform
If it's other than in the project folder, you need to set the Source path in the Debugger section of the Project Options: -
OSX debugger search path problem - original FMX units before patched
Dave Nottage replied to Gustav Schubert's topic in Cross-platform
Works OK here. My steps: 1. Create a blank FMX app, change platform to OSX 64-bit 2. Add a button and memo 3. Add the code you described 4. Save the project 5. Open FMX.Memo.pas from the source, and save it in the same folder as the project 6. Put a breakpoint in TCustomMemo.GetText 7. Close the file in the editor 8. Run the app with debugging 9. Click the button. IDE opens the local copy, as expected, and stops at the expected breakpoint -
A stack trace would be more helpful. It should appear after you click "Break". If not, click View > Debug Windows > Call Stack or just use Ctrl-Alt-S
-
[Fmx, Macos64] [dccosx64 Error] E2597 ld: warning: directory not found
Dave Nottage replied to Rollo62's topic in Cross-platform
Those paths look suspiciously like mine in Kastri Free. What exactly are you compiling? I suggest checking whether you have a unit that references the DLL without having a conditional define, or that the path to it is included for macOS when it should not be- 3 replies
-
- firemonkey
- fmx
-
(and 1 more)
Tagged with:
-
If you are using Delphi 10.3, for this situation you do not need to modify AndroidManifest.template.xml yourself. Unless you have other customizations to it, please delete it (or remove your <provider> changes). Go to the Project Options, select Application > Entitlement List and check the Secure File Sharing checkbox.
-
Android 8.0 Permissions errors using Delphi Rio 10.3
Dave Nottage replied to Jose Morango's topic in Cross-platform
Right; that would be because, as I said earlier, it is "shown only when permissions are not granted by the user" -
Android 8.0 Permissions errors using Delphi Rio 10.3
Dave Nottage replied to Jose Morango's topic in Cross-platform
You need to trace through the TAndroidPermissionsService.InternalRequestPermissions method in the System.Android.Permissions unit. Note that the rationale is shown only when permissions are not granted by the user. -
[Fmx, Macos] Missing image sqlite3 when running on Macos Sierra
Dave Nottage replied to Rollo62's topic in Cross-platform
I found out from Dmitry Arefiev. It really should have been included in the release notes. -
[Fmx, Macos] Missing image sqlite3 when running on Macos Sierra
Dave Nottage replied to Rollo62's topic in Cross-platform
libcgsqlite3.dylib is now a "featured" file. Go to Deployment Manager and use the Add Featured Files to add it. -
Refer to Form Control without using the Form unit?
Dave Nottage replied to Mike Torrettinni's topic in VCL
FindComponent returns nil if you misspell the name, so just check for nil? -
The difference is it is loaded by RDS. I could put together code that just replicates the problem, if you're able to help with it
-
Tested this again today. Using TransferMode := ttmMemory, ScanTest.bmp is the result using the "standalone" DLL, and ScanTestA.bmp is the result using the "RDS" DLL. ScanTest.bmp ScanTestA.bmp
-
Yes, with a different failure; can't recall exactly. I'll check again tomorrow.
-
You're right, it should be, and I changed it to THandle (same as used by GlobalLock) for hNative in the TransferImages method, and the Handle parameter in the ReadNative method, but to no avail - same problem. The handle numbers are larger, e.g: In the "standalone" DLL: 57278728 (36A0108) In the "RDS" DLL: 2333671976 (8B190228) and 1541866024 (5BE70228)