Sorry, drgottjr, but that's not correct: IPv6 does NOT know something like NAT (or CG-NAT). Every device, even behind a router, has a globally routable ip adress. (i'm not speaking of cellular networks, but of WiFi, see my post above).
The device gets the prefix by so called prefix delegation from the router and the suffix is basicly build out of the MAC-adress or is even choosen randomly for sake of privacy (and then told the router by NDP).
But i can put my question even in this form: How can i find out in B4A the IPv6 Wifi adress of an Android device, may it be private or public ?
Regarding IPv4 your answer is correct of corse