Home > Back-end >  How will TJavaArray Array into the Array in DELPHIXE APP
How will TJavaArray Array into the Array in DELPHIXE APP

Time:09-16



Var Barcode: TJavaArray;
The Begin

How will JavaArray data in DelphiXE into a string!

CodePudding user response:

USES Androidapi. Helpers;

Var
B: TBytes;
//...
B:=TAndroidHelper TJavaArrayToTBytes (Barcode);
Because of the var Barcode: TJavaArray; Is a byte array, so can:
Var
S: AnsiString.//if use string in D2009 + will lead to the data transformation, and the original data is inconsistent, it depends the
//...
S:=PAnsiChar (TAndroidHelper TJavaArrayToTBytes (Barcode));

CodePudding user response:

TJavaArrayToTBytes correctly,
  • Related