Android用PhoneGapを使用してモバイルアプリの開発を学ぼうとしています。それで、私は最新のPhoneGapバージョン1.6をダウンロードしました。私はhttp://wiki.phonegap.com/w/page/30862722/phonegap-android-eclipse-quickstartに素敵な記事を見つけました。これは、PhoneGap for Eclipseをセットアップする方法を示しています。 Eclipseでサンプルアプリケーションを追加した後、アプリケーションを実行できるようになりましたが、リスト項目のいずれも、私のエミュレータや携帯電話で動作していないようです。サンプルアプリケーションには、リンクの例に示すように、ロケーションの取得、ビープ音、振動、コール411、写真を撮るなどのリストが含まれています。 411に電話するだけで、コードや電話で何が問題になっているのですか?AndroidGのPhoneGapサンプルアプリケーションが動作しない
logcat
04-19 05:45:01.538: I/CordovaLog(325): Changing log level to DEBUG(3)
04-19 05:45:01.538: D/DroidGap(325): DroidGap.onCreate()
04-19 05:45:01.559: D/DroidGap(325): DroidGap.loadUrl(file:///android_asset/www/index.html)
04-19 05:45:01.559: D/DroidGap(325): DroidGap: url=file:///android_asset/www/index.html baseUrl=file:///android_asset/www/
04-19 05:45:01.958: D/DroidGap(325): DroidGap.init()
04-19 05:45:02.078: D/PluginManager(325): init()
04-19 05:45:02.178: D/SoftKeyboardDetect(325): Ignore this event
04-19 05:45:02.358: D/SoftKeyboardDetect(325): Ignore this event
04-19 05:45:10.470: D/CordovaLog(325): TypeError: Result of expression 'navigator.notification' [undefined] is not an object.
04-19 05:45:10.470: D/CordovaLog(325): file:///android_asset/www/main.js: Line 21 : TypeError: Result of expression 'navigator.notification' [undefined] is not an object.
04-19 05:45:10.499: E/Web Console(325): TypeError: Result of expression 'navigator.notification' [undefined] is not an object. at file:///android_asset/www/main.js:21
04-19 05:45:15.108: I/Database(325): sqlite returned: error code = 14, msg = cannot open file at source line 25467
04-19 05:45:21.128: D/CordovaLog(325): TypeError: Result of expression 'navigator.notification' [undefined] is not an object.
04-19 05:45:21.128: D/CordovaLog(325): file:///android_asset/www/main.js: Line 25 : TypeError: Result of expression 'navigator.notification' [undefined] is not an object.
04-19 05:45:21.128: E/Web Console(325): TypeError: Result of expression 'navigator.notification' [undefined] is not an object. at file:///android_asset/www/main.js:25
04-19 05:45:22.908: W/KeyCharacterMap(325): No keyboard for id 0
04-19 05:45:22.908: W/KeyCharacterMap(325): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
04-19 05:45:26.228: D/CordovaLog(325): TypeError: Result of expression 'navigator.network' [undefined] is not an object.
04-19 05:45:26.228: D/CordovaLog(325): file:///android_asset/www/main.js: Line 108 : TypeError: Result of expression 'navigator.network' [undefined] is not an object.
04-19 05:45:26.249: E/Web Console(325): TypeError: Result of expression 'navigator.network' [undefined] is not an object. at file:///android_asset/www/main.js:108
あなたが遭遇しているエラーに関するlogcatまたは詳細がないと、あなたの質問に簡単に答えられません。問題を示すスクリーンショットやログを提供できますか? –
logcatが追加されました。 'navigator.notification'エラー – Tuscan