Android
57 topics in this forum
-
Helo, I capture images with the camera and then save them in the SharedPicturesPath folder. so that updates to the gallery I need to do broadcash delivery like this link. https://www.grokkingandroid.com/adding-files-to-androids-media-library-using-the-mediascanner/ how to do it on fgx? is it available in the fgx library? thanks.
-
-
- 4 replies
- 162 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
-
-
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
-
-
Добрый день, друзья. Благодаря вашей помощи, я практически начал понимать логику построения приложения, чему несказанно рад. Но Мобильное приложение не только набор формочек, кнопочек, и json-чиков, тянутых с просторов интернета. К сожалению, это дополнительные возможности, типа служб, пуш-уведомлений, определения местоположения, определение номера телефона, imei, deviceId На просторах интернета, можно встретить немало примеров, получение чего-то, с помощью AndroidApi. Но, там часто встречается , знакомое всем слово из трех букв -FMX Соответственно, хотел бы услышать Начальника транспортного цеха Ярослава, что по этому поводу можно делать.…
-
-
- 4 replies
- 166 views
-
-
Всем здравия! Я новичок, как в смысле использования FGX, так и вообще в работе с Delphi. Ранее кодил в лазаре в связке с LAMW. Мне очень нужен доступ к ACCESSIBILITY_SERVICE, а именно реализация примерно следующего метода: public void Speak(String _text) { AccessibilityManager manager = (AccessibilityManager) this.getSystemService(Context.ACCESSIBILITY_SERVICE); if (manager != null && manager.isEnabled()) { AccessibilityEvent e = AccessibilityEvent.obtain(); e.setEventType(AccessibilityEvent.TYPE_ANNOUNCEMENT); e.setClassName(getClass().getName()); e.setPackageName(this.getPackageName()); e.getText().add(_text); manager.sendAccessibilityE…
-
-
- 4 replies
- 107 views
- 2 followers
-
-
Здравствуйте. Некоторые пользователи Delphi 10.3 столкнулись с тем что даже при указании SDK 29 в манифесте проекта, при запуске скомпилированного приложения на платформе Android 10 происходило его падение. В августе 30 числа 2020 года было надо решение как пофиксить эту проблему. Переход на версию Delphi 10.4 не для всех является приемлемым решением, по разным причинам, к примеру у кого то платные компоненты и нет возможности обновиться до актуальных версий. Ниже представлен перевод статьи. В конце будет ссылка на оригинал. Приведенное здесь решение нацелено на обновление функции 'dlopen' в файле 'ICU.inc' (он включен в файл 'System.pas'). Вот шаги, необходимые…
-
-
- 4 replies
- 217 views
- 1 follower
-
-
Можно ли отловить HardwareBack на форме, которая в свою очередь лежит на основной форме?
-
-
- 3 replies
- 101 views
-
-
hello, I would like to get the state of the GPS / Location I currently use it in FMX like this: var LocationManagerObj: JObject; LocationManager: JLocationManager; begin LocationManagerObj := TAndroidHelper.Context.getSystemService( TJContext.JavaClass.LOCATION_SERVICE); LocationManager := TJLocationManager.Wrap(LocationManagerObj); Result := LocationManager.isProviderEnabled( TJLocationManager.JavaClass.GPS_PROVIDER ); I've already done some searches and still haven't found concrete to apply in this regard... I know I still have to learn a lot about FGX and how to use the resources. So far I've gotten this far: FJConnectivityManager…
-
-
- 3 replies
- 118 views
- 1 follower
-
-
Друзья! Бегло поискал по форуму и не нашел, может кто задавался уже вопросом?! Каким образом поменять цвет панели навигации андроида ( там где аппаратные кнопки навигации), а то стандартный белый не вяжется с общей концепцией приложения.
-
-
- 3 replies
- 104 views
- 1 follower
-
-
Всем здравствуйте. Вопрос не то, чтобы очень конкретный, а из области знаний по потокам вообще. Вот суть: На главной форме лежит фрейм. При выборе некоего пункта меню нужно сделать следующие шаги: 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
-
-
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
-
-
Здравствуйте. Использую процедуру сжатия картинки. Код следующий function ResizeBitmap(B:TfgBitmap;Sz:Double):TfgBitmap; var M:JMatrix; BA,BA1:JBitmap; tmpFileName :String; S:JFileOutputStream; begin BA:=TfgAndroidBitmapHandle(B.Handle).NativeBitmap; M:=TJMatrix.Create; if B.Width>B.Height then m.postScale(Sz/B.Width,Sz/B.Width) else m.postScale(Sz/B.Height,Sz/B.Height); TfgLog.Info('Post Scale'); BA1:=TJBitmap.createBitmap(BA,0,0,BA.getWidth,BA.getHeight,m,true); Result:=TfgBitmap.CreateFromNativeBitmap(BA1); tmpFileName := TPath.GetTempFileName+'.jpg'; Result.SaveToFile(tmpFileName); //Вот тут происходит ошибка end; В момент сохранения файла пр…
-
-
- 3 replies
- 142 views
-
-
Проект создавался с Целевой версией API: 28. AndroidManifest.template.xml: <uses-sdk android:minSdkVersion="<%fgx-min-sdk-version%>" android:targetSdkVersion="<%fgx-target-sdk-version%>" /> Где в настройках проекта можно изменить эти значения: fgx-min-sdk-version, fgx-target-sdk-version ? Android\Release\AndroidManifest.xml: <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" /> Android64\Release\AndroidManifest.xml: <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" /> Создал новые SDK профили: Andriod SDK 26.1.1 32-bit, Andriod SDK 26.1.1 64-bit. Компиляция с целевой платфо…
-
- 3 replies
- 113 views
- 1 follower
-
-
Hello, how can I obtain the ip address of my mobile device under Android? Thanks a lot for your support!
-
-
- 3 replies
- 107 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
-
-
Здравствуйте --- Спасибо. Popup.7z
-
-
- 3 replies
- 163 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, 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 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
-
-
Добрый день. Нет ли у кого примера, как переопределить UncaughtExceptionHandler Хотелось бы сделать авторестарт аpp , если каршится приложение. Спасибо.
-
- 2 replies
- 73 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
-
-
Здравствуйте. Подскажите пожалуйста как сделать отображение иконок на устройстве на полную? Как у Яндекса например:
-
-
- 2 replies
- 80 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
-
-
Добрый вечер, подскажите пожалуйста, можно ли как-то изменить данный цвет (вокруг полоски жестов)? ◾ К примеру, на главном экране телефона этот цвет (вокруг полоски жестов) прозрачный, а сама полоска чёрная: Ещё пример:
-
- 1 reply
- 84 views
- 1 follower
-
Recently Browsing 0
- No registered users viewing this page.