一般按程序期待都会有个log图片出来,等会在进入主界面,这个要怎么实现?
我的代码是这样的,但遇到了延迟问题,该怎么解决?package finalworksendmessage.com;import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;public class startimage extends Activity { @Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.startimage);
finish();
Intent i=new Intent(startimage.this,finalworksendmessage.class);//log显示完后跳到主界面
startActivity(i);
}
}
我的代码是这样的,但遇到了延迟问题,该怎么解决?package finalworksendmessage.com;import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;public class startimage extends Activity { @Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.startimage);
finish();
Intent i=new Intent(startimage.this,finalworksendmessage.class);//log显示完后跳到主界面
startActivity(i);
}
}
解决方案 »
- 在2.3中测试通过的屏幕翻转在4.1上出BUG
- 为什么Toast 会报错啊,是不是那里写错了
- 关于webview的html5的video样式
- 怎么获得Canvas中的一个像素点的颜色值
- surfaceView 和 gesture 如何使用呢
- 要做一个自动化测试,请教如何测试Activity里面的方法?因为不能new一个实例对象
- 请教关于android客户端连接PC的server端程序的IP地址问题?
- android 实现查看pdf
- 新手求解关于MediaPlayer问题
- java后台怎么保存Android端用户登录状态
- 手机设置中的动画设置为“无动画”后,如何让自己设置的切换动画还有效?
- 用Java+Pascal编写Android下OpenGL程序(源码)
super(millisInFuture, countDownInterval);
} @Override
public void onFinish() {
// 摇奖到的优惠卷
vibrator.vibrate(500);
} @Override
public void onTick(long millisUntilFinished) {
txtTimeShow.setText(String.valueOf(millisUntilFinished / 1000));
}
}
mMyCount = new MyCount(5000, 1000);mMyCount.start();
package finalworksendmessage.com;import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.widget.ImageView;public class startimage extends Activity { @Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.startimage);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Intent i=new Intent(startimage.this,finalworksendmessage.class);
startActivity(i);
finish();
//do xx
}
}, 3000);
}
}