安卓4.0.3和完成活动 [英] Android 4.0.3 and finish activity

查看:124
本文介绍了安卓4.0.3和完成活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个活动叫b活动,b活动拨一个号码, 然后在空闲OFFHOOK- IDLE状态我叫ActivityB.this.finish()等等 该活动A显示在前面。

i have Activity A calling activity B, Activity B dials a number and then on the IDLE-OFFHOOK- IDLE state i call ActivityB.this.finish() so that activity A shows on front..

这一切都工作得很好,从Android的2.3.x ..直到4.0 verison

this all worked fine from android 2.3.x.. till 4.0 verison

现在它doenst在Android 4.0.3模拟器和4.0.2三星Galaxy工作 承上启下2为什么?

now it doenst work on android 4.0.3 emulator and 4.0.2 samsung galaxy nexus 2 why?

有人能帮助?任何Android开发者或谷歌的开发人员?

Can someone help? any android developers or google developers?

推荐答案

这可能是你已经覆盖的onDestroy方法的情况下,它正在下降,因为异常(仅在4.0出现的),这是preventing过该活动的正确闭合。也只是尝试调用完成()仅仅在b活动。

It might be the case that you have overridden onDestroy method and it is falling over because of an Exception (only occurring in 4.0), which is preventing the Activity from closing properly. Also just try to invoke finish() simply on Activity B.

这篇关于安卓4.0.3和完成活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆