2017-04-30 48 views

回答

0

嘗試使用的getString( resld)而不是getText()也許它有幫助。

String a = getString(R.string.API)+"search?q="; 
0

這是無效的網址'http://google.comsearch?q='。

您必須在xml或java代碼中添加斜線(/)。

<string name="API">http://google.com/</string> 

String a = getText(R.string.API).toString()+"https://stackoverflow.com/search?q="; 
相關問題