Quantcast
Channel: Recent Topics - Forum - Embarcadero Community - Embarcadero Community
Viewing all 3677 articles
Browse latest View live

Toggle bookmark Ctrl-Shft-0 does not work - by: Hubert

$
0
0
Hello,

Toggle bookmark 0 with Ctrl-Shft-0 does not work.
What am I doing wrong ?

Hubert

Preparing Delphi deployment for the Android API level 26 August 2018 deadline - by: Inmatrix

$
0
0
Using Delphi 10.2.3, I have recently deployed my first Closed Alpha release using the Google Play console and was greeted with this message:

> Warnings
>
> Your app currently targets API level 14 and must target at least API
> level 26 to ensure it is built on the latest APIs optimized for
> security and performance.
>
> From August 2018, new apps must target at least Android 8.0 (API level
> 26). From November 2018, app updates must target Android 8.0 (API
> level 26).

There are several questions here with regards to Delphi deployment:
  • Delphi 10.2.3 ships with Android SDK 24.3.3, why does it warns the target API is set to level 14 and how can this be changed? (is the only option to edit AndroidManifest.template.xml?)
  • I used the Android SDK Manager tool to download the latest versions of the "Android SDK Tools", "Android SDK Platform Tools" and "SDK Platform" for Android 8.1 (API 27). However, when following the instructions ( docwiki.embarcadero.com/RADStudio/Tokyo/...dding_an_Android_SDK ), it instead installed SDK 25.2.5, even though I specified the "SDK API-Level" to "android-27" at the bottom of the wizard. How can I get SDK 27 to install?
  • I downloaded the latest Android r17 NDK ( developer.android.com/ndk/downloads/ ), but Delphi's Add SDK wizard wont accept the NDK path at all (it shows the yellow triangle), is it even possible/recommended to use the latest NDK?

Unable to Register Class TFMXApplicationDelegate - by: Kevin

$
0
0
I've read the Embarcadero and other docs, searched the net, and obviously something isn't sinking in. I have a significantly more complex Application and DLL/Dylib, but am now just using this simple example to try and get it to work. When I build the App and DLL for Win32 it works fine and it works fine if I do not make a function call to the DLL. As soon as I make a call to the DLL the error Unable to register Class TFMXApplicationDelegate is raised and the application terminates. This behaviour is the same whether the guest OS is on a VM (parallels) or a physical device (MacBook Pro 15 mid-2015).

QUESTION: How can I ensure that TFMXApplicationDelegate gets Registered, is there a setting or permission I need to set. It seems fairly basic since, according to the Apple documentation:

The app delegate is effectively the root object of your app.
The DPR:



And here's the simple PAS file (for the Dylib):



And lastly the simple test application:



Kevin

New FM Styles just released! - by: Almediadev

TIdSync deprecated - by: Christian

$
0
0
Indy - TIdSync gives a deprecated warning.
So if I replace:

with this:

is this ok or do I have to give a parameter for AThread? And if yes, what should be the parameter here?

Christian

Resources for Firemonkey mobile calendar and notification - by: Jenny

$
0
0
I am looking for resources on how to set a calendar appointment for both iOS and Android. Any help in finding the right code snippet on how to do this is greatly appreciated.

Thank you in advance.

Jenny

firedac - interbase attempt to fetch past the last record in a stream - by: Flavius

$
0
0
I am getting a firedac "attempt to fetch past the last record in a stream" error when trying to post a new record into interbase. The problem happens on table that has records or no records.

I have created the trigger;
SET TERM ^ ;

CREATE TRIGGER BRANCH_RECNO FOR BRANCH
ACTIVE BEFORE
INSERT
POSITION 0
AS
BEGIN
IF ((new.RECNO is null) or (new.RECNO = 0)) THEN
NEW.RECNO = GEN_ID(Branch_RECNO_GEN, 1);
END^

SET TERM ; ^

and the generator;
CREATE GENERATOR BRANCH_RECNO_GEN;

SET GENERATOR BRANCH_RECNO_GEN TO 3;

Using XE7 and InterBase 2017

AddImageToSavedPhotosAlbum IOS App Crash - by: Alexandre

$
0
0
I have the same problem to develop the iOS application with Delphi XE 10.2. update 3 My application will crash when I click save image (save to camera roll) using IFMXPhotoLibrary.

It happened with iPhone 8 iOS 12.

I am using:

Delphi Tokyo 10.2 update 3,
Hotfix: Delphi Tokyo 10.2.3 (HotFix 05.2018),
PAServer: Version 10.3.1.10,
Xcode: 10.0,
Xcode command line tools: 9.4.1

Below is source code:

if TPlatformServices.Current.SupportsPlatformService(IFMXPhotoLibrary, Service) then
Service.AddImageToSavedPhotosAlbum(imageMain.Bitmap);

Add a new key, NSPhotoLibraryUsageDescription to the Version Info section of the Project Options. The value can be any text that will be displayed when the app asks permission to use the camera roll.

DELPHI ANDROID CAMERA - by: Roberto

$
0
0
HOLA, AL EJECUTAR MI APLICACIÓN Y TRATAR DE SACAR UNA FOTO TENGO EL SIGUIENTE ERROR
java,lang.nullpointerexception:attemp to invoke virtual method 'android,content.res.Xmlresourceparser android.content.pm.packagelteminfo,loadXmMetaData(android,content.pm.PackageMenager,java.lang.string)' or null object reference

Preparing Delphi deployment for the Android API level 26 August 2018 deadline - by: Inmatrix

$
0
0
Using Delphi 10.2.3, I have recently deployed my first Closed Alpha release using the Google Play console and was greeted with this message:

> Warnings
>
> Your app currently targets API level 14 and must target at least API
> level 26 to ensure it is built on the latest APIs optimized for
> security and performance.
>
> From August 2018, new apps must target at least Android 8.0 (API level
> 26). From November 2018, app updates must target Android 8.0 (API
> level 26).

There are several questions here with regards to Delphi deployment:
  • Delphi 10.2.3 ships with Android SDK 24.3.3, why does it warns the target API is set to level 14 and how can this be changed? (is the only option to edit AndroidManifest.template.xml?)
  • I used the Android SDK Manager tool to download the latest versions of the "Android SDK Tools", "Android SDK Platform Tools" and "SDK Platform" for Android 8.1 (API 27). However, when following the instructions ( docwiki.embarcadero.com/RADStudio/Tokyo/...dding_an_Android_SDK ), it instead installed SDK 25.2.5, even though I specified the "SDK API-Level" to "android-27" at the bottom of the wizard. How can I get SDK 27 to install?
  • I downloaded the latest Android r17 NDK ( developer.android.com/ndk/downloads/ ), but Delphi's Add SDK wizard wont accept the NDK path at all (it shows the yellow triangle), is it even possible/recommended to use the latest NDK?

Scoping Problem - by: Robert

$
0
0
Hi:

variable frmObjectView.ibIndexName := ibIndexList.Selected.Caption; shows correct value before modal close.

IB_IndexName := 'MNAMELAST'; //ibIndexName; hard coded index name for testiong

That variable in the target scope shows empty,






And the modal form to select the index

Manual uninstall Berlin 10.1 - by: Kevin

$
0
0
Rad Studio Berlin 10.1 that fails during Windows Uninstall with no usable error messages. I can delete the Studio\18 folder, but there are a lot of Studio\18 entries in the registry
Any ideas on how to do a complete uninstall?
thanks
Kevin

Preparing Delphi deployment for the Android API level 26 August 2018 deadline - by: Inmatrix

$
0
0
Using Delphi 10.2.3, I have recently deployed my first Closed Alpha release using the Google Play console and was greeted with this message:

> Warnings
>
> Your app currently targets API level 14 and must target at least API
> level 26 to ensure it is built on the latest APIs optimized for
> security and performance.
>
> From August 2018, new apps must target at least Android 8.0 (API level
> 26). From November 2018, app updates must target Android 8.0 (API
> level 26).

There are several questions here with regards to Delphi deployment:
  • Delphi 10.2.3 ships with Android SDK 24.3.3, why does it warns the target API is set to level 14 and how can this be changed? (is the only option to edit AndroidManifest.template.xml?)
  • I used the Android SDK Manager tool to download the latest versions of the "Android SDK Tools", "Android SDK Platform Tools" and "SDK Platform" for Android 8.1 (API 27). However, when following the instructions ( docwiki.embarcadero.com/RADStudio/Tokyo/...dding_an_Android_SDK ), it instead installed SDK 25.2.5, even though I specified the "SDK API-Level" to "android-27" at the bottom of the wizard. How can I get SDK 27 to install?
  • I downloaded the latest Android r17 NDK ( developer.android.com/ndk/downloads/ ), but Delphi's Add SDK wizard wont accept the NDK path at all (it shows the yellow triangle), is it even possible/recommended to use the latest NDK?

Access violation when creating muli-device form version 10.2.3 - by: Bob

$
0
0
Hi there. Since installing version 10.2.3 of Delphi, I receive access violations when trying to create a multi-device form. I found one topic to uninstall, remove registry keys and hidden install folders which I did and reinstalled Delphi with no success. I attached the two errors I receive when I try to create a form. Does anyone have any ideas how to fix this installation issue? I am using this on Windows 7 64 bit. Please note all was working fine until I installed the release 3 of 10.2. Thanks! bob

Can 10.2.3 work with XCode 10? - by: Jenny

$
0
0
Is there a workaround to make 10.2.3 work with the new XCode 10? It gave me an error that a dylib file is missing.

Thanks in advance.

Jenny

Linker conflict between 2 static libraries - by: Chris

$
0
0
I have a Firemonkey app for iOS and Android on the app stores which uses the JVE AdMob components to allow us to show AdMob ads in our app.


We're about to run a Facebook campaign so need to integrate the FacebookSDKs and have managed to download and integrate the SDK without too many problems. The issue now is that something in the FacebookSDK is interfering with the GoogleMobileAds SDK used by the JVE AdMob banner.


I don't have much expertise in solving linker issues with static libraries in Delphi so wonder if anyone could point me in the correct direction to try to solve this?


The error is a duplicate symbol one. Am I correct to think that the clash is between a symbol in Bolts (BFCancellationToken.o) and libGoogleMobileAds.a (GADGestureUtil.o)? Is there any way to find out what the symbol that's actually being duplicated is? I can't imagine there's a function something called "I011" in those libraries??


The linker error is:


duplicate symbol l011 in:
C:\Users\x\Documents\Embarcadero\Studio\SDKs\iPhoneOS10.0.sdk\System\Library\Frameworks/Bolts.framework/Bolts(BFCancellationToken.o)


libGoogleMobileAds.a(GADGestureUtil.o)


ld: 161 duplicate symbols for architecture arm64
[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)

Thank you in advance!

D2007 - EditorLineEnds.ttr problem - by: Alan

$
0
0
I have this problem since 1 month ago:
Cannot create file
C:\Users\johns\AppData\Local\Temp\EditorLineEnds.ttr

I used to open 2 instances of Delphi 2007 for years but I got this error since last month.
I googled people say the result of Windows update in 2014. But I only came across this error in April.

Anyway to solve it?

Using sqlite3.dll - by: Ofer

$
0
0
Hi,

i'm using C++ builder XE Version 15.0.3953.35171 under WIN7. I try to use sqlite3.dll from my application to get data from the database. When running a simple select query and trying to print the results It print OK (n-1) item and crushes at the [size= 12.16px; line-height: 1.3em]end of item (n-1). This is my code:[/size]

//

static int callback(void *data, int argc, char **argv, char **Name)

{

fprintf(stderr, "%s: ", (const char*)data);

for (int i=0; i<argc; i++)

{

printf("%s = %s\n", Name, argv ? argv : "NULL");

}

printf("\n");



return 0;

}



//


DBDLL_API int ExecDb (char *pSql)

{

int rc;

char* zErrMsg;

const char* data = "Callback function called";

char stam[128];



if (Db_Exec != NULL)

{

rc = Db_Exec (pDb, pSql, callback, (void*)data, &zErrMsg);

if( rc!=SQLITE_OK )

{

fprintf(stderr, "SQL error: %s\n", zErrMsg);

sqlite3_free(zErrMsg);

}

}

else

rc = GetLastError ();

return (rc);

}



What did i missed here ? are there any special definition i have to set in the compiler ?

Thanks

Ofer[/i][/i][/i]

Ayudaaaa por favor opencart y delphi - by: patricio

$
0
0
hola a todos . quien podria enseñar como conectar delphi a opencart porfavor si es que sepuede toy entrampado con esto plisss.

reading a JSON - by: Serhij

$
0
0
hey guys. i'm trying to read a value from a json file

but it always gives me the $C0000005 exception. this is the json


if i write
inttostr(JValue.GetValue<integer>('liquidandgas'))
it's the same exception
Viewing all 3677 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>