如何发送意图2个类的上下文?

时间:2013-02-07 13:14:28

标签: java android android-intent

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,我该怎么做?

感谢。

1 个答案:

答案 0 :(得分:0)

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