Learned a long time of the German navigation map to organize the initial map configuration.
There are two ways to display a map, one of which is to add the following code to the XML layout file
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/77/72/wKiom1Zn5VzBvULsAAAiU7eoe0U369.png "title=" QQ picture 20151209162432.png "alt=" Wkiom1zn5vzbvulsaaaiu7eoe0u369.png "/>
This addition method must overload the activity life cycle with the following methods: OnCreate (), OnPause (), Onresume (), OnDestroy (), onsaveinstancestate (), activity code as shown below
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/77/71/wKioL1Zn6CniE0XUAABivsTh8mI610.png "title=" QQ picture 20151209163400.png "alt=" Wkiol1zn6cnie0xuaabivsth8mi610.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/77/72/wKiom1Zn58zBPUj6AABGiJy7aB0110.png "title=" QQ picture 20151209163419.png "alt=" Wkiom1zn58zbpuj6aabgijy7ab0110.png "/>
The second method can add the following code to the XML
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/77/71/wKioL1Zn6KyTN77EAAAm1BTDFSI311.png "title=" QQ picture 20151209163652.png "alt=" Wkiol1zn6kytn77eaaam1btdfsi311.png "/>
Change the inherited class 650) this.width=650 in activity; "src=" http://s3.51cto.com/wyfs02/M00/77/71/ Wkiol1zn6pswmyuwaaapqy3w4mi173.png "title=" qq picture 20151209163757.png "alt=" Wkiol1zn6pswmyuwaaapqy3w4mi173.png "/> For Fragmentactivity, write in the code as follows:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/77/71/wKioL1Zn6XCxuHY5AAAviHxYiYs821.png "title=" QQ picture 20151209163934.png "alt=" Wkiol1zn6xcxuhy5aaavihxyiys821.png "/>
Both methods can display the map, which is convenient for which kind.
Display of the map of the German map