FMX MobilePermissions component for Android

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
MobilePermissions component for Android

This is a component to turn more easy the request permission in Android 8.x or later. With just a few lines of code it is possible to facilitate this work in mobile Android applications.

# How to use (Mode 1)?
1. Drop a component to form (Tool Palette TDevRocks)
2. Select the permission that you want to request to Android in your project mobile.
3. Run your app in Android.

# How to use (Mode 2)?
1. Drop a component to form (Tool Palette TDevRocks)
2. Type the following code:
Код:
procecure TForm1.OnCreate(Sender: TObject);
begin
  MobilePermissions1.[CATEGORY].[Permission] := True;
  MobilePermissions1.Apply;
end;
E.g.:
Код:
procedure TForm1.Button1Click(Sender: TObject);
begin
  MobilePermissions1.Dangerous.CAMERA := True;
  MobilePermissions1.Standard.AccessNetworkState := True;
  MobilePermissions1.Apply;
end;
3. Run your app in Android.

How to install?
  1. Open Delphi. Open in administrator mode if necessary.
  2. Open MobilePermissions package file ($Path)\Package\MobilePermissions.dpk
  3. Right click in MobilePermissions.bpl in Project Manager and select Clean
  4. Right click in MobilePermissions.bpl in Project Manager and select Build
  5. Right click in MobilePermissions.bpl in Project Manager and select Install
P.s. If the Install menu does not showing in context menu then select Windows 32-bit in Project Manager and click right button again.
1615667944374.png
 

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
MobilePermissions component for Android v0.4 2021-03-12
Скрытое содержимое могут видеть только пользователи групп(ы): Premium, Местный, Свои