【发布时间】:2012-04-10 18:53:07
【问题描述】:
我的活动中有一个按钮,我希望在按下时触发一个意图,该意图将启动某个页面,就像谷歌上的“我感觉很幸运”一样
意思是这样的
public void startIntent(String textToSearch){
//fire an intent that will open the page just like when I open
//google.com and enter the textToSearch text and press I am feeling lucky
}
我该怎么做?
【问题讨论】:
-
类似这样的东西:stackoverflow.com/questions/4800575/…。例如将一些变量传递给您正在打开的网址