안녕하세요^^

어김없이 막힘없이 공부하고 싶지만 ㅜㅜ

빨간책 안드로이드 5장을 보고 있는데

intent 에서 문제가 발생했네요.

public class ContactPicker extends Activity {
    TextView myTextView;
   
    public void onCreate(Bundle savedInstanceState) {
     
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
       
        myTextView = (TextView)findViewById(R.id.myTextView);
               
        Intent intent = getIntent();
        String dataPath = intent.getData().toString();
        //String dataPath = intent.getDataString();

        myTextView.setText("test : " + dataPath);
    }


여기서 in의 intent.getDataString() 경우에는 dataPath 값이 null값으로 출력

itent.getData().toString() 경우에는 has stopped unexpectedly. 가 나오고요 ㅜㅜ

책 버젼이 1.5버전이고, 시뮬레이터는 2.1버전으로 공부하고 있습니다.

어디서 문제인걸까요?

초보자라서 ㅜㅜ 자세히 알려주시면 흠뻑 감사하겠습니다 ㅜㅜ