-
Content Count
1613 -
Joined
-
Last visited
-
Days Won
37
Everything posted by Dave Nottage
-
java problem starting the blank android application
Dave Nottage replied to dlucic's topic in Cross-platform
Delphi 12.1 (no XE in its title) requires the Eclipse Temurin OpenJDK. You can install it via the Delphi menu - Tools | Manage Features - on the right side, scroll the scrollbox all the way to the bottom, check the checkbox for the OpenJDK and click Apply. Once installed, go to the Java tab of the Android SDK settings and configure keytool.exe and jarsigner.exe options to use the OpenJDK (installs by default under C:\Program Files\Eclipse Adoptium.- 4 replies
-
- android
- delphi xe12
-
(and 1 more)
Tagged with:
-
Android: Minimal app throws exception 10, when adding certain uses-features (CAMERA). (never used or linked in code yet)
Dave Nottage replied to Rollo62's topic in Cross-platform
Seems to me that the info is contradictory - the uses-permission is stating that permission to use the camera may be requested (on Android 6 or higher), but the uses-feature entries are stating that the app doesn't require a device with a camera? EDIT: Even so, having those entries in the manifest works fine for me. -
Android: Minimal app seems to require: "android.permission.INTERNET"
Dave Nottage replied to Rollo62's topic in Cross-platform
A bit of speculation on my part, but it's possibly a hangover from when Delphi required gdbserver for debugging. The Internet permission is a bit of a misnomer, since it "Allows applications to open network sockets". This part I know from when debugging was broken in Android 8: There is a private IP network between the IDE and gdbserver -
I expect your install of Delphi 12.1 is misconfigured. Try creating a blank app and deploy it to a device.
-
That issue was fixed before the release of Delphi 12. You may be experiencing this issue.
-
Android 15 and edge-to-edge enforcement
Dave Nottage replied to alejandro.sawers's topic in Cross-platform
You could just leave AndroidManifest.template.xml as it is (for now) - is there some reason you need to target API level 35? If you really need to, you could use code from Kastri to implement a workaround, thus: uses DW.UIHelper, DW.Android.Helpers; { TForm1 } procedure TForm1.FormResize(Sender: TObject); begin // This method is used because the device might have Android 15, but the targetSdkVersion might be lower. Use conditionals if targeting other platforms if TAndroidHelperEx.CheckBuildAndTarget(35) then begin Padding.Top := TUIHelper.GetStatusBarOffset; // "Cheat" method for determining whether Portrait or Landscape if Screen.Width < Screen.Height then Padding.Bottom := TUIHelper.GetNavigationBarOffset else Padding.Bottom := 0; end; end; If you don't want to drag the dependent units from Kastri into your app, you could extract the parts of the code that you need. -
This should be: if TJCardLink.JavaClass.isNfcEnabled(context) then // Take whatever action needed if NFC is enabled
-
That's a different scenario to what you first described. What issues? These days Xcode has only the SDKs that are shipping at the time of the release of that version of Xcode. If you're using the Community Edition (as indicated in your Delphi Praxis profile), it should work with the current version of Xcode anyway, so it might be easier to resolve the issue you mentioned.
-
Do you mean SDK Manager? The transfer process does not re-transfer anything that already exists. Even if it did, I expect that would be a problem only if it takes a long time to transfer them.
-
Delphi 11.3 issue with iOS Today Extension widgets
Dave Nottage replied to Chris Pim's topic in Cross-platform
Anyone who is interested in the work in progress (which is being tested now) should message me privately. -
Android upcoming 16 KB page sizes support
Dave Nottage replied to alejandro.sawers's topic in Cross-platform
A perfect scenario to add to the Quality Portal. Make sure you first search for any existing reports 🙂 -
Yes, to both. Have you tried another URL?
-
Using a URL I can reach, the code works fine for me
-
Your example code does not have any calls to Assign or Reset. Having said that, why are you using long deprecated file access methods? TStringList has LoadFromFile and SaveToFile methods. It might help to show an example that focuses just on GetDocumentsPath and the file access parts, if that's what is failing
-
Delphi 11.3 issue with iOS Today Extension widgets
Dave Nottage replied to Chris Pim's topic in Cross-platform
I had not actually read Chris' article - I was aware of most of the process, however I did not realise the issues regarding building for App Store. That puts a whole new slant on things. I'd like to be able to automate as much as I can (via Codex/Mosco) That's great! I'm sure to need testers and feedback. -
Looking at the differences in the source code for FMX.InAppPurchase.Android.pas between Delphi 11.3 and 12.1, I'd say yes.
-
Delphi 11.3 issue with iOS Today Extension widgets
Dave Nottage replied to Chris Pim's topic in Cross-platform
Yes... ...if by: "image in the payload", you mean: "a url to an image in the payload" As inferred in the earlier messages, doing so in a Push Notification is possible only by using an App Extension (in this case, a Notification Service extension) which needs to be an Xcode project. I've been ruminating over the best way to make the process as painless as possible, by providing a template Xcode project of which hopefully only a couple of properties need to be changed to match the Delphi project. As with other projects that require the user to follow a bunch of steps to integrate the solution, I'm apprehensive over the number of inevitable enquiries as to how to make it work. -
I'm unable to reach that URL at all.
-
EArgumentOutOfRangeException when Scrolling a TEdit out of View in a TVertScrollBox
Dave Nottage replied to rorix56148's topic in FMX
Now I can reproduce the problem. Might be to do with the number of controls and/or alignments. I suggested reporting the bug. -
EArgumentOutOfRangeException when Scrolling a TEdit out of View in a TVertScrollBox
Dave Nottage replied to rorix56148's topic in FMX
Using the arrangement you described, I am still unable to reproduce this.. ..using the same version of Delphi. -
Please keep the profanity out. Delphi treats the constant in that statement as a set. See this.
-
MSBuild Error "CreateAndroidManifestFile" task failed - path's format not supported
Dave Nottage replied to Marinus's topic in Cross-platform
They may mean in the Project Options - these are the defaults: -
EArgumentOutOfRangeException when Scrolling a TEdit out of View in a TVertScrollBox
Dave Nottage replied to rorix56148's topic in FMX
I tried reproducing it using your steps, and was unable to. What version of Delphi? -
Yes, as I've used CocoaPods to download SDKs before. It will be easier though if they have a direct download of their SDK. Which SDK is it?
-
RAD Studio does not recognize an Android device like Xiaomi Mi Max 3.
Dave Nottage replied to dmitrybv's topic in Cross-platform
Possibly, via Tools | Manage Features: Ensure the OpenJDK is installed. (right hand side, scroll all the way down). If it is not, select it, and click Apply. Deselect the SDK/NDK, and click Apply Reselect the SDK/NDK, and click Apply. During these steps, you might need to re-open Tools | Manage Features. I can't remember if it closes after clicking Apply.