从我的应用程序打开应用程序的简单方法是什么?我正在建设的应用程序希望人们在有商店时打开Foursquare进行检查。我知道他们可以打开网页。但我想打开Foursquare应用程序...从我的应用程序打开Foursquare应用程序
four.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
// TODO Auto-generated method stub
Uri uriUrl = Uri.parse("https://m.foursquare.com/nationalcleaners");
Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);
startActivity(launchBrowser);
}
});
更新我与我工作的问题... 它会给如果已安装在其上的用户选择使用浏览器或Foursquare应用程序的用户点击按钮时的电话......选择浏览器或应用程序后,它会调出foursquare的搜索结果,您可以让它搜索您想要的foursquare在“放置您寻找的内容”中搜索的内容。部分代码如下。
这是我如何设置它,它的工作原理。
按钮四=(Button)findViewById(R.id.foursq);
four.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
// TODO Auto-generated method stub
Uri uriUrl = Uri.parse("http://m.foursquare.com/search?q=Place what your searching for hear");
Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);
startActivity(launchBrowser);
}
});
也许这线程是你 http://stackoverflow.com/questions/3872063/android-launch-an-application-from-another-application – Xuphey
感谢有用的,你将如何找到“com.package。地址“名称的Foursquare应用程序? – KodiakBear211
这是Foursquare应用“com.joelapenna.foursquared”的包名称,谢谢... – KodiakBear211