firemonkey

How to code read sms messages from android kitkat Delphi XE8

孤街浪徒 提交于 2019-12-12 03:29:54
问题 I would appreciate some help in finding a working code for reading sms messages, on android kitkat. I am aware that the app has to be a default sms app with relevant permissions. I really don't want to annoy the user with any popup dialog requesting that the user manually selects the default sms app. I would like my app to perform as the default sms until its task is completed then return the setting to the original default sms that the user or factory has set, before using my app. Currently,

How to make my own dialog component from Firemonkey TPopUp?

穿精又带淫゛_ 提交于 2019-12-12 02:50:20
问题 [Delphi XE5 Up2] I am trying to use TPopUp to inherit and create a component, following the same idea as exposed on the Flyouts demo for the CalendarFlyout. I will be not using the Calendar, but I want that space free so that I can place any other FMX component that I want. I have made the component using the new component wizard and added some controls: unit PopupTest; interface uses System.SysUtils, System.Classes, FMX.Types, FMX.Controls, FMX.Layouts, FMX.StdCtrls; type TPopupTest = class

Overloading a method in FMX.Platform.iOS

会有一股神秘感。 提交于 2019-12-12 02:28:40
问题 within FMX.Platform.iOS this method is added to the App delegate class_addMethod(appDelegateClass, sel_getUid('application:didReceiveLocalNotification:'), @applicationDidReceiveLocalNotification, 'v@:@@'); And its procedure is : procedure applicationDidReceiveLocalNotification(self: id; _cmd: SEL; application: PUIApplication; notification: Pointer); cdecl; begin PlatformCocoa.FAppDelegate.application(TUIApplication.Wrap(application), TUILocalNotification.Wrap(notification)); end; I want to

How to pass boolean (or integer) to intent and read it (to detect that my activity was started from Android AlarmManager)?

百般思念 提交于 2019-12-12 02:15:02
问题 I can setup my android app to start at specified time with Android AlarmManager. It works nice, I used this manual and this forum for details (use google translator). So I'm creating DEX file from Java code (from XE7 you can simply attach JAR without creating dex(!)) . To detect if My app was started from AlarmManager I decided to put boolean var to intent, using this java manual from stackoverflow, so I added to java code this line: TestLauncher.putExtra("StartedFromAM", true); Full Java

How can I change the colour of the toolbar in a FireMonkey mobile application

六月ゝ 毕业季﹏ 提交于 2019-12-12 01:51:25
问题 I'm using Delphi XE7 for developing mobile application. And how can I change the colour of the TToolbar component in Firemonkey mobile application? I can not find the option in the Object Inspector. Is there any other option to change the colour of this component. And I'm targeting Android platform. 回答1: Method #1: In Firemonkey most components can be contained within most other components. Place a TRectangle inside of your TToolBar component. Align it to Contents. Change the Fill color to

Delphi XE8 error FMX.ListView

牧云@^-^@ 提交于 2019-12-12 01:46:48
问题 I'm trying delphi XE 8 and I found that if I declare to use the library FMX.ListView gives me error (no load) when run on the iOS simulator. I have updated to the latest version XCode. no problem: unit Unit2; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs; type TForm2 = class(TForm) private { Private declarations } public { Public declarations } end; var Form2: TForm2; implementation

How to Save files on external SD with Delphi XE8

倾然丶 夕夏残阳落幕 提交于 2019-12-12 00:33:22
问题 anybody knows how to write a file on the external sd card? i checked user permissions in the manifest file and it says user can write to external sd but everytime i try something like TFile.copy(src, '/storage/extSdCard/file.txt') src is a file located in the internal device memory i receive a permission denied error. Of course there is no error if i copy the file within the internal device memory path Using Delphi XE8 on Android device Samsung S4 来源: https://stackoverflow.com/questions

Delphi Firemonkey ios Background Fetch

老子叫甜甜 提交于 2019-12-11 20:59:57
问题 i'm trying to use delphi Firemonkey to develop an iphone App. I need to download an xml every x minutes and process it, if there are new data send notification. It's very easy if the app is in use, but i can't find the way to use this procedure when the app is in background.... Please help me... Tnx a lot...But i can't do this.... this is my simpliest code that doesn't work... What is my error??? procedure TForm1.Button1Click(Sender: TObject); var IdHTTP1 : TIdHTTP; MyFile : TFileStream;

Hotfix for Firemonkey for iOS 8 Simulator

有些话、适合烂在心里 提交于 2019-12-11 20:54:40
问题 Maybe anybody knows, how to use iOS 8 Simulator with Firemonkey? Maybe Embarcadero already has a hotfix? If so, please, give a link. Thanks. Updated: Thanks to @LU RD. Here is the solution for XE8: http://cc.embarcadero.com/Item/30221 回答1: Delphi XE8 release notes state the following: The iOS Simulator for the latest version of iOS (8.x) is not yet supported as a target platform for FireMonkey multi-device applications. You can, however, use the iOS simulator that is supported on iOS 7. 来源:

TTimer not working while iOS app in background

自作多情 提交于 2019-12-11 20:37:50
问题 I have an app that needs to perform some actions based on a TTimer. When the app becomes inactive (in background), the timer stops working. I could not find any relevant options for UIBackgroundModes. How can I make a timer keeps running? 回答1: iOS pauses your app automatically shortly after it goes into the background. You need to let iOS know that you are going to continue operating in the background. In Project > Options > Version Info you can add to the array key UIBackgroundModes the