

John van de Waeter
-
Content Count
83 -
Joined
-
Last visited
-
Days Won
1
Posts posted by John van de Waeter
-
-
Looks like not much of Android development files are installed....
You may want to try to reinstall (Tools/Manage features)
-
Hi All,
Not sure if this is the right forum...
On the deployment page of my Android project I see a greyed out file LibSkia4Delphi.so. The file cannot be found.
It points to a directory ....../CatalogRepository/Skia4Delphi-3.3.1/...... which does not exist on my dev machine.
A search to the lib libSkia4Delphi.so gave no results.
I can enable/disable Skia in the project, but no errors about missing files are reported.
I did notice the files in program files (x86)..../23.0/... binandroid64 and in ../binandroid, both named libsk4d.so, but since these files are dated in 2023 I think they belong to an older version of Delphi/Skia....
Should I reinstall Skia4Delphi from Github?
-
Hi All,
I get this message "Cannot find style resource for iOS 15" when I try to rightclick an editbox on the application's mainform and select "Edit custom style".
My SDK points to iPhoneOS 18.2. No Style editor is opened.
When I doubleclick the stylebook component on the mainform, only Default and Android Light are shown in the platform combobox.
Any idea where to look or how to fix this?
using D12.3
tia, John
-
2 hours ago, Brian Evans said:That sounds like the OS/keyboard is retyping content into the edit control. The edit does go back to being empty and then having 1,2,3 etc characters in it just within a short period of time.
Yes, it looks somewhat in that direction, given the fact that another keyboard (GBoard) does not have the problem.
2 hours ago, Brian Evans said:One thought: keep track of the last partial search string and start/reset a short timer in the OnXXX events. When the timer event triggers check if the edit content is not equal to what was last searched for and update the search as appropriate. This gives time for the OS/keyboard to be done changing the edit contents before you use it's contents in your search.
Yes, I made something similar. Not using the events ,nor a timer, but polling the text from the editbox in the app's OnIdle event. Kinda dirty, but it works :)
-
3 minutes ago, Olli73 said:Makes it no difference if you use platform or fmx edit?
Nope. Platform style doesn't fire the OnTyping event.
-
The problem is that the events OnTyping , OnValidating , OnChangeTracking, OnKeyUp, OnKeydown ALL are fired as many times as there are characters in the EditBox.
That is, on my Galaxy 21, Android 15.
I could work around it if I would know how many characters are in the EditBox, like length(editbox.text), but inside the eventhandler, that number gives me 0,1,2,3,4,.. NOT the actual length of the contents of the editbox.
Is there a way to access the underlying editbox, in which on screen I can clearly see e.g. 6 characters, that gives me a "6"?
In that case I could count the number of events and know which one is the last one and act upon it. -
Yes, I know... thanks for thinking with me 🙂
-
Hmm... It's one of the most used android phones... anyway, I noticed on a friends' Galaxy/Android 13 the TEdit with the OnTyping event has issues as well...
Time to figure out just another workaround...
-
So you told them to buy another phone?
-
I just did, and another keyboard like this GBoard seems to work okay...
However, it would be strange to tell my users to install another keyboard...
-
Hi All,
Just noticed. The OnTyping event is fired differently depending on the Android version.
I have a TEdit that is used for incremental text searching.
The user types, I use the OnTyping event to read the text from the TEdit and use this text to scan a table for keywords.
Works okay on Windows, Mac, iOS and Android 12 (Samsung Galaxy Tablet).
On all targets, the Ontyping event is fired once for every typed character.
On my Galaxy S21, Android 15, however, the event is fired again and again for the length of the typed text.
So if I type 'tha'
I should have 3 events. Edit.text = 't', edit.text='th' edit.text='tha'.
On my Galaxy S21, Android 15, I get 6 events:
type the t: 1 event fired: edit.text ='t'
type the h: 2 events fired: edit.text='t', immeditaely followed by edit.text='th'
type the a: 3 events fired: edit.text='t', edit.text='th', edit.text='tha'.
So as many events as the length of the typed text. This continues until the user types a space.
In that case only one event is fired and inside this event, edit.text equals the contents of the Tedit. As expected.
My dev: Delphi 12.3, Android 25.2.5 both 32 and 64 bit
Unfortunately I don't have more Android devices to test...
Is this a problem in Android 15?
tia,
John
-
Hi All,
Delphi 12.2, iOSUsing a TMemo for user input did NOT show the word suggestions on the virtual keyboard.
(predictive suggestions says Apple). Using Controltype PLATFORM instead of STYLED for the TMemo solved the issue.
Just in case you have complaints from users, like I had... :)
John -
After hours of comparing between the debug and the release version.....
I found that somehow 3 files in the deployment table got unchecked. No idea how that happened, but it did. After checking those files again, everything worked as expected.-
1
-
-
This error when deploying for Android64, Delphi 12.2.1.
[PAClient Error] Error: E8712 Picked up JAVA_TOOL_OPTIONS:
The is no system variabele like JAVA_TOOL_OPTION
Strange thing is: building and deploying a debug-version works ok...
Anyone have an idea?
-
Thanks Vinícius
🙂
BTW I noticed that the OnPaint event of the image is fired continuously as the image is scrolled in the visible part of the Listbox. I would have thought that if the size of the image is unaltered, the showing bitmap should not need to be repainted, only moved. But I'm not an expert on this....
-
17 hours ago, Dave Nottage said:(Using Windows: download, and try to open) to replicate it themselves.
I used WinZip to unzip the archive, which allowed me to skip files with bad filenames.
I figured if those filenames are not allowed in Windows, these files are probably not used anyway.
It worked.
ps, Dave, if I have questions about Kastri, should I ask them here?
-
12 minutes ago, Vanar said:Hi, John
I didn't find a normal solution
I temporarily solved the problem like this:
They give me a ready-made authorization key: ya29.c.c0ASRK0Ga_4Z1QIYsqufOCVdT ...., created on the server using PHP
And I slip it into my request ...Lol....
I too had a hard fight to send those notifications to the v1-google fcm server.... I never realized that the converting part (apns->fcm) also required this new approach...
Having apps online that suddenly don't receive pn's anymore forces one to be creative....I'm now trying the Kastri-path.
-
Yep, lots of other code in this file. But it contains the original firebase.zip, which in turn has the same problem....
-
On 10/14/2024 at 9:37 PM, Dave Nottage said:See this documentation. Authorization is now via an OAuth2 token - there is a link in the documentation to details about methods for obtaining the token.
Dave,
I'm trying Kastri now. Again 🙂One thing I must do is download a copy of firebase.zip (SDK for iOS) from github. But both 11.2.0 as 11.3.0 give me an error when I try to unzip them: Invalid Zip-file. Tried on both win10 and win11.
I tried to ask a question in the issues section of this github-repo, but my question does not appear in the discussion. Dunno why, no error reported.
So I'm trying here: do you know an alternative to download this firebase.zip?
Thanks,John
-
I wonder why Google and Apple are making things more difficult.... :/
-
Hi Vanar,
I'm facing the same problem... did you find a solution?cheers, John
-
Found it. Mea culpa.
In delphi 12.0 I applied a patch in FMX.Platform.iOS, like adding this line: WindowManager.RootViewController.Super.init;as per
and thereby saving that file in the source-dir of my project. It nicely copied into the new source-dir, I didn't notice.)
Removing the file from my source-dir did the job.
John
-
2
-
-
Alejandro, thanks.
Tools, Manage Features.
An uninstall followed by an install of the Android SDK did the job.
cheers,
John
-
Hi All,
just installed 12.2 after the installer uninstalled 12.1.
The Android SDK manager reports some missing stuff. SDK Base Path, adb.exe location and SDK API level location have an error indicator.
I noticed there are several files and directories missing (the new 2525-23.0.53571.9872 compared to the new 2525-23.0.50491.5718).
What to do?cheers,
John
Location of Skia files?
in FMX
Posted
Ok, found the culprit. This is what happens when you just copy your project to the next version of Delphi.