Showing error Caused by: java.lang.reflect.InvocationTargetException

前端 未结 3 1994
后悔当初
后悔当初 2021-02-15 11:55

When I press the button(named \"current location\") it should shows current location(lat & long) on the textview(named \"tvAddress\") .But it\'s not working as I expect. It\

3条回答
  •  旧巷少年郎
    2021-02-15 12:33

    Your first two lines in onCreate method should be these ones:

    super.onCreate(savedInstanceState);
    setContentView(R.layout.map);
    

提交回复
热议问题