-
Content Count
1560 -
Joined
-
Last visited
-
Days Won
36
Everything posted by Dave Nottage
-
Is there a way to get the wizard name / executable from a nindex?
Dave Nottage replied to dummzeuch's topic in Delphi IDE and APIs
Why not just keep your own list? i.e. when you call AddWizard to add a wizard, save the index and the name (via GetName or GetIDString on the wizard) in your own list. -
Delphi 10.3.2 Android Application is Not Starting
Dave Nottage replied to MikeMon's topic in Cross-platform
Thanks for the log! You may need to revise your NDK settings too, given it solved this persons problem: https://community.idera.com/developer-tools/platforms/f/android-platform/67751/10-3-android-5-crash I have mine set at Android-22. The relevant part in your log is: 08-31 13:08:02.182: E/AndroidRuntime(1527): java.lang.RuntimeException: Unable to start activity ComponentInfo{cy.com.wagamama.ordercy/com.embarcadero.firemonkey.FMXNativeActivity}: java.lang.IllegalArgumentException: Unable to load native library: /data/app/cy.com.wagamama.ordercy-2/lib/arm/libWagaAppClient.so 08-31 13:08:02.182: E/AndroidRuntime(1527): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3151) 08-31 13:08:02.182: E/AndroidRuntime(1527): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3261) 08-31 13:08:02.182: E/AndroidRuntime(1527): at android.app.ActivityThread.access$1000(ActivityThread.java:219) 08-31 13:08:02.182: E/AndroidRuntime(1527): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1735) 08-31 13:08:02.182: E/AndroidRuntime(1527): at android.os.Handler.dispatchMessage(Handler.java:102) 08-31 13:08:02.182: E/AndroidRuntime(1527): at android.os.Looper.loop(Looper.java:145) 08-31 13:08:02.182: E/AndroidRuntime(1527): at android.app.ActivityThread.main(ActivityThread.java:6939) 08-31 13:08:02.182: E/AndroidRuntime(1527): at java.lang.reflect.Method.invoke(Native Method) 08-31 13:08:02.182: E/AndroidRuntime(1527): at java.lang.reflect.Method.invoke(Method.java:372) 08-31 13:08:02.182: E/AndroidRuntime(1527): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) 08-31 13:08:02.182: E/AndroidRuntime(1527): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199) 08-31 13:08:02.182: E/AndroidRuntime(1527): Caused by: java.lang.IllegalArgumentException: Unable to load native library: /data/app/cy.com.wagamama.ordercy-2/lib/arm/libWagaAppClient.so 08-31 13:08:02.182: E/AndroidRuntime(1527): at android.app.NativeActivity.onCreate(NativeActivity.java:182) 08-31 13:08:02.182: E/AndroidRuntime(1527): at com.embarcadero.firemonkey.FMXNativeActivity.onCreate(FMXNativeActivity.java:105) 08-31 13:08:02.182: E/AndroidRuntime(1527): at android.app.Activity.performCreate(Activity.java:6609) 08-31 13:08:02.182: E/AndroidRuntime(1527): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134) 08-31 13:08:02.182: E/AndroidRuntime(1527): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3104) -
Delphi 10.3.2 Android Application is Not Starting
Dave Nottage replied to MikeMon's topic in Cross-platform
You might want to wind your build tools back to 28.0.3. Other than that, use a logcat viewer to find out what errors have been thrown, if any. I have a logcat viewer called DeviceLens that's in development: https://github.com/DelphiWorlds/MiscStuff/blob/master/Test/DeviceLens.zip -
That's correct. There already is (in "beta"), however yes. Mosco is just macOS related.. Codex already does some "Android-y" things: https://www.delphiworlds.com/codex/ I am considering supporting creation of Application Bundles for that, however that's dependent on how much time I have.
-
Correct. Applications can be loaded to the App Store from the command line xcrun altool, e.g: https://medium.com/xcblog/xcodebuild-deploy-ios-app-from-command-line-c6defff0d8b8 I'm planning to add App Store upload functionality to Mosco: https://www.delphiworlds.com/2019/07/delphi-10-3-2-released-introducing-mosco/
-
Which part? In any event, I use them successfully in my own experts.
-
Parsing Google Search Results redux
Dave Nottage replied to David Schwartz's topic in Network, Cloud and Web
I doubt that's the reason Now that sounds more like a reason 😉 Having said that, if you're using text-based parsing it'd be possible to workaround the lack of a <body> tag. I started looking at doing this programmatically using TWebBrowser a few days ago. If I had more time, I'd continue with it -
When you say this, do you mean for a particular project, or for any? The IDE is known to "mess up" the .dpr if you modify certain parts of it. Examples of what can happen: https://stackoverflow.com/questions/758047/how-do-you-deal-with-ifdefs-in-dpr-uses-section https://stackoverflow.com/questions/6762194/how-to-prevent-delphi-modifying-its-dpr-project-source-unexpectedly https://stackoverflow.com/questions/317997/delphi-adding-r-res-in-the-dpr-file https://wiert.me/2018/12/20/do-not-put-ifdef-with-relative-paths-in-your-dpr-as-the-delphi-ide-cannot-match-them-in-the-dproj/
-
Thanks for the link! Pretty much describes what I said 🙂
-
Running the IDE in a VM on Mac Book Pro?
Dave Nottage replied to PeterPanettone's topic in General Help
Correct, however I did specify that I have a Mac. For a while I thought "well, that's ridiculous.. I have the Mac already, why would I want to run it in a VM?" 😉 -
Running the IDE in a VM on Mac Book Pro?
Dave Nottage replied to PeterPanettone's topic in General Help
My 2c: I have a MacBook Pro, and for Windows, VirtualBox has served me very well for > 7 years. I also use Parallels, however only for macOS VMs, because VirtualBox has been lagging behind in supporting newer versions of macOS. I use macOS VMs on macOS to test Delphi (and other software) against macOS betas and Xcode betas 🙂 -
I don't have time to help with this particular project, however for iOS and macOS you should be using Metal: https://developer.apple.com/documentation/metal?language=objc Which is what Delphi is moving towards (from 10.4, apparently)
-
"Easy" can be subjective 🙂 You'd need to have both the IDE search paths *and* the project paths. For the first, you could read the values from Search Path value for the appropriate platform in the Library subkey in the registry. For the second, you could obtain an IOTABuildConfiguration (for the relevant config) from the IOTAProjectOptionsConfigurations for the active project, and call GetValues for sUnitSearchPath (from DCCStrs). You'd also need to expand any macros in the paths. Then, starting from the project paths first, check each path (in order) for existence of the file. I think they have code for retrieving the paths somewhere inside CnWizards: https://github.com/cnpack/cnwizards
-
FireMonkey BLE Android BluetoothLE1.GetCharacteristic fail
Dave Nottage replied to pcplayer99's topic in Cross-platform
From the documentation: http://docwiki.embarcadero.com/Libraries/Rio/en/System.Bluetooth.Components.TBluetoothLE.GetCharacteristic "Warning: You must read the value of the AService.Characteristics property before you call GetCharacteristic. Otherwise, GetCharacteristic returns nil." -
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