package exam.andexam;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class C24_ViewLocation extends Activity {
 public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  
  Button btn = (Button)findViewById(R.id.view63);
  btn.setOnClickListener(new Button.OnClickListener() {
   public void onClick(View v) {
    double latitude = 37.519576;
    double longitude = 126.940245;
    
    String pos = String.format("geo:%f,%f?z=16", latitude, longitude);
    Uri uri = Uri.parse(pos);
    Intent intent = new Intent(Intent.ACTION_VIEW, uri);
    startActivity(intent);
   }
  });
 }
}


63빌딩의 좌표를 지도로 나오게 하는건데요

왜 run만 누르면  has stopped unexpectedly  가 뜰까요??? 지도라도 나왔으면 좋겠구만.. ㅜ

 

<com.google.android.maps.MapView
        android:id="@+id/view63"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:apiKey="0ST7OAErrPSKie1Fkvmnb7oJJdLKurdoMPemEPw"
        android:clickable="true"

 />

 

xml에 이거는 추가했습니다

 

해결방법좀 알려주세요 ㅜ