adrianosantostreina / mobilepermissions Goto Github PK
View Code? Open in Web Editor NEWThis is a component to turn more easy the request permission in Android 8.x or later.
License: MIT License
This is a component to turn more easy the request permission in Android 8.x or later.
License: MIT License
Hi,
Thank you for share this component, very useful.
I have error on android 5.1 after MobilePermissions1.Apply;
" '5.1' is not a valid integer value. "
it's probably on procedure TMobilePermissionsAndroid.SetAndroidVersion;
FAndroidVersion := StrToInt(VVersionOSStr);
there is a alternative and easy way to find android version
System.SysUtils.TOSVersion.Major; (return Integer like 4,5,6,7,8,9,10)
more info: https://forums.embarcadero.com/thread.jspa?threadID=183785
D:\XE_Kj\MobilePermissions\Package\Android\Release\MobilePermissions.Component.hpp(39,55): error E2017: expected a class or namespace
D:\XE_Kj\MobilePermissions\Package\Android\Release\MobilePermissions.Component.hpp(39,55): error E1558: reference to 'Fmx' is ambiguous
c:\xe7\include\android\fmx\FMX.TreeView.hpp(36,10): error E3056: candidate found by name lookup is 'Fmx'
D:\XE_Kj\MobilePermissions\Package\Android\Release\MobilePermissions.UsesPermissions.FMX.Signature.hpp(26,10): error E3056: candidate found by name lookup is 'Mobilepermissions::Usespermissions::Fmx'
D:\XE_Kj\MobilePermissions\Package\Android\Release\MobilePermissions.Component.hpp(39,67): error E969: expected class name
D:\XE_Kj\MobilePermissions\Package\Android\Release\MobilePermissions.Component.hpp(41,9): error E2017: expected a class or namespace
D:\XE_Kj\MobilePermissions\Package\Android\Release\MobilePermissions.Component.hpp(41,9): error E1558: reference to 'Fmx' is ambiguous
c:\xe7\include\android\fmx\FMX.TreeView.hpp(36,10): error E3056: candidate found by name lookup is 'Fmx'
D:\XE_Kj\MobilePermissions\Package\Android\Release\MobilePermissions.UsesPermissions.FMX.Signature.hpp(26,10): error E3056: candidate found by name lookup is 'Mobilepermissions::Usespermissions::Fmx'
Hi
Wonderful idea - hope I can make it work: I placed the component on a form and selected the rights I need, but when the software runs on Android is does not ask for the permissions. Do I have to do somethimg like a check before ?
Additionally I need the microphon permission which I can't find in the list.
Advice appreciated
Michael
MobilePermissions.Component
Highlights as an error.
I installed it as an administrator and normally --- same behavior.
MobilePermissions.Component not found -- and of course, nothing works after that.
This is using your demo. (One Drive is disabled for compiles)
C:\Users\davew\OneDrive\Documents\Embarcadero\Studio\22.0\CatalogRepository\MobilePermissions-2.1\Demos\Tests\UntMain.pas(8,98): error F2613: F2613 Unit 'MobilePermissions.Component' not found.
unit UntMain;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, MobilePermissions.Model.Signature,
MobilePermissions.Model.Dangerous, MobilePermissions.Model.Standard, MobilePermissions.Component,
FMX.Controls.Presentation, FMX.StdCtrls, System.Math.Vectors, FMX.Controls3D,
FMX.Layers3D, FMX.ListBox, FMX.Layouts;
This only shows Win32 as only supported platform on component toolbar. Compiling does not work for Android target builds. Strange that an Android specific component is only supported for the Win32 platform. It worked on the trial version of Delphi 11 but not on the registered version 11.2.
Hi I have tried:
{$IFDEF ANDROID} MobilePermissions.Model.Signature, MobilePermissions.Model.Dangerous,
MobilePermissions.Model.Standard, MobilePermissions.Component,{$ENDIF}System.IOUtils;
Which works on Android.
When I switch platforms the uses are added again
{$IFDEF ANDROID} MobilePermissions.Model.Signature, MobilePermissions.Model.Dangerous,
MobilePermissions.Model.Standard, MobilePermissions.Component,{$ENDIF}System.IOUtils,
MobilePermissions.Model.Signature, MobilePermissions.Model.Dangerous,
MobilePermissions.Model.Standard, MobilePermissions.Component;
How do I correct this please.
5.1.1 is not a valid integer value
Hello i have a little problem when i try to apply the permission on android 10 i have the message '' is not a valid integer value with your demo on delphi 10.4
Error on compilation
[dcc32 Error] MobilePermissions.Permissions.Android.pas(81): E2250 There is no overloaded version of 'RequestPermissions' that can be called with these arguments
[dcc32 Fatal Error] MobilePermissions.Permissions.Factory.pas(7): F2063 Could not compile used unit 'MobilePermissions.Permissions.Android.pas'
ao compilar a aplicação para android nas versões XE8 e XE10.2 apresenta erro em
mobilepermissions.JNI.Os - JJManifest_permissionClass;
[DCC Error] MobilePermissions.UsesPermissions.FMX.Base.pas(97): E2003 Undeclared identifier: 'TJManifest_permission'
o que pode ser falta instalar algo?
Hi your component is awesome by the way.
I cannot find for android11 to ACCESS_BACKGROUND_LOCATION using this component could I request to add this feature on your next build version 0.6 much appreciated if this will be implemented thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.