为什么不能定时跳转
aide吧
全部回复
仅看楼主
level 7
代码有错吗[泪]
2017年02月02日 09点02分 1
level 10
不用这么麻烦吧感觉
2017年02月02日 09点02分 3
level 10
用postDelayed
2017年02月02日 09点02分 4
没用哇,看一下6楼的代码
2017年02月02日 10点02分
level 10
详情百度,不手把手
2017年02月02日 09点02分 5
level 7
好像没什么用?[疑问]
2017年02月02日 10点02分 6
类名最好不要带中文[小乖]
2017年02月02日 12点02分
@FLY丶雨 哪里
2017年02月02日 12点02分
@夜雨听琴♋ 你的图,右上部分的 JAVA代码.JAVA
2017年02月02日 12点02分
@FLY丶雨 那个不是
2017年02月02日 13点02分
level 10
有没有报错
2017年02月02日 12点02分 10
把错误贴上
2017年02月02日 12点02分
没有
2017年02月02日 13点02分
@夜雨听琴♋ 也就是说,什么都没发生?
2017年02月03日 00点02分
@RCK201511 效果是没有main.xml,直接显示other.xml
2017年02月03日 02点02分
level 10
把时间改成2000方便点,看下otherActivity有没有在manifest注册了,如果有,把otherActivity贴出来,我的代码没有问题
2017年02月03日 00点02分 11
看一下13楼
2017年02月03日 02点02分
level 7
这是otherActivity
2017年02月03日 02点02分 13
level 10
楼主不知道为什么,我就是完美没问题
2017年02月03日 02点02分 14
我用你的代码试试?
2017年02月03日 02点02分
回复 RCK201511 :还是不行,不是AIDE版本问题吧😂,我是2.9.6
2017年02月03日 03点02分
@夜雨听琴♋ 估计是了,不清楚
2017年02月03日 08点02分
level 13
既然你都要觉定跳转了,还用handle传递干嘛?
2017年02月03日 06点02分 15
level 13
Timer timer = new Timer();
TimerTask task = new TimerTask(){
@Override
public void run() {//操作
}
};
timer.schedule(task, 3000);//时间3s
}
2017年02月03日 06点02分 16
看17楼有毛病不[疑问]
2017年02月03日 13点02分
@夜雨听琴♋ 你一开始的代码好像也没看出有什么毛病
2017年02月03日 14点02分
@love小欧是我 解决了,我AndroidManifest.xml这个文件里面写错了
2017年02月03日 14点02分
@夜雨听琴♋ 是直接写到跳转other.java[喷]
2017年02月03日 16点02分
level 7
还是不行[泪]
2017年02月03日 13点02分 17
level 11
otheractivity.java 注册没有?
2017年02月03日 13点02分 18
问题是不显示main.xml
2017年02月03日 13点02分
谢谢了,我解决了
2017年02月03日 13点02分
level 11
Intent i = new Intent(MainActivity.this , activity1.class);
startActivity(i);
2017年02月03日 13点02分 19
1 2 尾页