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
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,