darkgeek / phonegap-baidugeolocation-plugin Goto Github PK
View Code? Open in Web Editor NEW一个Cordova/Phonegap地理位置定位插件,采用百度定位SDK4.2
一个Cordova/Phonegap地理位置定位插件,采用百度定位SDK4.2
我是通过在 plugins 目录下的 android.json 文件,直接修改里面的 key 解决这个问题的。似乎 cordova build 的时候,不会再读取 plugin.xml 文件,而是直接读取 plugins 下的 android.json 文件。提出个问题,希望能够对后面使用这个插件的人有帮助。
感谢提供插件。希望能够在 read.me 中加入对回调函数的参数说明。虽然说使用方式和 w3c 的接口标准一样,但不禁还是疑惑。
抱歉,因为不懂java,又来打扰你了。
在 cordova 项目中,替换掉原生的 webview ,使用 crosswalk,这个插件无法定位。( ps:现在 crodova 支持通过插件来替换原生的 webview )
具体的 log 如下:
com.carisok.expert D/BaiduGeolocation﹕ Start Geolocation service.
com.carisok.expert:remote D/baidu_location_service﹕ baidu location service start1 ...11975
com.carisok.expert D/baidu_location_client﹕ baidu location connected ...
com.carisok.expert:remote W/System.err﹕ java.lang.UnsatisfiedLinkError: Couldn't load locSDK4d from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.carisok.expert-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.carisok.expert-1, /vendor/lib, /system/lib]]]: findLibrary returned null
com.carisok.expert:remote W/System.err﹕ at java.lang.Runtime.loadLibrary(Runtime.java:358)
com.carisok.expert:remote W/System.err﹕ at java.lang.System.loadLibrary(System.java:526)
com.carisok.expert:remote W/System.err﹕ at com.baidu.location.Jni.<clinit>(Unknown Source)
com.carisok.expert:remote W/System.err﹕ at com.baidu.location.ai$a.T(Unknown Source)
com.carisok.expert:remote W/System.err﹕ at com.baidu.location.aa.run(Unknown Source)
com.carisok.expert:remote W/dalvikvm﹕ Exception Ljava/lang/IllegalStateException; thrown while initializing Lcom/baidu/location/Jni;
com.carisok.expert:remote W/dalvikvm﹕ threadid=13: thread exiting with uncaught exception (group=0x416cdd58)
com.carisok.expert:remote I/dalvikvm﹕ Rejecting re-init on previously-failed class Lcom/baidu/location/Jni; v=0x0
com.carisok.expert:remote I/dalvikvm﹕ Rejecting re-init on previously-failed class Lcom/baidu/location/Jni; v=0x0
com.carisok.expert:remote W/dalvikvm﹕ threadid=13: thread exiting with uncaught exception (group=0x416cdd58)
com.carisok.expert:remote I/dalvikvm﹕ Rejecting re-init on previously-failed class Lcom/baidu/location/Jni; v=0x0
com.carisok.expert:remote I/dalvikvm﹕ Rejecting re-init on previously-failed class Lcom/baidu/location/Jni; v=0x0
com.carisok.expert:remote W/dalvikvm﹕ threadid=13: thread exiting with uncaught exception (group=0x416cdd58)
com.carisok.expert:remote I/dalvikvm﹕ Rejecting re-init on previously-failed class Lcom/baidu/location/Jni; v=0x0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.