I have a map between string and a class object. I populate this map in Activity1 and i would like to pass it to activity2.
public class NEW extends Activity {
public class data {
String name;
float value;
.... etc }
......
static Map<String, data> data_map = new HashMap<String, data>();
..... }
I am assuming you own both Activities (call them A and B). In which case just put the map in a public static variable and access it from B via A.data_map.
[update]
For all of the downvotes take a peek at the Android Application Framework FAQ section “How do I pass data between Activities/Services within a single application?”. The solution I recommend is exactly the same as…
Yes, there are caveats to this solution but with the limited info presented by the OP we can not assume this method will not work.