百度地图定位注意事项

2018-10-15 22:48:59

首先看百度官方文档,下面只是说的我自己应该注意的事项


  1. 一个service   一个meta

  2. 一个jar包

  3. 要主要有还有三个so包,尤其是第三个不想百度so包的so包。

  4. setScanSpan(1000*60*10)  竟然失效,并且基本上每隔一秒就会访问好几次定位,

    需要的做法就是

option.setLocationNotify(false);  //如果这个设置为true  setScanSpan 就失效了
//可选,设置是否当GPS有效时按照1S/1次频率输出GPS结果,默认false


  • 2017-11-06 01:00:17

    撤销git add

    如何撤销git add,不小心执行了git add . 操作,但是又不能提交所有的文件,因为对应不同的分支,现在怎么样可以将git add 撤销回来

  • 2017-11-10 00:06:15

    CORS: credentials mode is 'include'

    XMLHttpRequest cannot load http://localhost/Foo.API/token. The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost:5000' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.