How to put some delay in calling an activity from another activity?

后端 未结 7 2323
难免孤独
难免孤独 2020-12-03 05:31

I have an application in which I\'m receiving a sms containing his location.On receiving sms it calls another activity to start and passes that location to that activity to

相关标签:
7条回答
  • 2020-12-03 06:12

    For Kotlin

     Handler().postDelayed({
                val i = Intent(this, MainActivity::class.java)
                startActivity(i)
            }, 5000)
    
    0 讨论(0)
提交回复
热议问题