Anna Blanca 1 Posted 20 hours ago (edited) Hi. I maked sample Android Service, and is's worked normal, but when i added component TTimer on the Android Service form, my app freezed and crashed. What i'm doing wrong? I attach archive whith project of my app, here: Edited 20 hours ago by Anna Blanca Share this post Link to post
ToddFrankson 14 Posted 10 hours ago (edited) https://stackoverflow.com/questions/75470747/delphi-10-4-1-service-in-android-app-with-timer You need to use the native timer to android in a service Edited 10 hours ago by ToddFrankson 1 Share this post Link to post
Dave Nottage 634 Posted 9 hours ago 10 hours ago, Anna Blanca said: TTimer on the Android Service form, my app freezed and crashed It's a long standing issue that a service cannot use the FMX.Types unit (directly or indirectly). As per the SO link that Todd referred to, you could use TAndroidTimer from this unit. (which does not use any FMX.xxx units) Share this post Link to post
Anna Blanca 1 Posted 8 hours ago 55 minutes ago, Dave Nottage said: Согласно ссылке SO, на которую ссылался Тодд, вы можете использовать TAndroidTimer этого подразделения What's TAndroidTimer? So, I need Indy components too, and TNetHTTPClient, and more other components. Share this post Link to post
Dave Nottage 634 Posted 8 hours ago 21 minutes ago, Anna Blanca said: What's TAndroidTimer? It's in the link that you quoted from my reply. 22 minutes ago, Anna Blanca said: I need Indy components too, and TNetHTTPClient, and more other components. Indy and TNetHTTPClient do not use FMX units, so those will be OK. Share this post Link to post