Android:活动之间出现黑屏 [英] Android: Black Screen between Activity

查看:100
本文介绍了Android:活动之间出现黑屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将一个活动转到另一个活动时,在事务之间,黑屏会持续几秒钟.在致电 startActvity()之前,我已经正确完成了该活动.

When I go one activity to another activity , between the transaction a Black screen is come for some seconds. I properly finish the activity before calling startActvity().

我在活动中使用 android:theme ="@ android:style/Theme.Translucent" 主题.即使两次活动之间都出现黑屏

Am using android:theme="@android:style/Theme.Translucent" theme for my activity. Even though between the activity transaction a black screen is coming

任何人都可以告诉我如何解决此问题

Can any one please tell me how to resolve this

先谢谢您了:)

推荐答案

在调用startActivity()之前无需完成活动.

There is no need to finish activity before calling startActivity().

确保已在被调用Activity的onCreate中设置了内容视图,并且没有阻塞UI线程(如果已覆盖它们,请检查onCreate,onStart和onResume).

Make sure that you have set content view in the onCreate of called Activity and that you are not blocking UI thread (check onCreate, onStart and onResume if you have override them).

这篇关于Android:活动之间出现黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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