I have to upload gallery images using 2d
array in android. i need to use hash map for this purpose but i am confused how to do that can any one please suggests any solution or sample code for this purpose.
you can create your hash map like this
HashMap<String, String> images=new HashMap<String, String>();
meMap.put("image name","image path");
you can create key value pairs like this or can change according to your requirement but note one thing keys should be unique for every key ie image name should be different every time because if same will be inserted again then its value will be overidden.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.