android - How to retrieve marker image to display full sized image in google Maps API v2? -


i have image marker , want tap on marker display full sized image. use hashmap add marker id of image , onmarkerclick display full sized image. displays large image not correct image marker clicked, last marker added.

here code have far:

weakhashmap <marker, object> haspmap = new weakhashmap <marker, object>(); marker m; 

and when adding marker:

 m = googlemap.addmarker(new markeroptions()             .position(point)             .icon(bitmapdescriptorfactory                  .frombitmap(bitmap)));               haspmap.put(m, bitmap); 

and onmarkerclick:

intent intent = new intent(); intent.setaction(intent.action_view); haspmap.get(m); uri imguri = uri.parse("file://" + fileuri); intent.setdataandtype(imguri, "image/*"); startactivity(intent); 

it seems should work how understand it, doesn't
doing wrong here?


Comments

Popular posts from this blog

java - Unable to make sub reports with Jasper -

sql - The object name contains more than the maximum number of prefixes. The maximum is 2 -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -