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

后端 未结 7 2366
难免孤独
难免孤独 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:09

    Make an AsyncClass that does Thread.sleep() in the doInBackground() method, then navigate to your new activity in the your onPostExecute() method.

    Call your toast message and then execute the AsyncClass.

提交回复
热议问题