Android
57 topics in this forum
-
Всем здравствуйте. Вопрос не то, чтобы очень конкретный, а из области знаний по потокам вообще. Вот суть: На главной форме лежит фрейм. При выборе некоего пункта меню нужно сделать следующие шаги: 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
-
-
Здравствуйте. Использую процедуру сжатия картинки. Код следующий 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
-
-
Здравствуйте, появилась необходимость получить список установленных приложений на устройстве Android. Есть пример на Java на данном сайте https://devofandroid.blogspot.com/2018/02/get-list-of-user-installed-apps-with.html private List<AppList> getInstalledApps() { PackageManager pm = getPackageManager(); List<AppList> apps = new ArrayList<AppList>(); List<PackageInfo> packs = getPackageManager().getInstalledPackages(0); //List<PackageInfo> packs = getPackageManager().getInstalledPackages(PackageManager.GET_PERMISSIONS); for (int i = 0; i < packs.size(); i++) { PackageInfo p …
-
-
- 5 replies
- 141 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
-
-
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
-
-
Delphi 10.4.2 работает с Android 5.1+. Как с FGX, так и с FMX. Вся проблема в корректных настройках SDK/NDK. Не забываем в AndroidManifest.xml удалить 'usesCleartextTraffic' на скринах корректные настройки
-
-
- 3 replies
- 126 views
- 2 followers
-
-
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
-
-
Здравствуйте. Хочу добавить оплату по картам. Выбрал для этого сервис Яndекс.Кaccа. Они предоставляют Android SKD. Как мне подключить их сдк и как к нему обращаться? Есть у кого опыт?
-
- 6 replies
- 113 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
-
-
How do you have a button to login to Facebook, Google or LinkedIn in FGX Native?
-
-
- 5 replies
- 110 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
-
-
Всем здравия! Я новичок, как в смысле использования 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
-
-
Друзья! Бегло поискал по форуму и не нашел, может кто задавался уже вопросом?! Каким образом поменять цвет панели навигации андроида ( там где аппаратные кнопки навигации), а то стандартный белый не вяжется с общей концепцией приложения.
-
-
- 3 replies
- 104 views
- 1 follower
-
-
Можно ли отловить HardwareBack на форме, которая в свою очередь лежит на основной форме?
-
-
- 3 replies
- 101 views
-
-
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
-
-
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, 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
-
-
Добрый вечер, подскажите пожалуйста, можно ли как-то изменить данный цвет (вокруг полоски жестов)? ◾ К примеру, на главном экране телефона этот цвет (вокруг полоски жестов) прозрачный, а сама полоска чёрная: Ещё пример:
-
- 1 reply
- 84 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
-
-
Добрый день. При выкладке приложения в Google Play увидели такую проблему: Подскажите, пожалуйста, что с этим делать? Используем Delphi 12.2 SDK 26.1.1 NDK 21 (как стояла по умолчанию)
-
-
- 8 replies
- 81 views
- 2 followers
-
-
Здравствуйте. Подскажите пожалуйста как сделать отображение иконок на устройстве на полную? Как у Яндекса например:
-
-
- 2 replies
- 80 views
-
-
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
-
-
Здравствуйте. Вашему вниманию предлагается простой пример определения тряски телефона. В данном примере тряска определяется после десяти потрясений. Спасибо. Shake.zip
-
- 0 replies
- 75 views
-
-
Is there a way to create JLocalSocket?
-
-
- 1 reply
- 74 views
- 1 follower
-
-
Добрый день. Нет ли у кого примера, как переопределить UncaughtExceptionHandler Хотелось бы сделать авторестарт аpp , если каршится приложение. Спасибо.
-
- 2 replies
- 73 views
- 1 follower
-
Recently Browsing 0
- No registered users viewing this page.