Android 从图像链接位置
我将文本链接到如下所示的位置,我的问题是我不知道如何将图像链接到此位置:Android 从图像链接位置,android,google-maps,location,Android,Google Maps,Location,我将文本链接到如下所示的位置,我的问题是我不知道如何将图像链接到此位置: public class PageCs extends Activity { Button spw; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.zaza);
public class PageCs extends Activity
{
Button spw;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.zaza);
addListenerOnButton();
}
public void addListenerOnButton()
{
spw = (Button) findViewById(R.id.spw);
spw.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View view)
{
String DESTINATION_LOCATION = "My location";
String latit = "00.0000000";
String longit = "00.0000000";
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("geo:<" + latit + ">,<" + longit + ">?q=<"
+ latit + ">,<" + longit + ">("
+ DESTINATION_LOCATION + ")"));
startActivity(intent);
}
});
}
}
您希望如何在它们之间建立链接?之后会发生什么?图像也会显示在地图上的位置