Skip to content
View in the app

A better way to browse. Learn more.

FGX Native

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Android

Subforums

    • 96 posts
    Michal,
  1. Всем здравствуйте. Вопрос не то, чтобы очень конкретный, а из области знаний по потокам вообще. Вот суть: На главной форме лежит фрейм. При выборе некоего пункта меню нужно сделать следующие шаги: 1. Закрыть дровер fgDrawerLayout1.Close; 2. Скрыть фрейм, который в данный момент лежит на форме if FActiveFrame <> nil then begin TfgAnimationHelper.HideForm(FActiveFrame,[TfgAnimationOption.ReleaseOnFinish]); FActiveFrame.Parent := nil; FActiveFrame := nil; end; 3. Загрузить в список Tlist имена файлов архивов, предварительно отсортировав их. Перед заполнением показываю модальную прозрачную форму с вращающимся индикатор…

  2. Здравствуйте. Использую процедуру сжатия картинки. Код следующий 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; В момент сохранения файла пр…

      • Like
    • 3 replies
    • 142 views
  3. Здравствуйте, появилась необходимость получить список установленных приложений на устройстве 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 …

  4. Started by gats,

    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

  5. Started by MoreWood,

    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.

  6. Delphi 10.4.2 работает с Android 5.1+. Как с FGX, так и с FMX. Вся проблема в корректных настройках SDK/NDK. Не забываем в AndroidManifest.xml удалить 'usesCleartextTraffic' на скринах корректные настройки

  7. 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…

  8. Started by k0de,

    Здравствуйте. Хочу добавить оплату по картам. Выбрал для этого сервис Яndекс.Кaccа. Они предоставляют Android SKD. Как мне подключить их сдк и как к нему обращаться? Есть у кого опыт?

    • 6 replies
    • 113 views
  9. Проект создавался с Целевой версией 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. Компиляция с целевой платфо…

  10. How do you have a button to login to Facebook, Google or LinkedIn in FGX Native?

  11. Hello, how can I obtain the ip address of my mobile device under Android? Thanks a lot for your support!

  12. Всем здравия! Я новичок, как в смысле использования 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…

  13. Друзья! Бегло поискал по форуму и не нашел, может кто задавался уже вопросом?! Каким образом поменять цвет панели навигации андроида ( там где аппаратные кнопки навигации), а то стандартный белый не вяжется с общей концепцией приложения.

  14. Можно ли отловить HardwareBack на форме, которая в свою очередь лежит на основной форме?

      • Thanks
      • Like
    • 3 replies
    • 101 views
  15. 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

  16. 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…

  17. Started by gats,

    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

  18. Guest Pavel Suprunchuk

    Добрый вечер, подскажите пожалуйста, можно ли как-то изменить данный цвет (вокруг полоски жестов)? ◾ К примеру, на главном экране телефона этот цвет (вокруг полоски жестов) прозрачный, а сама полоска чёрная: Ещё пример:

  19. 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…

  20. Started by Mineev,

    Добрый день. При выкладке приложения в Google Play увидели такую проблему: Подскажите, пожалуйста, что с этим делать? Используем Delphi 12.2 SDK 26.1.1 NDK 21 (как стояла по умолчанию)

  21. Здравствуйте. Подскажите пожалуйста как сделать отображение иконок на устройстве на полную? Как у Яндекса например:

      • Like
    • 2 replies
    • 80 views
  22. 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
  23. Здравствуйте. Вашему вниманию предлагается простой пример определения тряски телефона. В данном примере тряска определяется после десяти потрясений. Спасибо. Shake.zip

    • 0 replies
    • 75 views
  24. Started by Michal,

    Is there a way to create JLocalSocket?

  25. Добрый день. Нет ли у кого примера, как переопределить UncaughtExceptionHandler Хотелось бы сделать авторестарт аpp , если каршится приложение. Спасибо.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.