uriintent전달1 android의 uri값 전달하기 Activity간에 URI값을 전달해야 될 때가 있습니다. intent.getExtra로 URI값을 가져오게 되면 NullpointException이 발생합니다. URI를 전달하는 2가지 방법이 있는데, 첫째는 intent.putExtra()로 보내고, intent.getParacelableExtra()로 가져오세요. send -> putExtra("uri",urivalue); receive -> Uri urivalue=getParcelableExtra("uri"); 두번째는 uri를 String으로 변환해서 보내고, intent.getStringExtra()로 받으시고, String값을 URI로 변경해 주면 됩니다. 변경 방법은 Uri.parse() 하시면 됩니다. send -> putExtra("ur.. 2015. 2. 12. 이전 1 다음 인기글