구글맵을 출력하려고 합니다.

현재 구글맵까지 다 되어있는 상태인데 이거를 끌어와야되는데 어떻게 해야하는지모르겠네요

 

이 소스는 구글맵에 경도위도 넣으면 출력해주는 자바파일이구요

package com.andro.mapviewproj;

import android.os.Bundle;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;


public class MapViewActivity extends MapActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
       
        MapView mapView=(MapView) findViewById(R.id.mapview);
       
        mapView.setBuiltInZoomControls(true);
       
        GeoPoint geopt= new GeoPoint(
          (int)(37.208995*1E6), (int)(126.976396*1E6));
       
        MapController mapCtrl = mapView.getController();
        mapCtrl.setZoom(16);
        mapCtrl.setCenter(geopt);
    }
   
    protected boolean isRouteDisplayed(){
     return false;
    }
}

 


이것은 receive파일입니다. 여기서 버튼을 누르면 그 구글화면이 뜨게 하려고하는데 어떻게 불러와야되나요.

 package com.andro.mapviewproj;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;


public class ReceiveActivity extends Activity implements OnClickListener{
 
 public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.input);
  
  Button btn=(Button)findViewById(R.id.button_send);
  btn.setOnClickListener(this);
 }
 
 public void onClick(View v){
  Intent it = new Intent(this, MapViewActivity.class);
  
  startActivity(it);
  finish();
 }
}

 

 

메인은 이거구요

 <?xml version="1.0" encoding="utf-8"?>

<com.google.android.maps.MapView
 xmlns:android="http://schemas.android.com/apk/res/android"
 android:id="@+id/mapview"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:clickable="true"
 android:apiKey="0HsfFNEeEsDrTE7b24iE2YnlZX8da-67qjAbCyw"
 />
 



input은 이겁니다. 여기서 이름치고 ok버튼을 누르면 구글맵화면이 뜨게 하려고합니다.

 <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >

   
<LinearLayout
 android:orientation="horizontal"
 android:layout_width="fill_parent"
 android:layout_height="wrap_content"
 android:weightSum="1">
<TextView
 android:layout_width="60sp"
 android:layout_height="fill_parent"
 android:text="@string/name"
 android:layout_weight="0.10"/>
 </LinearLayout>
<EditText android:layout_height="wrap_content" android:id="@+id/edit_name" android:layout_width="fill_parent">
    <requestFocus></requestFocus>
</EditText>

<LinearLayout
 android:orientation="horizontal"
 android:gravity="right"
 android:layout_width="fill_parent"
 android:layout_height="wrap_content"
 >
<Button android:id="@+id/button_send"
 android:layout_width="100sp"
 android:layout_height="wrap_content"
 android:text="OK"
/>
 </LinearLayout>
 </LinearLayout>

 

 

혹시 매니패스트에 <activity android:name=".MapViewActivity"

                                        android:label="@string/mapview> 이런식으로 추가해야되나요?