3

私は Android にかなり慣れていないので、いつ新しいアクティビティを開始するかについて少し混乱しています。これが状況です。ライブラリ、webview、およびリーダーのアクティビティがあります。

ユーザーがライブラリに移動したいとします -> webview -> リーダー -> ライブラリ

リーダー アクティビティの後に新しいライブラリ アクティビティを作成する必要がありますか?それとも、元のライブラリ アクティビティを表示する必要がありますか? 後者を実行すると、アクティビティ スタックが台無しになりますか?

4

1 に答える 1

3

It seems to me you are confusing the ideas of "creating" a new activity and switching activities... You dont really "create" new activities dynamically, you call them from other activities via Intent's. So if you need to go to your library activity after your reader, just start an intent to change activities. your app only can only have one active activity at a time.

于 2011-07-27T19:16:33.150 に答える