Groups
Groups
Sign in
Groups
Groups
日本Androidの会
Conversations
About
Send feedback
Help
onPreExecute中にスプラッシュ表示
73 views
Skip to first unread message
1996
unread,
Jul 22, 2012, 8:39:46 PM
7/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
Androidの会の皆様お疲れさまです。
1996と申します。
AsyncTaskのonPreExecute内で、ローディング中の旨のダイアログ等を表示させているアプリが多いかと思いますが、
そうではなく、独自のスプラッシュ(会社のロゴ等)をアニメーションで表示させたいです。
とりあえず、Frameアニメーションを利用して、Activityを継承したSplashActivityというアニメが表示されるクラスを用意は出来たのですが、
これをonPreExecute中で表示するにはどういった処理を書けば良いのでしょうか?
また、他の方法をご存じの方がいらっしゃるならご教示頂けますと嬉しいです。
宜しくお願いします。
yuka2py
unread,
Jul 22, 2012, 10:49:52 PM
7/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
ゆぅかです。こんにちわ。
要件は「アプリ起動時に必要な情報を取得するが、その間にローディング画面を
兼ねたスプラッシュ画面を表示したい」という要件でしょうか?
以下、その前提で、かつ SplashActivity は表示されたらローディング画像が
動いているという感じの想像での回答ですが、
既に SplashActivity を作られたようなので、これを利用する感じで、
初期表示される Activity を SplashActivity にしてしまって、
onCreate か何かで AsyncTask を開始して、必要なデータを取得します。
そして、AsyncTaskの完了時に、次の画面をstart して、自分自身を finish す
るのは如何でしょうか。
onPreExecute を使って云々じゃなくてすみません。
また勘違いした回答でしたら無視してください。
-- ゆぅか。
2012年7月23日 9:39 1996 <
andro...@gmail.com
>:
> --
> このメールは Google グループのグループ「日本Androidの会」の登録者に送られています。
> このディスカッションをウェブ上で閲覧するには、
https://groups.google.com/d/msg/android-group-japan/-/VuWmBuZisSQJ
> にアクセスしてください。
> このグループに投稿するには、
android-g...@googlegroups.com
にメールを送信してください。
> このグループから退会するには、
android-group-j...@googlegroups.com
> にメールを送信してください。
> 詳細については、
http://groups.google.com/group/android-group-japan?hl=ja
> からこのグループにアクセスしてください。
Reply all
Reply to author
Forward
0 new messages