AndroidでActivityの起動はContext.startActivity
メソッドにIntentを渡して行うと思います。
この処理を非同期処理後に実行しているとアプリがバックグラウンドにいても、本処理が呼ばれて勝手Activityが起動します。
ユーザからすると勝手にアプリが起動するので煩わしく感じるかもしれません。
特に、起動時にSplashのActivityが表示されて、その後にメインのActivityが表示される構成で、この振る舞いをしがちなので、注意が必要です。
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
2
Go to list of users who liked
1