该位置损坏了我的应用,我需要帮助对其进行修复

时间:2019-07-02 20:33:01

标签: java android-studio

image1 image2 image3 image4 image5 image6 image7 error

我有一个错误,我不知道如何解决。请打开上面的图片。当我尝试删除这两行时,我的应用程序显示upp

  LocationManager mgr =(LocationManager)getSystemService(Context.LOCATION_SERVICE);

  mgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, this);
    mgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, (LocationListener) this);

0 个答案:

没有答案