import java.io.IOException;
import java.util.List;
import java.util.Locale;
import android.app.Activity;
import android.content.Intent;
import android.location.Address;
import android.location.Geocoder;
import android.os.Bundle;
import android.widget.TextView;


public class AddressText extends Activity{
    /** Called when the activity is first created. */
 TextView textView1;
 TextView textView2;
 Address addr;
 protected void onCreate(Bundle savedInstanceState) {
  // TODO Auto-generated method stub
  
  super.onCreate(savedInstanceState);

  setContentView(R.layout.listitem2); 
  
  textView1 =(TextView)findViewById(R.id.address111);
  textView2 =(TextView)findViewById(R.id.address222);
 
  Intent intent = getIntent();
  Bundle myBundle = intent.getExtras();
  String StringArrayData[] = myBundle.getStringArray("key");  

  //imageView.setImageURI(Uri.parse(StringArrayData[5]));   
  
  textView1.setText("선택한주소:"+ StringArrayData[2]);
  textView2.setText("좌표:"+ cow  );

Geocoding geocoding  = new geocoding(this, Locale.Korea);

try{

List<address> addresses = geocoding.getFromLocationName(StringArrayData[2], 1);

addresses.getLatitude();

addresses.getLongitude();

int a = (int)(addresses.getLatitude()*1E6);

int b = (int)(addresses.getLongitute()*1E6);

String c = Integer.ToString(a);

String d = Integer.ToString(b);

}catch (IOException e){

}

}

}

StringArrayData[2] 값으로 주소를 받아와서 geocoding 을 이용하여서 좌표값을 받고 그 좌표값을 textview2에 출력하려고 합니다.

근데 자꾸 널값으로밖에 출력이 되질안네요;; 도와주세용;;