John van de Waeter
Members-
Content Count
71 -
Joined
-
Last visited
-
Days Won
1
Everything posted by John van de Waeter
-
The bugreport on Chromium is from 2016 and does not seem to be solved yet. So yes, the only option is to implement taking photos in the app itself. Thanks for looking into it! John
-
I'm trying to wrap "www.trustroots.org" into a TWebbrowser. You would have to create an account to get to the profile/image page. It offers 2 buttons: Select a photo and Take a photo. Works okay in a browser Works okay in a TWebbrowser on iOS Does NOT work in a TWebbrowser on Android.
-
Thanks Dave. It was my impression that the embedded webbrowser would need the permission. nevertheless... The website with the photo-button works in every browser. The camera is started. When the website is opened in the TWebbrowser, the photo-button only offers the option to pick a photo from the gallery. John
-
Hi All, I have a TMapview and 12 markers. The position (Lat/Long) of these markers change every 0.5 seconds. Everytime I delete the Markers and add them with the new positions. This works OK on Android, but on iOS the app crashes the iPhone after about an hour. The iPhone gets completely frozen, no response to Screen Home-key and On/Off key anymore. After a while the iPhone automatically reboots. The deleting of the markers is done by Marker.DisposeOf. If I change to Marker.Remove, result is the same. I guess it is a memory issue inside the mapview. No errors are thrown if I use a try... except. Instead of recreating the Markers, I tried to set a new location using Marker.Descriptor.Position.Latitude:=..., but Delphi complains that "Left Side cannot be assigned to", so readonly. Is it really necessary to delete/recreate a marker when it's position is changed? Thanks, John
-
MarkDown, CodeInsight and Build Configuration sometimes buggy
John van de Waeter posted a topic in Delphi IDE and APIs
Hi All, (D11.3 on Windows 10) Occasionally, when I switch Target platform, the markdown does not work. It stays in the previous state. E.g. when I switch Target Platform from Windows to Android, the windows part of the code( between {$IFDEF MSWINDOWS} and {$ENDIF}) should go gray and the Android part should turn black. But it stays like Windows Target is still selected. Closing and reopening the unit solves the problem. CodeInsight sometimes looses track and after typing the dot after an objects name, it gives me all kinds of template-suggestions, but no object-properties. Closing and reopening the unit usually solves the problem. The lines on the lefthand side that nicely show the pairs of begin and end sometimes are shifted a couple of lines, Closing and reopening the unit usually solves the problem. Often when the Build Configuration is Release, it builds as if it's in Debug mode. The Compiling Dialog shows Debug. A couple of times switching between Debug and Release usually solves the problem. The last one :) Often when hitting F9, the messages window shows that a unit cannot be found. Always another arbitrary unit. Hitting F9 again, problem gone, compiles okay. All above smells (imho) a bit like some memory corruption? Or maybe the 6GB RAM I have is not enough? cheers, John -
Propagate vertical scroll gesture from a horizontal scrollbox to the underlying listbox?
John van de Waeter posted a topic in FMX
Hi All, I have this listbox with on each listitem a horizontal scrollbox. Works nice, except the a vertical scroll gesture on the horzscrollbox should propagate to the parent, the underlying listbox. I tried with a gesturemanager, and in the action I can scrollby() the listbox, but that's not a smooth solution... Is there a way to pass through the vertical scroll gesture to the parent? tia! John -
Hi All, When a user goes outdoor with his phone, network-connections may switch from WiFi to Mobile data. There's no problem when both networks are ipv4 or ipv6, but sometimes the WiFi is ipv6 and the Mobile data connection is ipv4, or vice versa. In that case, putting a hostname (in idUDPclient or idHttp) between square brackets (coming from ipv6) results in a "connection refused". Now this https://delphiworlds.com/download/libreachability-a-for-arm64/ does a nice job. It tells me that the networks has switched, so I can take appropriate action and check for ipv4 or ipv6 connection. Works great on Android 32 and 64, and probably IOS 32 bit (I cannot test). However, the library for IOS 64 bit (libReachability64) doesn't work anymore for IOS 64 bit. Compiling fails. Does anyone know if this library is updated so it can be used in Delphi 10.4.1 ? Or another way to be informed when network changes? tia! John
-
Delphi 11.2 and MacOS SDK 15.5
John van de Waeter replied to Stanislav Yotov's topic in Cross-platform
Yeah, probably. I managed to boost my MacVM, and the cache-update now took about 8 hours. Compiling and running an iOS app is ok. Deploying looks okay too, except for the last step: copying the ipa to the local iOSDevice64 directory. Delphi became unresponsive, high cpu-load, and I canceled the copying process after about an hour. But the ipa is on the Mac, ready to be deployed to the appstore 🙂 And here's the problem again... uploading to the AppStore (via Transporter) worked, but took more than 30 minutes... It's looks like it's the MacVM that has serious problems with networking/uploading.... from what I read on the net it's a Ventura issue, also on Mac hardware. -
Delphi 11.2 and MacOS SDK 15.5
John van de Waeter replied to Stanislav Yotov's topic in Cross-platform
I have exactly the same problem.... Does anyone know if it is possible to transfer SDK files from the Mac to Windows dev environment by using e.g. a USB-stick? -
decimalseparator Numberbox, Keyboardtype, Android, Galaxy
John van de Waeter posted a topic in Cross-platform
Fwiw.... The Numeric Keyboard types DecimalNumberPad, Numberpad and NumbersAndPuctuation on Android on Samsung Galaxy do not support the comma as a decimal separator. It's on the keyboard, but stays disabled, whatever regional settings are in use. Probably a Samsung/Android bug. Tthis could be important if the app is targeting european users. Workaround: Use keyboardtype Default instead -
Could not find Wizard ... FmuxLib.dll
John van de Waeter replied to efrain_angeles's topic in Delphi IDE and APIs
Ha, l'histoire se repête.... Delphi Alex 11.3 asked to remove the Alex 11.2 install. Okay. During install, the message "Cannot find fmuxlib.dll" popped up, but installation went well. Now pressed Start Working, and the message popped up again. It does boot up, everyhing seems to work. I remember installing this fmxlinux in my Delphi Pro 11.2 from GetIt, but couldn't find anything changed, nothing regarding to linux, and I forgot about it. To get rid of this message, I should install fmlinux again. But it's not visible (anymore) in GetIt. What registry setting to change so the message won't pop up again? tia, John -
Hi All, Using Delphi 11.2 The Android PermissionsService from System.Permissions seems to lack a permission for push-notifications, which is needed (afaik) for Android 13 and up. Without the permission, a valid device-token for FCM is generated, it's nicely registered at Google, and Google even says it succeeded when sending a push to this device, but the phone's app settings says that reception (or showing?) of push notification is blocked. If I turn it on in the apps settings, it works, but that is not a friendly method to tell my users.... So.. How to ask for and set this permission at runtime? tia! John
-
Android 13 ask permission for push notification
John van de Waeter replied to John van de Waeter's topic in Cross-platform
oops... my bad... post_notification needs an s at the end... It works! Thanks Dave and Programmer, for guiding me! 🙂 -
Android 13 ask permission for push notification
John van de Waeter replied to John van de Waeter's topic in Cross-platform
I did, the procedure was invoked, 1 GrantResult, but there was no dialog from Android to ask the user for permission. And it was NOT granted. -
Android 13 ask permission for push notification
John van de Waeter replied to John van de Waeter's topic in Cross-platform
Hi Dave, This I tried too, but the inner procedure (if AGrantresult[0]... ) is never called. Also weird that requesting permission to RECEIVE push notifications is calles POST_NOTIFICATIONS... -
Android 13 ask permission for push notification
John van de Waeter replied to John van de Waeter's topic in Cross-platform
I tried that, but Where 'XXXXXXXX'= ? Post_notifications is not a member of this class it seems? -
Hi Vfbb, I installed skia4delphi a couple of months ago, (not via GetIt) and I'm not sure if it's the latest version. Where can I see the installed version number? Tnx, John
-
TCP. Reduce sending and receiving to avoid mobile network latency.
John van de Waeter posted a topic in Indy
Hi All, I have an Indy tcp client and Indy tcp server, all working great. Yet I would like to reduce the connection time The "protocol" is as follows: Clients Connects Client sends size of idBytes (write Int32) Clients sends encrypted data (idBytes) containing command or question. Server receives and prepares answer Server encrypts answer Server sends size of answer (IdBytes, write int32) Server sends data (idBytes) Every sending of a packet induces radio-transmissions which have a long latency compared to a wired connection. When I download a picture I use on serverside: ... AContext.Connection.IOHandler.Write(astream,astream.Size,false); ... and on clientside: ... TCPClient.IOHandler.ReadStream(astream, -1, True) ... This sending and receiving of a stream has the possibility of specifying the size of the stream in the first bytes. My question: is it possible to send a TIdBytes with the size included? So the receiving end knows how many bytes to read, just like when using a stream? It would save one extra radio latency. Thanks in advance, John -
Hi All, The phone (iOS or Android) receives a push notification. The user taps the notification and the app is started or brought to front. It's nice behaviour if the app responds according to the notification. How to know if the app was started / brought to front via a tap on the notification? cheers, John
-
Hi All, I use Metal in a iOS FMX project like: if TUIScreen.Wrap(TUIScreen.OCClass.mainScreen).nativeScale=TUIScreen.Wrap(TUIScreen.OCClass.mainScreen).Scale then begin GlobalUseMetal:=true; GlobalEventDrivenDisplayUpdates:=false; GlobalPreferredFramesPerSecond:=60; end; I use Media-Camera action TakePhotoFromCamera OnDidFinishTaking and assign the bitmap to a TImage.Bitmap. This used to work okay, but now on Delphi11 it produces an image in which Red and Blue are interchanged. Same thing happens if I paste an image from the clipboard. Same thing happens if I get an image from the gallery. Image.Bitmap.Loadfromfile('animage.jpg') and dito .png works okay. If I turn off Metal, all is okay. Tested on iPhone5 and iPhone8. Any thougts? tia, John
-
iOS, Metal, Bitmaps, RGB becomes BGR?
John van de Waeter replied to John van de Waeter's topic in Cross-platform
Thanks VFBB, I'll give it a try! :) -
iOS, Metal, Bitmaps, RGB becomes BGR?
John van de Waeter replied to John van de Waeter's topic in Cross-platform
Hi VFBB, What is the minimal Android version supported? On Android 6 I get an OpenGLES error (3009)... Cheers, John -
Yes, Thanks Marc! :)
-
iOS, Metal, Bitmaps, RGB becomes BGR?
John van de Waeter replied to John van de Waeter's topic in Cross-platform
Sjordi, yes, I did. -
iOS, Metal, Bitmaps, RGB becomes BGR?
John van de Waeter replied to John van de Waeter's topic in Cross-platform
Done 🙂 I'm always modest and reluctant before reporting an issue, cause most of the time it turns out to be my mistake....