0

I'm using an SDK and am trying to extract data from an object (Merchant) that's being retrieved, and although the class has some useful methods for returning specific fields, I can clearly see more information available by setting a watch in Android Studio and checking that at a breakpoint.

Android Studio unknown object fields

I'm trying to get all of this data out in String form, and I was wondering how. Using "merchant.toString()" does get some information out, but it looks as if the text I can't access is the part within "mMap".

I can spot the words "Bundle" and "ArrayMap" in the preview, and I have tried to read through the class in the java file from the SDK, but I'm not making much sense of it so far.

How can I read from these fields that Android Studio can preview?

EDIT: Link to the objects class

Nhexus
  • 13
  • 5

1 Answers1

0

Unfortunately, data field is private, you can try to retrieve information from private field using java reflection. For example, like it shown here.

Community
  • 1
  • 1
madatx
  • 81
  • 5