0
public void onClick(View arg0) {
            Intent i = new Intent(getApplicationContext(),
                    PlacesMapActivity.class,AddItemizedOverlay.class);
            // Sending user current geo location
            i.putExtra("user_latitude", Double.toString(gps.getLatitude()));
            i.putExtra("user_longitude", Double.toString(gps.getLongitude()));

            // passing near places to map activity
            i.putExtra("near_places", nearPlaces);
            // staring activity
            startActivity(i);
        }

我想将意图发送到 PlacesMapActivity.class 和 AddItemizedOverlay.class,我该怎么做?

谢谢。

4

1 回答 1

0

构造两个单独的 Intent 并发送它们。

于 2013-02-07T13:19:47.983 回答