【问题标题】:How run barcodescanner in droidgap on android?如何在 android 上的 droidgap 中运行条形码扫描仪?
【发布时间】:2013-06-13 14:27:06
【问题描述】:

我用PhoneGap 实现了cordova 2.1.0 插件,但是不要运行!!因为它有错误并且不启动!

error:
GC_EXPLICIT freed 52K, 39% free 6070K/9944K, paused 3ms+6ms, total 197ms
.....
cannot open file at line 30176 of [00bb9c9ce4]
os_unix.c:30176: (2) open(/CachedGeoposition.db) - 
Error:
SQLite database failed to load from /CachedGeoposition.db
Cause - unable to open database file
external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) : bool WebCore::SQLiteDatabase::open(const WTF::String&, bool)
Uncaught TypeError: Object [object Object] has no method 'exec'
file:///android_asset/cordova-2.1.0.js: Line 955 : Uncaught TypeError: Object [object Object] has no method 'exec'
Uncaught TypeError: Object [object Object] has no method 'exec' at file:///android_asset/cordova-2.1.0.js:955
onMessage(spinner,stop)
Starting TG #0, 0x49fea1e0

它停在这一行!

我在 main.js 中禁用并注释了函数“var getLocation = function()”,因为不要运行和搜索数据库但没有答案。

我对 http://simonmacdonald.blogspot.com/2011/07/upgrading-your-phonegap-android.html 罚款,因为在我的项目中将此样本用于 BarcodScanner

请帮帮我!!

【问题讨论】:

    标签: java android eclipse web-applications cordova


    【解决方案1】:

    我的条码扫描器不工作而被罚款,解决方案是扩展 Activity! 因为,我在扩展activity的时候定义了Main类,所以所有的类都扩展了Main,因为想要实现activity的开始和结束的动画效果。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-18
      • 2014-01-11
      • 1970-01-01
      • 1970-01-01
      • 2012-08-08
      相关资源
      最近更新 更多