FFI - how do I get the value of an Android field/constant

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
KimD
Posts: 223
Joined: Wed Jul 08, 2015 5:51 am
Location: Wellington, New Zealand

FFI - how do I get the value of an Android field/constant

Post by KimD » Tue Apr 21, 2020 1:58 am

I just know that this is going to turn out to be incredibly easy, but I've spent a day working on it and got no where. Using the FFI, how do I get the value of a field (constant)?

For example, for android.os.Environment (https://developer.android.com/reference ... nvironment), how do I retrieve the value contained in the public static string DIRECTORY_DOCUMENTS?

Thanks in advance

Kim

Post Reply

Return to “LiveCode Builder”