Changing image in imageview using Threads

前端 未结 6 1023
失恋的感觉
失恋的感觉 2020-12-11 10:05

I\'m getting error with this code. Why huhu 123123123

Thread timer = new Thread()
{
    public void run()
    {
        try
        {
            sleep(1500)         


        
6条回答
  •  隐瞒了意图╮
    2020-12-11 11:07

    Perhaps consider using

    AsyncTask.execute(new Runnable {
      public void run() {
         splash.setImageResource(R.drawable.square);
      }
    });
    

提交回复
热议问题