의도 호출을 통해 URL을 가져 오는 브라우저 응용 프로그램을 만들었지 만 일부 의도에서는 #
기호를 사용하고 있으며 올바르게 처리되지 않습니다.의도가 특수 문자를 사용하지 않습니다
편집 할 필요가있는 것은 내 의도입니까, 아니면 내 용도입니까?
내 응용 프로그램 코드 :
Intent intent = getIntent();
String url = intent.getStringExtra("id");
if(url == null) {
mWebView.loadUrl("http://google.com");
else {
mWebView.loadUrl(url);
}
내 의도 :
intent://#Intent;action=android.intent.action.SEND;component=myprogramstuff;S.id="https://blahblahblah/#/blah/blah?stuff=123123123";end
'intent.getStringExtra ("id")'의 내용은 무엇입니까? –
@ MuratK. 의도에있는 S.id. 이 경우? –
브라우저에서 정상적으로 작동합니까? –