Android
57 topics in this forum
-
Здравствуйте, вашему вниманию представляется простенький пример показа подсказки. Вроде на форуме я такого не видел. uses FGX.Controls.Android,Android.Api.Widgets,Android.Api.ActivityAndView, FGX.Helpers.Android; type TfgAndroidControlHelper=class helper for TfgControl procedure ShowHint(AText:String); end; procedure TfgAndroidControlHelper.ShowHint(AText: String); var E:TJTextView; S:String; P:TJPopupWindow; R:Integer; begin E:=TJTextView.Create(TfgAndroidHelper.Context); //Создаем текст E.setGravity(TJGravity.CENTER);//Центрируем E.setTextColor(TJColor.YELLOW); //Там где зеленые деревья E.setBackgroundColor(TJColor.BLUE); //И золото на голубом E.se…
-
- 0 replies
- 73 views
-
-
hello, i tried to compile with android 64 bit target, but got stuck on the splash. this log with logcat android studio. device vivo v20 2021 android 11. Thank you log.txt
-
-
- 18 replies
- 241 views
- 1 follower
-
-
Добрый день, в Android 15 если на форме(фрейме) не важно, есть контент прикрепленный к нижней части формы, то он перекрывается системным меню андроида с кнопками навигации. Пока единственный выход увидел, это использовать OnSafeAreaChanged, но это не очень удобно, есть ли возможность автоматически как-то отключить такое поведение, ведь в 14 Android такого не наблюдалось.
-
- 1 reply
- 41 views
- 2 followers
-
-
1. How to access JSharedPreferences from FGXNative? 2. I tried: uses AndroidApi.Helpers, procedure TMyForm.fgFormShow(Sender: TObject); var Pref: JSharedPreferences; Value: string; begin inherited; Pref := TfgAndroidHelper.Context.; // error: activity not found maybe you are in service delphi Value := JStringToString(Pref.getString(StringToJString('email'), StringToJString(''))); fgEmailEdit.Text := Value; end; and it gives error. // error: activity not found maybe you are in service delphi 3. How to create an activity to access JSharedPreferences? 4. Or, how to write a file or…
-
-
- 4 replies
- 93 views
- 1 follower
-
-
Здравствуйте. Вашему вниманию предлагается простой пример определения тряски телефона. В данном примере тряска определяется после десяти потрясений. Спасибо. Shake.zip
-
- 0 replies
- 75 views
-
-
Hello, there is a helper in the library that can be used to verify that we have an internet connection and / or a Wi-Fi network, thank you.
-
-
- 4 replies
- 127 views
- 1 follower
-
-
hello, is there a function unit class to copy to clipboard from the text in the fgx component? For example, I will copy the text "0000 000 0000 0000" on the fglabel component. Thanks you
-
-
- 3 replies
- 86 views
- 1 follower
-
-
hello, i need explanation, i compile it with 64-bit target successfully, then i upload it to playstore. for android devices version 9+ there are no problems when installing. but device version < 10, application will crash when opened with a log like this. Delphi 11 thanks you logcrash.txt
-
-
- 6 replies
- 98 views
- 1 follower
-
-
Hello , I want to control my App installation using the Device unique identifier - for example i want my App to be installed one time / Per Device - . I know i can generate a unique device hash using the OS version … etc ; But unfortunately these info/details aren’t unique and can be edited / changed upon an OS upgrade , device rooting or even a factory reset . Android restricts the use of MAC UID , Apple too restricts the use of some high levels of APIs ; meaning till now there’s no reliable way . So please what do suggest to create a unique and reliable UID to fingerprinting a device ? Android : https://developer.android.com/training/articles/us…
-
- 2 replies
- 76 views
-
-
Здравствуйте. Некоторые пользователи Delphi 10.3 столкнулись с тем что даже при указании SDK 29 в манифесте проекта, при запуске скомпилированного приложения на платформе Android 10 происходило его падение. В августе 30 числа 2020 года было надо решение как пофиксить эту проблему. Переход на версию Delphi 10.4 не для всех является приемлемым решением, по разным причинам, к примеру у кого то платные компоненты и нет возможности обновиться до актуальных версий. Ниже представлен перевод статьи. В конце будет ссылка на оригинал. Приведенное здесь решение нацелено на обновление функции 'dlopen' в файле 'ICU.inc' (он включен в файл 'System.pas'). Вот шаги, необходимые…
-
-
- 4 replies
- 217 views
- 1 follower
-
-
Helo, with FMX i can get VersionName and VersionCode of my apps with code like this var PackageInfo: JPackageInfo; begin PackageInfo := SharedActivity.getPackageManager.getPackageInfo(SharedActivity.getPackageName,0); Memo1.Lines.Add(JStringToString(PackageInfo.versionName)); Memo1.Lines.Add(IntToStr(PackageInfo.versionCode)); end; How to create with fgx? Thanks
-
-
- 5 replies
- 183 views
- 1 follower
-
-
Hello, how to share image? is it already available on the FGX unit, please show me if there is one. on FMX I use the Actionlist category TShowShareSheetAction. with the code "ShowShareSheetAction1.Bitmap.Assign (image1.Bitmap);" thank you
-
-
- 10 replies
- 223 views
- 1 follower
-
-
How do you have a button to login to Facebook, Google or LinkedIn in FGX Native?
-
-
- 5 replies
- 110 views
- 1 follower
-
-
Hi On my Android development phone. If I deploy via IDE no problems. But if I install the apk directly on my phone. It installs an old version of my SQLite DB. if I inspect the apk the correct DB is inside the DB. I have uninstalled the app, rebooted the phone. If have the DB file set to skip is exists but the directory where the file should be is empty. I believe its the same DB as I deployed last time I installed from the apk rather than the IDE so I'm thinking it's unpacking to a cache where the old DB resides and because its set to skip if exits it does not replace the DB? Is there a setting I'm missing. This does not happ…
-
- 3 replies
- 84 views
- 1 follower
-
-
Hello, Has anyone tried using the Sunmi Device to print receipts on FGX. from Sunmi provides a sample using Android Studio. I don't have the ability to port the libraries on github to be used on FGX. if anyone wants to help me, I need it to be able to print a receipt with QRCode. https://github.com/shangmisunmi/SunmiPrinterDemo thank you
-
- 3 replies
- 135 views
- 1 follower
-
-
В 12 андроиде изменились требования к SplashScreen. Новое API - SplashScreen. Рекомендации к Kotlin и Java есть на странице разработчика. Кто-нибудь пробовал изменять в Delphi?
-
-
- 31 replies
- 659 views
- 2 followers
-
-
Hello I need to publish with Abdroid target version = 36 , but only available until 35, I'm using Delphi 12 with last FGX, id I change with project : <VerInfo_Keys>minSdkVersion=23;targetSdkVersion=36;package=com.MES.GestGarden;label=GestGarden;versionName=1.1.1;versionCode=4</VerInfo_Keys> I receive this message when upload app bundle to play store: 2 errors 2 version 3 code messages Error No users will be able to see this APK because one or more APKs with higher version codes have completely replaced it. Remove this APK from the version or review the version and segmentation codes of the APKs included in this version. Error Your application is currently targ…
-
-
- 2 replies
- 54 views
- 1 follower
-
-
Демка "Authentication - Biometric" шикарно работает на Android 12/13, но на Android 6 (Samsung Galaxy S5 mini) зависает намертво на этапе запуска приложения (лог в прикреплённом файле), просто висит на заставке и всё. Первым делом добавил в файл "\FGX Native\Samples\Authentication - Biometric\Templates\Android\AndroidManifest.xml" это разрешение: <uses-permission android:name="android.permission.USE_FINGERPRINT" /> ..., но ничего не изменилось. Я подозреваю, что в этом вся проблема: Но что с этим делать и как это можно исправить? 🥲 2025-03-12 184510.779 1489-4975 S.txt
-
- 3 replies
- 63 views
-
-
Hello, has anyone ever tried to install apk from fgx to the emulator. I just tried the andyroid.net emulator, so far the application has failed when first opened. Thanks.
-
-
- 14 replies
- 296 views
-
-
Hi I need to connect to usb device (fiscal printer) through usb. Is there any way to do it? I need to open usb (maybe a rs232 port) write sequences, do some reading and close Michal
-
- 1 reply
- 68 views
- 1 follower
-
-
Hello, Does anyone get a warning like this from your Playstore dashboard? I get this message on one of my apps in Playstore, what to do to solve the warning from Playstore? I need requestLegacyExternalStorage to save the screencapture results in internal storage. requestLegacyExternalStorage permission is only required on android type -11, whereas 11+ does not require requestLegacyExternalStorage permission. Thanks you
-
- 0 replies
- 43 views
- 1 follower
-
-
Столкнулся с непонятной ситуацией, не связанной с библиотекой FGX, но может кто-нибудь сталкивался с подобным и подскажет? Сохраняю копию БД в файл с расширением ".sql" (хотя это неважно - можно любое расширение использовать). В этом же приложении я вижу все сохраненные файлы и могу спокойно восстановить БД на момент сохранения. Но если удалить приложение и установить его позднее, то эти файлы приложение не видит, хотя вновь создаваемые видны. Весь смысл сохранения теряется (например, восстановить базу на новом устройстве уже нельзя). Сделал тестовое приложение для чтения файлов - тот же результат, не видит. Попробовал просто прочитать все файлы из папки - не видит.…
-
-
- 17 replies
- 333 views
- 2 followers
-
-
Добрый день. Никак не соображу как получить ИД устройства или хотя бы мак адрес для отправки уникального значения в БД, подскажите пожалуйста есть какой есть способ. Я так понял через Android.Api.ActivityAndView но не добился никаких уникальных данных. Заранее благодарю
-
- 7 replies
- 198 views
-
-
Всем здравствуйте. Вопрос не то, чтобы очень конкретный, а из области знаний по потокам вообще. Вот суть: На главной форме лежит фрейм. При выборе некоего пункта меню нужно сделать следующие шаги: 1. Закрыть дровер fgDrawerLayout1.Close; 2. Скрыть фрейм, который в данный момент лежит на форме if FActiveFrame <> nil then begin TfgAnimationHelper.HideForm(FActiveFrame,[TfgAnimationOption.ReleaseOnFinish]); FActiveFrame.Parent := nil; FActiveFrame := nil; end; 3. Загрузить в список Tlist имена файлов архивов, предварительно отсортировав их. Перед заполнением показываю модальную прозрачную форму с вращающимся индикатор…
-
-
- 3 replies
- 148 views
-
-
Delphi 10.4.2 работает с Android 5.1+. Как с FGX, так и с FMX. Вся проблема в корректных настройках SDK/NDK. Не забываем в AndroidManifest.xml удалить 'usesCleartextTraffic' на скринах корректные настройки
-
-
- 3 replies
- 126 views
- 2 followers
-
Recently Browsing 0
- No registered users viewing this page.