にデータを送信し、私はいくつかの緯度と私はMapActivityにこれらを送りたいlogtituteを持っていることは、私は多くの方法をしましたが、そうMapacitivityMapActivity
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_maps);
Intent intent = getIntent();
HashMap<String, String> hashMap = (HashMap<String, String>)intent.getSerializableExtra("map");
Log.v("HashMapTest", hashMap.get("key"));
// Obtain the SupportMapFragment and get notified when the map is ready to be used.
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.map);
mapFragment.getMapAsync(this);
問題は何ですか?それは動作していないのですか?例外はありますか? –
可能な複製:http://stackoverflow.com/questions/7578236/how-to-send-hashmap-value-to-another-activity-using-an-intent – dex