Simple android program using GOOGLE MAP API

前端 未结 2 1311
故里飘歌
故里飘歌 2021-01-28 10:03

Trying to work on Google Map\'s

  • Its my first program in using google Map API
  • I am not able to execute because of log error
  • Where i need to corr
2条回答
  •  广开言路
    2021-01-28 10:55

    Just follow The Links As its your first map application.

    http://mobiforge.com/developing/story/developing-with-google-maps-v2-android Follow the link and check 1)make Sure U have google map v2 support library (Add android-support-v4) and

    public class MainActivity extends FragmentActivity {
    

    2)Check and modify the Manifest 3) In layout

    
    

    4) In Activity

    SupportMapFragment fm = (SupportMapFragment) getSupportFragmentManager()
                        .findFragmentById(R.id.map);
                googleMap = fm.getMap();
    

    It will solve your Problem.

提交回复
热议问题