Lee Gillie CCP Active Member Licensed User Longtime User Apr 27, 2017 #1 The 3rd party documentation describes a method I am attempting to provide a B4A wrapper for. The Java method template documented as: public Map<String, String> getFirmwareInformation(); I can get a JavaObject for this Map, but can't figure out how to get inside the Map (ultimately I will convert this to a B4A Map). I want its size, keys, and values of course. Thanks for any hints.
The 3rd party documentation describes a method I am attempting to provide a B4A wrapper for. The Java method template documented as: public Map<String, String> getFirmwareInformation(); I can get a JavaObject for this Map, but can't figure out how to get inside the Map (ultimately I will convert this to a B4A Map). I want its size, keys, and values of course. Thanks for any hints.
DonManfred Expert Licensed User Longtime User Apr 28, 2017 #2 I cant help on javaobject. But i can provide a working JAVA-Code for this. Maybe you are able to do this with JO? Code: for (Iterator it = map.keySet().iterator(); it.hasNext(); ){ Object key = it.next(); Object value = map.get(key); } Upvote 0
I cant help on javaobject. But i can provide a working JAVA-Code for this. Maybe you are able to do this with JO? Code: for (Iterator it = map.keySet().iterator(); it.hasNext(); ){ Object key = it.next(); Object value = map.get(key); }
Erel B4X founder Staff member Licensed User Longtime User Apr 28, 2017 #3 JavaMapToMap: https://www.b4x.com/android/forum/t...java-util-map-to-a-b4a-map.70214/#post-445846 Upvote 0