Nextrek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
package nextrek.comicos.chisinau;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
public class SplashActivity extends Activity {
private static final int CLOSE_MSG = 0x270278;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
mSplashHandler.removeMessages(CLOSE_MSG); // to handle orientation change
mSplashHandler.sendEmptyMessageDelayed(CLOSE_MSG, 1000);
}
Handler mSplashHandler = new Handler() {
public void handleMessage(Message msg) {
super.handleMessage(msg);
switch (msg.what) {
default:
case CLOSE_MSG:
Intent intent = new Intent();
intent.setClass(SplashActivity.this, StoryActivity.class);
startActivity(intent);
SplashActivity.this.finish();
}
}
};
}
|
Revision |
Author |
Commited |
Message |
4
|
FMMortaroli
|
Fri 19 Apr, 2013 16:54:38 +0000 |
|