接入 OppoSDK时遇见的一个问题
来源:互联网 发布:域名ns记录 编辑:程序博客网 时间:2024/05/05 03:16
游戏在接入时遇见了一个比较奇怪的问题,取消支付时返回游戏显示的是欢迎页面
查看log信息时,发现在点击支付时抛出了以下的错误信息:
02-23 15:55:46.511 32387-32387/? E/ActivityThread: Activity com.mfp.jellyblast.AppActivity has leaked IntentReceiver com.nearme.game.sdk.component.PayResultReceiver@3269740 that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity com.mfp.jellyblast.AppActivity has leaked IntentReceiver com.nearme.game.sdk.component.PayResultReceiver@3269740 that was originally registered here. Are you missing a call to unregisterReceiver()?at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:920)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:721)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1182)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1162)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1156)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:564)
at com.nearme.game.sdk.b$3.onSuccess(GCInternalImpl.java:196)
at com.nearme.game.sdk.a$8.handleMessage(GCInternal.java:446)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5458)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
看了半天没想出是哪的错误,最后通过查看录屏时发现,原来在支付时activity发生了旋转,导致activity重新生成了,这也就解释了为什么会显示欢迎页面(ps:欢迎页面是在activity当中添加的)。解决方法是在activity声明中添加android:configChanges="keyboardHidden|orientation|screenSize",关于configChanges的说明参看http://blog.csdn.net/akiyame/article/details/44923335。
- 接入 OppoSDK时遇见的一个问题
- 遇见一个Deploy dll的问题
- 遇见一个不大不小的问题——计算机硬件问题
- ORACLE中遇见的一个奇怪的问题
- 使用quartz的时候遇见的一个问题
- 在最近做一个高级查询时遇见的问题(javascript日历控件)
- 自定义Adapter(一般继承自BaseAdapter)时遇见的一个小问题
- 晒CSDN博客编辑时遇见的一个小问题!求大神解释!
- 遇见一个关于sharepoint2003 WebPart中视图显示的问题
- Unity3D连接MSSQL以及遇见的一个问题
- 记一个redis的常遇见见问题
- VC http通信Get遇见的一个小问题
- try catch语句中遇见的一个小问题
- 安装、操作sqlserver时遇见的问题
- android_三层布局时遇见的问题
- 使用cocoaPods时遇见的问题
- 自定义动画时遇见的问题
- 自定义控件时遇见的小问题
- 配置 apache日志轮询
- 用代码给视图添加约束
- SPRINGMVC+MYBATIS+SPRING+REDIS
- 2016年安大校赛(补题)
- xcode ios项目导入opengles.framework或别的SDK出错解决
- 接入 OppoSDK时遇见的一个问题
- 利用反射模拟Struts2数据封装机制
- jQuery选择器 品牌列表效果
- 存储过程01
- Linux oracle-10g安装
- 蓝桥杯 ALGO-115 算法训练 和为T Java版
- 从C#到TypeScript_0
- 【SCOI2011】bzoj2331 地板
- fedora20 pci8311驱动移植