2010-11-04 385 views

回答

4

将其发布到正在等待您的数据的网络服务器。

1

Android使用HttpClient进行http通信。用它将数据发布到您的服务器。当然,您还需要构建一个可以获取经纬度的Web应用程序,并将Google地图组件导航到该位置。

编辑:如果我从你的评论中正确理解,你想在你的Android手机中打开一个特定的网址。你可以用下面的代码做到这一点:

Uri uri = Uri.parse("http://www.example.com"); 
Intent intent = new Intent(Intent.ACTION_VIEW, uri); 
startActivity(intent); 

详见here

+0

感谢您的快速回答,我会用HttpCLient尝试一下,看看它是否有效。 – yachimitsou 2010-11-04 14:18:31

+0

Web应用程序已经完成,但是我怎么能发送这个链接:http://www.myserver.com/testf.php?c1 = longitude&c2 = latitude从我的android应用程序到web应用程序? – yachimitsou 2010-11-04 15:12:10