Getting street name from Address/Location object in Android

前端 未结 6 756
滥情空心
滥情空心 2021-01-31 11:34

I\'m trying to get the street name of my current location but I can\'t seem to get it.

I use this method to retrieve the Address:

public Address getAddre         


        
6条回答
  •  隐瞒了意图╮
    2021-01-31 11:51

    If you have a complete address (city + street), in

    address.getAddressLine(0)
    

    you find the street name and number.

提交回复
热议问题