过去3周我一直在与Sencha Touch合作,最近我在Eclipse上尝试实现推送通知功能。在Pushwoosh上使用Android / PhoneGap SDK我用Eclipse构建了一个演示应用程序。当我在调试模式下运行应用程序时没有错误,模拟器启动并加载.apk。当我点击PushWoosh Cordova应用程序时,它会显示错误消息:'不幸的是,PushWoosh Cordova已停止'。当我将应用程序放在我的Galaxy S3上时,它会给出相同的消息。 manifest.xml具有以下所有权限:uses-permission android:name =“android.permission.INTERNET”,uses-permission android:name =“android.permission.ACCESS_NETWORK_STATE”,uses-permission android:name =“android。 permission.ACCESS_WIFI_STATE“,uses-permission android:name =”android.permission.WRITE_EXTERNAL_STORAGE“。
有关为何会发生这种情况以及如何进行的任何想法?提前谢谢。
Rob
这可能是因为没有生成Javadoc?以下是logcat日志:
Pushwoosh Sample Phonegap [Android Application]
DalvikVM[localhost:12215]
Thread [<1> main] (Suspended (exception RuntimeException))
<VM does not provide monitor information>
ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 2106
ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 2230
ActivityThread.access$600(ActivityThread, ActivityThread$ActivityClientRecord, Intent) line: 141
ActivityThread$H.handleMessage(Message) line: 1234
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Lo`enter code here`oper.loop() line: 137
ActivityThread.main(String[]) line: 5041
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 511
ZygoteInit$MethodAndArgsCaller.run() line: 793
ZygoteInit.main(String[]) line: 560
NativeStart.main(String[]) line: not available [native method]
Thread [<10> Binder_2] (Running)
Thread [<9> Binder_1] (Running)