从图像链接位置

时间:2015-11-22 12:05:38

标签: android google-maps location

我将文字链接到如下所示的位置,我的问题是我不知道如何将图片链接到此位置:

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);
            }
        });
    }
}

0 个答案:

没有答案