无法使 SurveyMonkey Mobile SDK 工作
Cannot get SurveyMonkey Mobile SDK to work
我正在尝试将 SurveyMonkey 集成到我正在构建的应用程序中。我注册了一个免费的 SurveyMonkey 帐户并创建了一个样本调查问题。我还根据需要设置了 Mobile SDK Collector。我按照 GitHub 页面 (https://github.com/SurveyMonkey/surveymonkey-android-sdk) 上概述的步骤进行项目设置。我 copy/pasted 简单的应用程序并用我自己的替换了调查哈希。当我尝试启动调查时,调查拒绝启动并收到以下错误:
com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity has leaked IntentReceiver com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity$ConnectivityMonitor@19aceecc that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity has leaked IntentReceiver com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity$ConnectivityMonitor@19aceecc that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:960)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:761)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:2003)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1983)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1977)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:503)
at com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity.onCreate(SMFeedbackActivity.java:67)
at android.app.Activity.performCreate(Activity.java:6221)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2614)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.access0(ActivityThread.java:172)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5835)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
我查看了 API 文档试图找出这个错误。我错过了什么?
TEK292,感谢您的post!我是负责开发 SDK 的 SurveyMonkey 工程师。我刚刚在 Github 上发布了新版本的 SDK,应该可以解决您的问题。如果没有,请随时通过 Github 问题联系我们,或对此 post 发表进一步评论。再次感谢。
我正在尝试将 SurveyMonkey 集成到我正在构建的应用程序中。我注册了一个免费的 SurveyMonkey 帐户并创建了一个样本调查问题。我还根据需要设置了 Mobile SDK Collector。我按照 GitHub 页面 (https://github.com/SurveyMonkey/surveymonkey-android-sdk) 上概述的步骤进行项目设置。我 copy/pasted 简单的应用程序并用我自己的替换了调查哈希。当我尝试启动调查时,调查拒绝启动并收到以下错误:
com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity has leaked IntentReceiver com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity$ConnectivityMonitor@19aceecc that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity has leaked IntentReceiver com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity$ConnectivityMonitor@19aceecc that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:960)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:761)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:2003)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1983)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1977)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:503)
at com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity.onCreate(SMFeedbackActivity.java:67)
at android.app.Activity.performCreate(Activity.java:6221)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2614)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.access0(ActivityThread.java:172)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5835)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
我查看了 API 文档试图找出这个错误。我错过了什么?
TEK292,感谢您的post!我是负责开发 SDK 的 SurveyMonkey 工程师。我刚刚在 Github 上发布了新版本的 SDK,应该可以解决您的问题。如果没有,请随时通过 Github 问题联系我们,或对此 post 发表进一步评论。再次感谢。