开发者

Android Showing two activity same time

开发者 https://www.devze.com 2023-04-06 01:52 出处:网络
I have an app which shows two activities at the same time; Because my application using surfaceview but surfaceview never accept behind view.

I have an app which shows two activities at the same time;

Because my application using surfaceview but surfaceview never accept behind view.

  • FrameLayout
    • ImageView
    • SufaceView at that time i never seen ImageView by every way.

But I solve that problem by Using Two Activities.

  1. Execute Activity A (Activity A (Game Background and Character))
  2. Activity A intent B (Activity B (Game UI & Game Enemy))

finally I can see that I want.

My Question:

Usual Activity B is faster than Activity A because A is not focused, just showing

  1. Some devices 开发者_运维技巧(Galaxy S2 that I know) Activity B is slower than Activity A

Plz Give me a favor I'm falling in this problem for 1 month....... T.T


I have an app which shows two activities at the same time;

I'm not sure what you mean by this because Android only allows 1 activity to run a time. When you start Activity B from Activity A, A gets paused.

My Question:

Usual Activity B is faster than Activity A because A is not focused, just showing

Some devices (Galaxy S2 that I know) Activity B is slower than Activity A

Again I'm not sure what this means, but as it looks like you're making a game I'd suggest you read this blogpost: http://www.rbgrn.net/content/54-getting-started-android-game-development

Maybe buy this book: http://www.amazon.com/Beginning-Android-Games-Mario-Zechner/dp/1430230428/ref=sr_1_1?ie=UTF8&qid=1304580271&sr=8-1

and look at the development process/source for this game: http://www.rbgrn.net/content/215-light-racer-3d-development-journal

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号